net: Fix netdev_WARN_ONCE macro
authorGal Pressman <galp@mellanox.com>
Sun, 7 Jan 2018 10:08:35 +0000 (12:08 +0200)
committerDavid S. Miller <davem@davemloft.net>
Tue, 9 Jan 2018 01:53:14 +0000 (20:53 -0500)
netdev_WARN_ONCE is broken (whoops..), this fix will remove the
unnecessary "condition" parameter, add the missing comma and change
"arg" to "args".

Fixes: 375ef2b1f0d0 ("net: Introduce netdev_*_once functions")
Signed-off-by: Gal Pressman <galp@mellanox.com>
Reviewed-by: Saeed Mahameed <saeedm@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
include/linux/netdevice.h

index 440b000f07f40180d0b830b157ab5941868cb5d8..9415e939f8fe5a305784d44c26fb4ff72160fd4f 100644 (file)
@@ -4409,8 +4409,8 @@ do {                                                              \
        WARN(1, "netdevice: %s%s\n" format, netdev_name(dev),   \
             netdev_reg_state(dev), ##args)
 
-#define netdev_WARN_ONCE(dev, condition, format, arg...)               \
-       WARN_ONCE(1, "netdevice: %s%s\n" format, netdev_name(dev)       \
+#define netdev_WARN_ONCE(dev, format, args...)                         \
+       WARN_ONCE(1, "netdevice: %s%s\n" format, netdev_name(dev),      \
                  netdev_reg_state(dev), ##args)
 
 /* netif printk helpers, similar to netdev_printk */