Skip to contentSkip to conversation

svcauth_unix.c: quiet 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 svcauth_unix.c: quiet sparse noise

Like svcauth_unix, the symbol svcauth_null is used external from this file. Declare it as extern to quiet the following sparse noise:

warning: symbol 'svcauth_null' 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/svcauth_unix.c +1 -0
index c8e1021..62e49e2 100644
@@ -36,6 +36,7 @@ struct unix_domain {
 	/* other stuff later */
 };
 
+extern struct auth_ops svcauth_null;
 extern struct auth_ops svcauth_unix;
 
 static void svcauth_unix_domain_release(struct auth_domain *dom)

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

Like svcauth_unix, the symbol svcauth_null is used external from this file. Declare it as extern to quiet the following sparse noise:

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

Also applying for 3.1.--b.

Quoted 14 lines
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/svcauth_unix.c +0 -0
index c8e1021..62e49e2 100644

net/sunrpc/svcauth_unix.c struct unix_domain { · line 42

Quoted 7 lines
net/sunrpc/svcauth_unix.c +1 -0
@@ -36,6 +36,7 @@ struct unix_domain {
 	/* other stuff later */
 };
 
+extern struct auth_ops svcauth_null;
 extern struct auth_ops svcauth_unix;
 
 static void svcauth_unix_domain_release(struct auth_domain *dom)

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