python-dataproperty: bump version to 0.17.0
[buildroot-gz.git] / board / roseapplepi / patches / linux / 0004-Fix-compile-errors-with-gcc5.patch
blobd76e2851b5637788c1c5f49aed4a26f038e2994f
1 From ef34609395c72a1e777ef9c3fb6ce60aa92976bb Mon Sep 17 00:00:00 2001
2 From: Marco Franceschetti <vonfritz1@gmail.com>
3 Date: Sun, 13 Mar 2016 09:44:54 +0100
4 Subject: [PATCH] Fix compile errors with gcc5
6 (cherry picked from commit e824d45043efd49607f66c89c921b07c1523bf9e)
7 Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
8 ---
9 drivers/net/wireless/actions/rtl8188etv/include/ieee80211.h | 6 +++---
10 drivers/net/wireless/actions/rtl8723bs/include/ieee80211.h | 6 +++---
11 drivers/net/wireless/actions/rtl8723bs_vq0/include/ieee80211.h | 6 +++---
12 drivers/net/wireless/actions/rtl8723bu/include/ieee80211.h | 6 +++---
13 4 files changed, 12 insertions(+), 12 deletions(-)
15 diff --git a/drivers/net/wireless/actions/rtl8188etv/include/ieee80211.h b/drivers/net/wireless/actions/rtl8188etv/include/ieee80211.h
16 index fc293c4..0898cd4 100755
17 --- a/drivers/net/wireless/actions/rtl8188etv/include/ieee80211.h
18 +++ b/drivers/net/wireless/actions/rtl8188etv/include/ieee80211.h
19 @@ -1314,18 +1314,18 @@ enum ieee80211_state {
20 (((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \
21 (((Addr[5]) & 0xff) == 0xff))
22 #else
23 -extern __inline int is_multicast_mac_addr(const u8 *addr)
24 +static __inline int is_multicast_mac_addr(const u8 *addr)
26 return ((addr[0] != 0xff) && (0x01 & addr[0]));
29 -extern __inline int is_broadcast_mac_addr(const u8 *addr)
30 +static __inline int is_broadcast_mac_addr(const u8 *addr)
32 return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \
33 (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
36 -extern __inline int is_zero_mac_addr(const u8 *addr)
37 +static __inline int is_zero_mac_addr(const u8 *addr)
39 return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \
40 (addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
41 diff --git a/drivers/net/wireless/actions/rtl8723bs/include/ieee80211.h b/drivers/net/wireless/actions/rtl8723bs/include/ieee80211.h
42 index 09475ef..56e0f5a 100755
43 --- a/drivers/net/wireless/actions/rtl8723bs/include/ieee80211.h
44 +++ b/drivers/net/wireless/actions/rtl8723bs/include/ieee80211.h
45 @@ -1318,18 +1318,18 @@ enum ieee80211_state {
46 (((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \
47 (((Addr[5]) & 0xff) == 0xff))
48 #else
49 -extern __inline int is_multicast_mac_addr(const u8 *addr)
50 +static __inline int is_multicast_mac_addr(const u8 *addr)
52 return ((addr[0] != 0xff) && (0x01 & addr[0]));
55 -extern __inline int is_broadcast_mac_addr(const u8 *addr)
56 +static __inline int is_broadcast_mac_addr(const u8 *addr)
58 return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \
59 (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
62 -extern __inline int is_zero_mac_addr(const u8 *addr)
63 +static __inline int is_zero_mac_addr(const u8 *addr)
65 return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \
66 (addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
67 diff --git a/drivers/net/wireless/actions/rtl8723bs_vq0/include/ieee80211.h b/drivers/net/wireless/actions/rtl8723bs_vq0/include/ieee80211.h
68 index 5dfc421..95144b6 100755
69 --- a/drivers/net/wireless/actions/rtl8723bs_vq0/include/ieee80211.h
70 +++ b/drivers/net/wireless/actions/rtl8723bs_vq0/include/ieee80211.h
71 @@ -1314,18 +1314,18 @@ enum ieee80211_state {
72 (((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \
73 (((Addr[5]) & 0xff) == 0xff))
74 #else
75 -extern __inline int is_multicast_mac_addr(const u8 *addr)
76 +static __inline int is_multicast_mac_addr(const u8 *addr)
78 return ((addr[0] != 0xff) && (0x01 & addr[0]));
81 -extern __inline int is_broadcast_mac_addr(const u8 *addr)
82 +static __inline int is_broadcast_mac_addr(const u8 *addr)
84 return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \
85 (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
88 -extern __inline int is_zero_mac_addr(const u8 *addr)
89 +static __inline int is_zero_mac_addr(const u8 *addr)
91 return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \
92 (addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
93 diff --git a/drivers/net/wireless/actions/rtl8723bu/include/ieee80211.h b/drivers/net/wireless/actions/rtl8723bu/include/ieee80211.h
94 index 09475ef..56e0f5a 100755
95 --- a/drivers/net/wireless/actions/rtl8723bu/include/ieee80211.h
96 +++ b/drivers/net/wireless/actions/rtl8723bu/include/ieee80211.h
97 @@ -1318,18 +1318,18 @@ enum ieee80211_state {
98 (((Addr[2]) & 0xff) == 0xff) && (((Addr[3]) & 0xff) == 0xff) && (((Addr[4]) & 0xff) == 0xff) && \
99 (((Addr[5]) & 0xff) == 0xff))
100 #else
101 -extern __inline int is_multicast_mac_addr(const u8 *addr)
102 +static __inline int is_multicast_mac_addr(const u8 *addr)
104 return ((addr[0] != 0xff) && (0x01 & addr[0]));
107 -extern __inline int is_broadcast_mac_addr(const u8 *addr)
108 +static __inline int is_broadcast_mac_addr(const u8 *addr)
110 return ((addr[0] == 0xff) && (addr[1] == 0xff) && (addr[2] == 0xff) && \
111 (addr[3] == 0xff) && (addr[4] == 0xff) && (addr[5] == 0xff));
114 -extern __inline int is_zero_mac_addr(const u8 *addr)
115 +static __inline int is_zero_mac_addr(const u8 *addr)
117 return ((addr[0] == 0x00) && (addr[1] == 0x00) && (addr[2] == 0x00) && \
118 (addr[3] == 0x00) && (addr[4] == 0x00) && (addr[5] == 0x00));
120 2.10.2