Skip to contentSkip to conversation

net: fix non-ANSI function declaration warning

PATCH In review Emil Goode 3 participants 6 messages Jul 7, 2012 – Jul 8, 2012

Subsystems (3)
lore
Share & tools
lore

Emil Goode

author
#0 lore raw

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
index 07c1251..fc6fbce 100644
@@ -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
#1 lore raw
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
---
 net/core/dev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
net/core/dev.c +1 -1
index 07c1251..fc6fbce 100644
@@ -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.
maintainer
#2 lore raw

From: 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.

#3 lore raw
Quoted 7 lines · David Miller

From: Ben Hutchings <[email protected]>
Date: Sat, 7 Jul 2012 20:57:29 +0100

Quoted 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.
maintainer
#4 lore raw

From: 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 +0100

Quoted 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.

maintainer
#5 lore raw

From: 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 +0100

Quoted 14 lines · David Miller
Quoted 13 lines

From: 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).

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.