From: Jagan Teki Date: Mon, 18 May 2015 16:32:45 +0000 (+0530) Subject: staging: rtl8712: Use ether_addr_copy() instead of memcpy() X-Git-Tag: omap-for-v4.2/fixes-rc1^2~92^2~456 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=71d667b800c53f840f516eb7d332186ffee3e84a;p=pandora-kernel.git staging: rtl8712: Use ether_addr_copy() instead of memcpy() Fixes Warning encounter this by applying checkpatch.pl against this file: Prefer ether_addr_copy() over memcpy() if the Ethernet addresses are __aligned(2) pahole output for respective structures: - addr->sa_data struct sockaddr { sa_family_t sa_family; /* 0 2 */ char sa_data[14]; /* 2 14 */ /* size: 16, cachelines: 1, members: 2 */ /* last cacheline: 16 bytes */ }; - pnetdev->dev_addr dev_addr is interface address infor from generic net_device structure which is properly aligned and have some patches with this change as well. "staging: rtl8712: fix Prefer ether_addr_copy() over memcpy()" (sha1: 36e4d8826b317080e283e4edd08bf8d5ac706f38) Signed-off-by: Jagan Teki Cc: Greg Kroah-Hartman Cc: Larry Finger Cc: Florian Schilhabel Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed