Re: [PATCH] net: remove unnecessary semicolon in netdev_alloc_pcpu_stats()

2015-12-06 Thread David Miller
From: Felix Fietkau 
Date: Sat,  5 Dec 2015 13:58:11 +0100

> 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 
> Signed-off-by: Felix Fietkau 

Good catch, applied, thank you.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[PATCH] net: remove unnecessary semicolon in netdev_alloc_pcpu_stats()

2015-12-05 Thread 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 
Signed-off-by: Felix Fietkau 
---
 include/linux/netdevice.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 7d2d1d7..f2f91d9 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -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 
 
-- 
2.2.2

--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html


Re: [PATCH] net: remove unnecessary semicolon in netdev_alloc_pcpu_stats()

2015-12-05 Thread Pablo Neira Ayuso
On Sat, Dec 05, 2015 at 01:58:11PM +0100, Felix Fietkau wrote:
> 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 
> Signed-off-by: Felix Fietkau 

Acked-by: Pablo Neira Ayuso 
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html