diff options
author | Joe Perches <joe@perches.com> | 2014-09-22 14:10:50 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2014-09-26 15:17:17 -0400 |
commit | 6ea754eb761d9e7a8ac6fa462b05f9e4cf04fb6c (patch) | |
tree | a11c449389583dee4d26215db3d362630a8af547 /include/linux/netdevice.h | |
parent | 0c87b29c3167a2cf9870e721b522651de2c72ce2 (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.h | 19 |
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) |
3615 | int netdev_printk(const char *level, const struct net_device *dev, | 3615 | void 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) |
3618 | int netdev_emerg(const struct net_device *dev, const char *format, ...); | 3618 | void netdev_emerg(const struct net_device *dev, const char *format, ...); |
3619 | __printf(2, 3) | 3619 | __printf(2, 3) |
3620 | int netdev_alert(const struct net_device *dev, const char *format, ...); | 3620 | void netdev_alert(const struct net_device *dev, const char *format, ...); |
3621 | __printf(2, 3) | 3621 | __printf(2, 3) |
3622 | int netdev_crit(const struct net_device *dev, const char *format, ...); | 3622 | void netdev_crit(const struct net_device *dev, const char *format, ...); |
3623 | __printf(2, 3) | 3623 | __printf(2, 3) |
3624 | int netdev_err(const struct net_device *dev, const char *format, ...); | 3624 | void netdev_err(const struct net_device *dev, const char *format, ...); |
3625 | __printf(2, 3) | 3625 | __printf(2, 3) |
3626 | int netdev_warn(const struct net_device *dev, const char *format, ...); | 3626 | void netdev_warn(const struct net_device *dev, const char *format, ...); |
3627 | __printf(2, 3) | 3627 | __printf(2, 3) |
3628 | int netdev_notice(const struct net_device *dev, const char *format, ...); | 3628 | void netdev_notice(const struct net_device *dev, const char *format, ...); |
3629 | __printf(2, 3) | 3629 | __printf(2, 3) |
3630 | int netdev_info(const struct net_device *dev, const char *format, ...); | 3630 | void 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 | ||