From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Mon, 25 Jan 2016 21:43:30 +0100 Subject: [U-Boot] [PATCH REPOST] checkpatch: ignore request to use ether_addr_copy() In-Reply-To: <1453740480-1558-1-git-send-email-swarren@wwwdotorg.org> References: <1453740480-1558-1-git-send-email-swarren@wwwdotorg.org> Message-ID: <201601252143.31008.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Monday, January 25, 2016 at 05:48:00 PM, Stephen Warren wrote: > From: Stephen Warren > > 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 +CC Tom, Simon > --- > .checkpatch.conf | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/.checkpatch.conf b/.checkpatch.conf > index 35167e12015b..d1d32fac9db5 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 Best regards, Marek Vasut