net: fix non-ANSI function declaration warning
Subsystems (3)
PATCH 1/1 net: fix non-ANSI function declaration warning
Sparse is warning about non-ANSI function declaration. Add void to the parameterless function.
net/core/dev.c:1804:38: warning:
non-ANSI function declaration of function
'netif_get_num_default_rss_queues'
--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
@@ -1801,7 +1801,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 ()); }
Signature · 1 line
1.7.10.4
Quoted 6 lines · Emil Goode
Sparse is warning about non-ANSI function declaration. Add void to the parameterless function.
net/core/dev.c:1804:38: warning:
non-ANSI function declaration of function
'netif_get_num_default_rss_queues'
I also posted a patch for this (and another instance I found).
Ben.
Quoted 18 lines
Signed-off-by Emil Goode <[email protected]>--- net/core/dev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)net/core/dev.c +1
-1@@ -1801,7 +1801,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 ()); }
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
David Miller
maintainerFrom: Ben Hutchings <[email protected]>
Date: Sat, 7 Jul 2012 20:57:29 +0100
Quoted 9 lines · Emil Goode
Quoted 6 lines
Sparse is warning about non-ANSI function declaration. Add void to the parameterless function.
net/core/dev.c:1804:38: warning:
non-ANSI function declaration of function
'netif_get_num_default_rss_queues'I also posted a patch for this (and another instance I found).
But you were asked to fix up the comment formatting in on of those patches so you need to fix that up and resubmit the entire set.
Quoted 7 lines · David Miller
From: Ben Hutchings <[email protected]>
Date: Sat, 7 Jul 2012 20:57:29 +0100Quoted 4 lines · Emil Goode
Quoted 3 lines
Sparse is warning about non-ANSI function declaration. Add void to the parameterless function.
Quoted 8 lines
Quoted 5 lines
Quoted 3 lines
net/core/dev.c:1804:38: warning:
non-ANSI function declaration of function
'netif_get_num_default_rss_queues'I also posted a patch for this (and another instance I found).
But you were asked to fix up the comment formatting in on of those patches so you need to fix that up and resubmit the entire set.
You have got to be kidding. I fixed one thing, so I have to fix another?
Ben.
Signature · 3 lines
Ben Hutchings, Staff Engineer, Solarflare Not speaking for my employer; that's the marketing department's job. They asked us to note that Solarflare product names are trademarked.
David Miller
maintainerFrom: Ben Hutchings <[email protected]>
Date: Sun, 8 Jul 2012 01:16:03 +0100
Quoted 12 lines · David Miller
Quoted 11 lines
From: Ben Hutchings <[email protected]>
Date: Sat, 7 Jul 2012 20:57:29 +0100Quoted 8 lines · Emil Goode
Quoted 6 lines
Sparse is warning about non-ANSI function declaration. Add void to the parameterless function.
net/core/dev.c:1804:38: warning:
non-ANSI function declaration of function
'netif_get_num_default_rss_queues'
Quoted 7 lines
Quoted 4 lines
Quoted 1 line
I also posted a patch for this (and another instance I found).
But you were asked to fix up the comment formatting in on of those patches so you need to fix that up and resubmit the entire set.
You have got to be kidding. I fixed one thing, so I have to fix another?
You're fixing up a comment, fix it fully.
David Miller
maintainerFrom: David Miller <[email protected]>
Date: Sat, 07 Jul 2012 17:25:39 -0700 (PDT)
Quoted 17 lines
From: Ben Hutchings <[email protected]>
Date: Sun, 8 Jul 2012 01:16:03 +0100Quoted 14 lines · David Miller
Quoted 13 lines
From: Ben Hutchings <[email protected]>
Date: Sat, 7 Jul 2012 20:57:29 +0100Quoted 9 lines · Emil Goode
Quoted 6 lines
Sparse is warning about non-ANSI function declaration. Add void to the parameterless function.
net/core/dev.c:1804:38: warning:
non-ANSI function declaration of function
'netif_get_num_default_rss_queues'I also posted a patch for this (and another instance I found).
Quoted 7 lines
Quoted 5 lines
Quoted 2 lines
But you were asked to fix up the comment formatting in on of those patches so you need to fix that up and resubmit the entire set.
You have got to be kidding. I fixed one thing, so I have to fix another?
You're fixing up a comment, fix it fully.
And btw when you don't respond to someone who gives you feedback I have to assume you agree with them and intend to fix it, and thus I automatically move all of your patches to changes-requested state in patchwork and that's the last I will look at them.