Commit ac01603da4598b4b34ff3a5c428aa925daa12b60

Authored by Stephen Warren
Committed by Tom Rini
1 parent 2218c54bc1

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 <swarren@nvidia.com>
Reviewed-by: Marek Vasut <marex@denx.de>
Acked-by: Joe Hershberger <joe.hershberger@ni.com>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Reviewed-by: Anand Moon <linux.amoon@gmail.com>

Showing 1 changed file with 4 additions and 0 deletions Side-by-side Diff

... ... @@ -21,4 +21,8 @@
21 21  
22 22 # Ignore networking block comment style
23 23 --ignore NETWORKING_BLOCK_COMMENT_STYLE
  24 +
  25 +# Ignore "WARNING: Prefer ether_addr_copy() over memcpy() if the Ethernet
  26 +# addresses are __aligned(2)".
  27 +--ignore PREFER_ETHER_ADDR_COPY