multiple xor_block() functions
include/linux/raid/xor.h:extern void xor_block(unsigned int count, unsigned int bytes, void **ptr); drivers/md/xor.c:xor_block(unsigned int count, unsigned int bytes, void **ptr) drivers/md/xor.c:EXPORT_SYMBOL(xor_block);
and
net/ieee80211/ieee80211_crypt_ccmp.c:static inline void xor_block(u8 * b, u8 * a, size_t len)
At least one of them has to be renamed.
cu
Adrian
Signature · 4 lines
"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon SeedQuoted 10 lines · Adrian Bunk
include/linux/raid/xor.h:extern void
xor_block(unsigned int count, unsigned int bytes, void **ptr); drivers/md/xor.c:xor_block(unsigned int count, unsigned int bytes, void **ptr) drivers/md/xor.c:EXPORT_SYMBOL(xor_block);and
net/ieee80211/ieee80211_crypt_ccmp.c:static inline void
xor_block(u8 * b, u8 * a, size_t len)At least one of them has to be renamed.
Why? Not that I would really mind renaming one of these, but I don't see a good reason for it. ieee80211_crypt_ccmp.c should not include linux/raid/xor.h and the xor_block() in CCMP code is a static inline function that should not show up outside the scope of this file. Do we have some magic that makes exported symbols pollute name space for inlined helper functions?
Signature · 1 line
Jouni Malinen PGP id EFC895FA
Quoted 2 lines
From: Adrian Bunk [mailto:[email protected]] include/linux/raid/xor.h:extern void xor_block(unsigned int count,
unsigned
Quoted 2 lines
int bytes, void **ptr); drivers/md/xor.c:xor_block(unsigned int count, unsigned int bytes,
void **ptr)
Quoted 5 lines
drivers/md/xor.c:EXPORT_SYMBOL(xor_block);
and
net/ieee80211/ieee80211_crypt_ccmp.c:static inline void xor_block(u8 *
b, u8 *
Quoted 5 lines
a,
size_tlen)At least one of them has to be renamed.
I'll rename the raid version to 'xor_blocks' in the md-accel series. [ I would have suggested xor_n_blocks except that xor_blocks is limited to 5-blocks (MAX_XOR_BLOCKS) ]
Quoted 4 lines
cu
Adrian
Dan