author | tao zeng <tao.zeng@amlogic.com> | 2018-09-06 01:10:23 (GMT) |
---|---|---|
committer | tao zeng <tao.zeng@amlogic.com> | 2018-09-06 01:10:23 (GMT) |
commit | b1032e12315f76cb7b80f0005750672100963148 (patch) | |
tree | de1645dad9958ec401be8ac4e8eb97c76549d69d | |
parent | 1963534ed297e22a1effa9f122bfe859904886ca (diff) | |
download | 8822bu-master-tv-dev.zip 8822bu-master-tv-dev.tar.gz 8822bu-master-tv-dev.tar.bz2 |
PD#172701: kasan: fix kasan compile problem
Change-Id: I0bfc81705af1ee1d0364037b678dcb4a2845c414
Signed-off-by: tao zeng <tao.zeng@amlogic.com>
-rw-r--r-- | rtl8822BU/include/ieee80211.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/rtl8822BU/include/ieee80211.h b/rtl8822BU/include/ieee80211.h index 05a4c51..c3cd558 100644 --- a/rtl8822BU/include/ieee80211.h +++ b/rtl8822BU/include/ieee80211.h @@ -1478,18 +1478,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)); |