Skip to contentSkip to conversation

ath9k on arm

DISCUSSION Andrew Morton 1 participant 1 message Sep 24, 2008

lore
Share & tools
lore
#0 lore raw

/usr/src/devel/arch/arm/include/asm/string.h:42:1: warning: this is the location of the previous definition In file included from drivers/net/wireless/ath9k/recv.c:21:
drivers/net/wireless/ath9k/core.h:88:1: warning: "memzero" redefined
In file included from include/linux/string.h:19,
from include/linux/bitmap.h:8,
from include/linux/nodemask.h:89,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/net/wireless/ath9k/core.h:23,
from drivers/net/wireless/ath9k/recv.c:21:
/usr/src/devel/arch/arm/include/asm/string.h:42:1: warning: this is the location of the previous definition In file included from drivers/net/wireless/ath9k/xmit.c:21:
drivers/net/wireless/ath9k/core.h:88:1: warning: "memzero" redefined
In file included from include/linux/string.h:19,
from include/linux/bitmap.h:8,
from include/linux/nodemask.h:89,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/net/wireless/ath9k/core.h:23,
from drivers/net/wireless/ath9k/xmit.c:21:
/usr/src/devel/arch/arm/include/asm/string.h:42:1: warning: this is the location of the previous definition In file included from drivers/net/wireless/ath9k/rc.c:22:
drivers/net/wireless/ath9k/core.h:88:1: warning: "memzero" redefined
In file included from include/linux/string.h:19,
from include/linux/bitmap.h:8,
from include/linux/nodemask.h:89,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/net/wireless/ath9k/core.h:23,
from drivers/net/wireless/ath9k/rc.c:22:
/usr/src/devel/arch/arm/include/asm/string.h:42:1: warning: this is the location of the previous definition In file included from drivers/net/wireless/ath9k/core.c:19:
drivers/net/wireless/ath9k/core.h:88:1: warning: "memzero" redefined
In file included from include/linux/string.h:19,
from include/linux/bitmap.h:8,
from include/linux/nodemask.h:89,
from include/linux/mmzone.h:16,
from include/linux/gfp.h:4,
from include/linux/kmod.h:22,
from include/linux/module.h:13,
from drivers/net/wireless/ath9k/core.h:23,
from drivers/net/wireless/ath9k/core.c:19:
/usr/src/devel/arch/arm/include/asm/string.h:42:1: warning: this is the location of the previous definition (etc)

/* XXX: remove */
#define memzero(_buf, _len) memset(_buf, 0, _len)

I agree. asap, please.

Practically nothing in arm uses memzero() so I'd suggest that this quite risky definition be removed from arm also. Just use memset.