From: Stephen Warren Date: Fri, 13 Nov 2015 16:03:00 +0000 (-0700) Subject: checkpatch: ignore request to use ether_addr_copy() X-Git-Tag: v2016.03-rc1~53 X-Git-Url: https://git.librecmc.org/?p=oweals%2Fu-boot.git;a=commitdiff_plain;h=ac01603da4598b4b34ff3a5c428aa925daa12b60 checkpatch: ignore request to use ether_addr_copy() The Linux kernel, from which checkpatch originates, contains function ether_addr_copy() to copy Ethernet MAC addresses, and checkpatch warns that it should be used in preference to memcpy() where appropriate. U-Boot doesn't contain ether_addr_copy(), so tell checkpatch not to issue this warning. Signed-off-by: Stephen Warren Reviewed-by: Marek Vasut Acked-by: Joe Hershberger Tested-by: Anand Moon Reviewed-by: Anand Moon --- diff --git a/.checkpatch.conf b/.checkpatch.conf index 35167e1201..d1d32fac9d 100644 --- a/.checkpatch.conf +++ b/.checkpatch.conf @@ -21,3 +21,7 @@ # Ignore networking block comment style --ignore NETWORKING_BLOCK_COMMENT_STYLE + +# Ignore "WARNING: Prefer ether_addr_copy() over memcpy() if the Ethernet +# addresses are __aligned(2)". +--ignore PREFER_ETHER_ADDR_COPY