author | tao zeng <tao.zeng@amlogic.com> | 2018-09-06 01:40:24 (GMT) |
---|---|---|
committer | tao zeng <tao.zeng@amlogic.com> | 2018-09-06 01:40:24 (GMT) |
commit | 70cd24d27517bd896e0267c46ca2ea92e146421a (patch) | |
tree | 4c381b8ee361bfe6aeff3641234f3c10ab5b9cc6 | |
parent | 0c20acb18001f9e9b382885eddfc1ea2332123a8 (diff) | |
download | 8188ftv-q-amlogic.zip 8188ftv-q-amlogic.tar.gz 8188ftv-q-amlogic.tar.bz2 |
PD#172701: kasan: fix kasan compile problem
Change-Id: I915e25fe64b26b8d2fdf805c88d239b8258deed6
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
-rwxr-xr-x | rtl8188FU/include/ieee80211.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rtl8188FU/include/ieee80211.h b/rtl8188FU/include/ieee80211.h index 8ed08a9..2c3e15e 100755 --- a/rtl8188FU/include/ieee80211.h +++ b/rtl8188FU/include/ieee80211.h @@ -1390,18 +1390,18 @@ enum ieee80211_state { (((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \ (((Addr[5]) & 0xff) == 0xff)) #else -extern __inline int is_multicast_mac_addr(const u8 *addr) +static __inline int is_multicast_mac_addr(const u8 *addr) { return ((addr[0] != 0xff) && (0x01 & addr[0])); } -extern __inline int is_broadcast_mac_addr(const u8 *addr) +static __inline int is_broadcast_mac_addr(const u8 *addr) { return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \ (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff)); } -extern __inline int is_zero_mac_addr(const u8 *addr) +static __inline int is_zero_mac_addr(const u8 *addr) { return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \ (addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00)); |