projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9f0e896
)
net: Fix netdev_WARN_ONCE macro
author
Gal Pressman
<
[email protected]
>
Sun, 7 Jan 2018 10:08:35 +0000
(12:08 +0200)
committer
David S. Miller
<
[email protected]
>
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 <
[email protected]
>
Reviewed-by: Saeed Mahameed <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
include/linux/netdevice.h
patch
|
blob
|
history
diff --git
a/include/linux/netdevice.h
b/include/linux/netdevice.h
index 440b000f07f40180d0b830b157ab5941868cb5d8..9415e939f8fe5a305784d44c26fb4ff72160fd4f 100644
(file)
--- a/
include/linux/netdevice.h
+++ b/
include/linux/netdevice.h
@@
-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 */