Skip to contentSkip to conversation

svcsock.c: include sunrpc.h to quite sparse noise

PATCH In review H Hartley Sweeten 2 participants 2 messages Jun 21, 2011

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 svcsock.c: include sunrpc.h to quite sparse noise

Include the private header sunrpc.h to pickup the declaration of the function svc_send_common to quiet the following sparse noise:

warning: symbol 'svc_send_common' was not declared. Should it be static?

Cc Trond Myklebust <[email protected]>
Cc "J. Bruce Fields" <[email protected]>
Cc Neil Brown <[email protected]>
Cc "David S. Miller" <davem-fT/PcQaiUtIeIZ0/[email protected]>

---

net/sunrpc/svcsock.c +2 -0
index af04f77..f2cb5b8 100644
@@ -51,6 +51,8 @@
 #include <linux/sunrpc/stats.h>
 #include <linux/sunrpc/xprt.h>
 
+#include "sunrpc.h"
+
 #define RPCDBG_FACILITY	RPCDBG_SVCXPRT
 
 

--
To unsubscribe from this list: send the line "unsubscribe linux-nfs" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html

#1 lore raw
Quoted 4 lines · H Hartley Sweeten

Include the private header sunrpc.h to pickup the declaration of the function svc_send_common to quiet the following sparse noise:

warning: symbol 'svc_send_common' was not declared. Should it be static?

Thanks, applying for 3.1--b.

Quoted 22 lines
Cc Trond Myklebust <[email protected]>
Cc "J. Bruce Fields" <[email protected]>
Cc Neil Brown <[email protected]>
Cc "David S. Miller" <[email protected]>

---

net/sunrpc/svcsock.c +2 -0
index af04f77..f2cb5b8 100644
@@ -51,6 +51,8 @@
 #include <linux/sunrpc/stats.h>
 #include <linux/sunrpc/xprt.h>
 
+#include "sunrpc.h"
+
 #define RPCDBG_FACILITY	RPCDBG_SVCXPRT