mirror of
https://github.com/torvalds/linux.git
synced 2024-11-17 01:22:07 +00:00
3ec16e93d8
"asm/unaligned.h" is more generic than "access_ok.h", and it may include "access_ok.h", so need use it instead of "access_ok.h". During building, "rtllib.h" has already include "asm/unaligned.h", so will cause building issue. The related error (with allmodconfig under parisc): CC [M] drivers/staging/rtl8192e/rtl819x_BAProc.o In file included from ./arch/parisc/include/asm/unaligned.h:4:0, from include/linux/ieee80211.h:22, from include/net/lib80211.h:31, from drivers/staging/rtl8192e/rtllib.h:45, from drivers/staging/rtl8192e/rtl819x_BAProc.c:20: include/linux/unaligned/be_struct.h:6:19: error: redefinition of 'get_unaligned_be16' static inline u16 get_unaligned_be16(const void *p) ^ In file included from drivers/staging/rtl8192e/rtl819x_BAProc.c:19:0: include/linux/unaligned/access_ok.h:22:19: note: previous definition of 'get_unaligned_be16' was here static inline u16 get_unaligned_be16(const void *p) ^ ... For independent from other include files, still suggest it includes "asm/unaligned.h" too. And also include "asm/byteorder.h" since it is the first include file". Signed-off-by: Chen Gang <gang.chen.5i5j@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
rtl8192e | ||
dot11d.c | ||
dot11d.h | ||
Kconfig | ||
license | ||
Makefile | ||
rtl819x_BA.h | ||
rtl819x_BAProc.c | ||
rtl819x_HT.h | ||
rtl819x_HTProc.c | ||
rtl819x_Qos.h | ||
rtl819x_TS.h | ||
rtl819x_TSProc.c | ||
rtllib_crypt_ccmp.c | ||
rtllib_crypt_tkip.c | ||
rtllib_crypt_wep.c | ||
rtllib_crypt.c | ||
rtllib_crypt.h | ||
rtllib_debug.h | ||
rtllib_endianfree.h | ||
rtllib_module.c | ||
rtllib_rx.c | ||
rtllib_softmac_wx.c | ||
rtllib_softmac.c | ||
rtllib_tx.c | ||
rtllib_wx.c | ||
rtllib.h | ||
TODO |