net: remove unnecessary semicolon in netdev_alloc_pcpu_stats()
Subsystems (2)
PATCH 1/1 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 <[email protected]>
Signed-off-by Felix Fietkau <[email protected]>
--- include/linux/netdevice.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
include/linux/netdevice.h +1 -1
@@ -2103,7 +2103,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>
Signature · 1 line
2.2.2
Quoted 6 lines · Felix Fietkau
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 <[email protected]>Signed-off-by Felix Fietkau <[email protected]>
David Miller
maintainerFrom: Felix Fietkau <[email protected]>
Date: Sat, 5 Dec 2015 13:58:11 +0100
Quoted 6 lines
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 <[email protected]>Signed-off-by Felix Fietkau <[email protected]>
Good catch, applied, thank you.