aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorJoe Perches <joe@perches.com>2014-09-22 14:10:50 -0400
committerDavid S. Miller <davem@davemloft.net>2014-09-26 15:17:17 -0400
commit6ea754eb761d9e7a8ac6fa462b05f9e4cf04fb6c (patch)
treea11c449389583dee4d26215db3d362630a8af547 /include/linux/netdevice.h
parent0c87b29c3167a2cf9870e721b522651de2c72ce2 (diff)
net: Change netdev_<level> logging functions to return void
No caller or macro uses the return value so make all the functions return void. Signed-off-by: Joe Perches <joe@perches.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h19
1 files changed, 9 insertions, 10 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index 9f5d293a0281..9b7fbacb6296 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -3612,22 +3612,22 @@ static inline const char *netdev_reg_state(const struct net_device *dev)
3612} 3612}
3613 3613
3614__printf(3, 4) 3614__printf(3, 4)
3615int netdev_printk(const char *level, const struct net_device *dev, 3615void netdev_printk(const char *level, const struct net_device *dev,
3616 const char *format, ...); 3616 const char *format, ...);
3617__printf(2, 3) 3617__printf(2, 3)
3618int netdev_emerg(const struct net_device *dev, const char *format, ...); 3618void netdev_emerg(const struct net_device *dev, const char *format, ...);
3619__printf(2, 3) 3619__printf(2, 3)
3620int netdev_alert(const struct net_device *dev, const char *format, ...); 3620void netdev_alert(const struct net_device *dev, const char *format, ...);
3621__printf(2, 3) 3621__printf(2, 3)
3622int netdev_crit(const struct net_device *dev, const char *format, ...); 3622void netdev_crit(const struct net_device *dev, const char *format, ...);
3623__printf(2, 3) 3623__printf(2, 3)
3624int netdev_err(const struct net_device *dev, const char *format, ...); 3624void netdev_err(const struct net_device *dev, const char *format, ...);
3625__printf(2, 3) 3625__printf(2, 3)
3626int netdev_warn(const struct net_device *dev, const char *format, ...); 3626void netdev_warn(const struct net_device *dev, const char *format, ...);
3627__printf(2, 3) 3627__printf(2, 3)
3628int netdev_notice(const struct net_device *dev, const char *format, ...); 3628void netdev_notice(const struct net_device *dev, const char *format, ...);
3629__printf(2, 3) 3629__printf(2, 3)
3630int netdev_info(const struct net_device *dev, const char *format, ...); 3630void netdev_info(const struct net_device *dev, const char *format, ...);
3631 3631
3632#define MODULE_ALIAS_NETDEV(device) \ 3632#define MODULE_ALIAS_NETDEV(device) \
3633 MODULE_ALIAS("netdev-" device) 3633 MODULE_ALIAS("netdev-" device)
@@ -3645,7 +3645,6 @@ do { \
3645({ \ 3645({ \
3646 if (0) \ 3646 if (0) \
3647 netdev_printk(KERN_DEBUG, __dev, format, ##args); \ 3647 netdev_printk(KERN_DEBUG, __dev, format, ##args); \
3648 0; \
3649}) 3648})
3650#endif 3649#endif
3651 3650