Skip to content

Commit 728bea2

Browse files
bjdooks-ctAnna Schumaker
authored andcommitted
sunrpc: rpc_debug and others are defined even if CONFIG_SUNRPC_DEBUG unset
The rpc_debug, nfs_debug, nfsd_debug and nlm_debug are exported even if CONFIG_SUNRPC_DEBUG is not set. This means that the debug header should also define these to remove the following sparse warnings: net/sunrpc/sysctl.c:29:17: warning: symbol 'rpc_debug' was not declared. Should it be static? net/sunrpc/sysctl.c:32:17: warning: symbol 'nfs_debug' was not declared. Should it be static? net/sunrpc/sysctl.c:35:17: warning: symbol 'nfsd_debug' was not declared. Should it be static? net/sunrpc/sysctl.c:38:17: warning: symbol 'nlm_debug' was not declared. Should it be static? Signed-off-by: Ben Dooks <ben.dooks@codethink.co.uk> Signed-off-by: Anna Schumaker <anna.schumaker@oracle.com>
1 parent e29a3e6 commit 728bea2

1 file changed

Lines changed: 0 additions & 2 deletions

File tree

include/linux/sunrpc/debug.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,12 +14,10 @@
1414
/*
1515
* Debugging macros etc
1616
*/
17-
#if IS_ENABLED(CONFIG_SUNRPC_DEBUG)
1817
extern unsigned int rpc_debug;
1918
extern unsigned int nfs_debug;
2019
extern unsigned int nfsd_debug;
2120
extern unsigned int nlm_debug;
22-
#endif
2321

2422
#define dprintk(fmt, ...) \
2523
dfprintk(FACILITY, fmt, ##__VA_ARGS__)

0 commit comments

Comments
 (0)