Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Properly define functions with no parameters

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>

authored by

Ben Hutchings and committed by
David S. Miller
a55b138b fdd28d73

+2 -2
+1 -1
drivers/net/cris/eth_v10.c
··· 1008 1008 } 1009 1009 1010 1010 static unsigned char 1011 - e100_receive_mdio_bit() 1011 + e100_receive_mdio_bit(void) 1012 1012 { 1013 1013 unsigned char bit; 1014 1014 *R_NETWORK_MGM_CTRL = 0;
+1 -1
net/core/dev.c
··· 1798 1798 * This routine should set an upper limit on the number of RSS queues 1799 1799 * used by default by multiqueue devices. 1800 1800 */ 1801 - int netif_get_num_default_rss_queues() 1801 + int netif_get_num_default_rss_queues(void) 1802 1802 { 1803 1803 return min_t(int, DEFAULT_MAX_NUM_RSS_QUEUES, num_online_cpus()); 1804 1804 }