aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2015-12-05 13:11:28 +0000
committerFelix Fietkau <nbd@openwrt.org>2015-12-05 13:11:28 +0000
commit3fd67b7f41785cbe84f8dfae2cdfa0d8ec8652fd (patch)
tree83f5917a89b38e30729a88ac5a19f6f0dcc5ffa9
parentb580ebb5a8e19401b984a36de187b74843a7612b (diff)
downloadupstream-3fd67b7f41785cbe84f8dfae2cdfa0d8ec8652fd.tar.gz
upstream-3fd67b7f41785cbe84f8dfae2cdfa0d8ec8652fd.tar.bz2
upstream-3fd67b7f41785cbe84f8dfae2cdfa0d8ec8652fd.zip
kernel: fix linux 4.4 mac80211 build error
Signed-off-by: Felix Fietkau <nbd@openwrt.org> SVN-Revision: 47789
-rw-r--r--target/linux/generic/patches-4.4/010-net-remove-unnecessary-semicolon-in-netdev_alloc_pcp.patch24
1 files changed, 24 insertions, 0 deletions
diff --git a/target/linux/generic/patches-4.4/010-net-remove-unnecessary-semicolon-in-netdev_alloc_pcp.patch b/target/linux/generic/patches-4.4/010-net-remove-unnecessary-semicolon-in-netdev_alloc_pcp.patch
new file mode 100644
index 0000000000..7123599215
--- /dev/null
+++ b/target/linux/generic/patches-4.4/010-net-remove-unnecessary-semicolon-in-netdev_alloc_pcp.patch
@@ -0,0 +1,24 @@
+From: Felix Fietkau <nbd@openwrt.org>
+Date: Sat, 5 Dec 2015 13:53:36 +0100
+Subject: [PATCH] net: remove unnecessary semicolon in
+ netdev_alloc_pcpu_stats()
+
+This semicolon causes a build error if the function call is wrapped in
+parentheses.
+
+Fixes: aabc92bbe3cf ("net: add __netdev_alloc_pcpu_stats() to indicate gfp flags")
+Reported-by: Imre Kaloz <kaloz@openwrt.org>
+Signed-off-by: Felix Fietkau <nbd@openwrt.org>
+---
+
+--- a/include/linux/netdevice.h
++++ b/include/linux/netdevice.h
+@@ -2083,7 +2083,7 @@ struct pcpu_sw_netstats {
+ })
+
+ #define netdev_alloc_pcpu_stats(type) \
+- __netdev_alloc_pcpu_stats(type, GFP_KERNEL);
++ __netdev_alloc_pcpu_stats(type, GFP_KERNEL)
+
+ #include <linux/notifier.h>
+
='#n173'>173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264