diff options
author | Stephen Warren <swarren@nvidia.com> | 2015-11-13 09:03:00 -0700 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-01-25 11:17:52 -0500 |
commit | ac01603da4598b4b34ff3a5c428aa925daa12b60 (patch) | |
tree | 0519891733cdf1ebcb03e52edad8862c0d800a9e | |
parent | 2218c54bc13c8045903afc05d1364439a230da1f (diff) | |
download | u-boot-imx-ac01603da4598b4b34ff3a5c428aa925daa12b60.zip u-boot-imx-ac01603da4598b4b34ff3a5c428aa925daa12b60.tar.gz u-boot-imx-ac01603da4598b4b34ff3a5c428aa925daa12b60.tar.bz2 |
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>
-rw-r--r-- | .checkpatch.conf | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/.checkpatch.conf b/.checkpatch.conf index 35167e1..d1d32fa 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 |