diff options
author | Felix Fietkau <nbd@openwrt.org> | 2015-12-05 13:11:28 +0000 |
---|---|---|
committer | Felix Fietkau <nbd@openwrt.org> | 2015-12-05 13:11:28 +0000 |
commit | af9b8563d88739e0f5a3aab8db032bf1f4057245 (patch) | |
tree | ffa7a4f3f2f80966354e3ec5fcc3343fe4b4d762 /target | |
parent | 206aff50afd60124bc3115f5cce32318efb69fd7 (diff) | |
download | master-187ad058-af9b8563d88739e0f5a3aab8db032bf1f4057245.tar.gz master-187ad058-af9b8563d88739e0f5a3aab8db032bf1f4057245.tar.bz2 master-187ad058-af9b8563d88739e0f5a3aab8db032bf1f4057245.zip |
kernel: fix linux 4.4 mac80211 build error
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@47789 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target')
-rw-r--r-- | target/linux/generic/patches-4.4/010-net-remove-unnecessary-semicolon-in-netdev_alloc_pcp.patch | 24 |
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> + |