Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

net: Mark functions as static in net/sunrpc/svc_xprt.c

Mark functions as static in net/sunrpc/svc_xprt.c because they are not
used outside this file.

This eliminates the following warning in net/sunrpc/svc_xprt.c:
net/sunrpc/svc_xprt.c:574:5: warning: no previous prototype for ‘svc_alloc_arg’ [-Wmissing-prototypes]
net/sunrpc/svc_xprt.c:615:18: warning: no previous prototype for ‘svc_get_next_xprt’ [-Wmissing-prototypes]
net/sunrpc/svc_xprt.c:694:6: warning: no previous prototype for ‘svc_add_new_temp_xprt’ [-Wmissing-prototypes]

Signed-off-by: Rashika Kheria <rashika.kheria@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Rashika Kheria and committed by
David S. Miller
e1d83ee6 bd76ed36

+3 -3
+3 -3
net/sunrpc/svc_xprt.c
··· 571 571 } 572 572 } 573 573 574 - int svc_alloc_arg(struct svc_rqst *rqstp) 574 + static int svc_alloc_arg(struct svc_rqst *rqstp) 575 575 { 576 576 struct svc_serv *serv = rqstp->rq_server; 577 577 struct xdr_buf *arg; ··· 612 612 return 0; 613 613 } 614 614 615 - struct svc_xprt *svc_get_next_xprt(struct svc_rqst *rqstp, long timeout) 615 + static struct svc_xprt *svc_get_next_xprt(struct svc_rqst *rqstp, long timeout) 616 616 { 617 617 struct svc_xprt *xprt; 618 618 struct svc_pool *pool = rqstp->rq_pool; ··· 691 691 return xprt; 692 692 } 693 693 694 - void svc_add_new_temp_xprt(struct svc_serv *serv, struct svc_xprt *newxpt) 694 + static void svc_add_new_temp_xprt(struct svc_serv *serv, struct svc_xprt *newxpt) 695 695 { 696 696 spin_lock_bh(&serv->sv_lock); 697 697 set_bit(XPT_TEMP, &newxpt->xpt_flags);