SUNRPC: Clean up bc_svc_process()
authorChuck Lever <chuck.lever@oracle.com>
Mon, 11 Sep 2023 14:38:51 +0000 (10:38 -0400)
committerChuck Lever <chuck.lever@oracle.com>
Mon, 16 Oct 2023 16:44:03 +0000 (12:44 -0400)
commit6ed8cdf967f7e9fc96cd1c129719ef99db2f9afc
tree4b9ce6b63f6cad82cd9b9db5f1f6ac039a627c2a
parent7b31f4daebad296e3164602b8303c265ec4ac7dc
SUNRPC: Clean up bc_svc_process()

The test robot complained that, in some build configurations, the
@error variable in bc_svc_process's only caller is set but never
used. This happens because dprintk() is the only consumer of that
value.

 - Remove the dprintk() call sites in favor of the svc_process
   tracepoint
 - The @error variable and the return value of bc_svc_process() are
   now unused, so get rid of them.
 - The @serv parameter is set to rqstp->rq_serv by the only caller,
   and bc_svc_process() then uses it only to set rqstp->rq_serv. It
   can be removed.
 - Rename bc_svc_process() according to the convention that
   globally-visible RPC server functions have names that begin with
   "svc_"; and because it is globally-visible, give it a proper
   kdoc comment.

Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202308121314.HA8Rq2XG-lkp@intel.com/
Signed-off-by: Chuck Lever <chuck.lever@oracle.com>
fs/nfs/callback.c
include/linux/sunrpc/svc.h
net/sunrpc/svc.c