Skip to content

Commit

Permalink
checkpatch: ignore request to use ether_addr_copy()
Browse files Browse the repository at this point in the history
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 <[email protected]>
Reviewed-by: Marek Vasut <[email protected]>
Acked-by: Joe Hershberger <[email protected]>
Tested-by: Anand Moon <[email protected]>
Reviewed-by: Anand Moon <[email protected]>
  • Loading branch information
nvswarren authored and trini committed Jan 25, 2016
1 parent 2218c54 commit ac01603
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .checkpatch.conf
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit ac01603

Please sign in to comment.