net: Properly define functions with no parameters
authorBen Hutchings <bhutchings@solarflare.com>
Tue, 10 Jul 2012 10:54:38 +0000 (10:54 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 11 Jul 2012 06:13:45 +0000 (23:13 -0700)
Defining a function with no parameters as 'T foo()' is the deprecated
K&R style, and is not strictly equivalent to defining it as 'T foo(void)'.

Signed-off-by: Ben Hutchings <bhutchings@solarflare.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cris/eth_v10.c
net/core/dev.c

index 9c755db6b16d12ccbbb43c5172d70c612c61c48e..f0c8bd54ce2930d87a5c6479fef7e9f39e4ca37d 100644 (file)
@@ -1008,7 +1008,7 @@ e100_send_mdio_bit(unsigned char bit)
 }
 
 static unsigned char
-e100_receive_mdio_bit()
+e100_receive_mdio_bit(void)
 {
        unsigned char bit;
        *R_NETWORK_MGM_CTRL = 0;
index 69f7a1a393d8f29998ad9cca0f8bb21a49ea3502..9c21548e5b311d85df5e213a25e14e6c11a01aca 100644 (file)
@@ -1798,7 +1798,7 @@ EXPORT_SYMBOL(netif_set_real_num_rx_queues);
  * This routine should set an upper limit on the number of RSS queues
  * used by default by multiqueue devices.
  */
-int netif_get_num_default_rss_queues()
+int netif_get_num_default_rss_queues(void)
 {
        return min_t(int, DEFAULT_MAX_NUM_RSS_QUEUES, num_online_cpus());
 }