Re: [PATCH] sunrpc: wrap debug symobls with CONFIG_SUNRPC_DEBUG

From: Simon Horman
Date: Sun Jul 30 2023 - 11:38:40 EST


On Fri, Jul 28, 2023 at 10:57:50PM +0800, Min-Hua Chen wrote:
> rpc_debug, nfs_debug, nfsd_debug, and nlm_debug are used
> if CONFIG_SUNRPC_DEBUG is set. Wrap them with CONFIG_SUNRPC_DEBUG
> and fix the following sparse warnings:
>
> net/sunrpc/sysctl.c:29:17: sparse: warning: symbol 'rpc_debug' was not declared. Should it be static?
> net/sunrpc/sysctl.c:32:17: sparse: warning: symbol 'nfs_debug' was not declared. Should it be static?
> net/sunrpc/sysctl.c:35:17: sparse: warning: symbol 'nfsd_debug' was not declared. Should it be static?
> net/sunrpc/sysctl.c:38:17: sparse: warning: symbol 'nlm_debug' was not declared. Should it be static?
>
> Signed-off-by: Min-Hua Chen <minhuadotchen@xxxxxxxxx>

Reviewed-by: Simon Horman <horms@xxxxxxxxxx>