lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Wed, 24 Oct 2007 14:41:15 -0400
From:	Chuck Lever <chuck.lever@...cle.com>
To:	Adrian Bunk <bunk@...nel.org>
CC:	Tom Talpey <tmt@...app.com>,
	Trond Myklebust <Trond.Myklebust@...app.com>,
	netdev@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [2.6 patch] make sunrpc/xprtsock.c:xs_setup_{udp,tcp}() static

Adrian Bunk wrote:
> xs_setup_{udp,tcp}() can now become static.

ACK.  Sorry this was overlooked.

> Signed-off-by: Adrian Bunk <bunk@...nel.org>
> 
> ---
> 
>  include/linux/sunrpc/xprtsock.h |    6 ------
>  net/sunrpc/xprtsock.c           |    4 ++--
>  2 files changed, 2 insertions(+), 8 deletions(-)
> 
> 833a31c8caef70589f33be8e3a1fc9d8e01ce3c2 
> diff --git a/include/linux/sunrpc/xprtsock.h b/include/linux/sunrpc/xprtsock.h
> index 2c6c2c2..c2a46c4 100644
> --- a/include/linux/sunrpc/xprtsock.h
> +++ b/include/linux/sunrpc/xprtsock.h
> @@ -9,12 +9,6 @@
>  
>  #ifdef __KERNEL__
>  
> -/*
> - * Socket transport setup operations
> - */
> -struct rpc_xprt *xs_setup_udp(struct xprt_create *args);
> -struct rpc_xprt *xs_setup_tcp(struct xprt_create *args);
> -
>  int		init_socket_xprt(void);
>  void		cleanup_socket_xprt(void);
>  
> diff --git a/net/sunrpc/xprtsock.c b/net/sunrpc/xprtsock.c
> index 02298f5..2f630a5 100644
> --- a/net/sunrpc/xprtsock.c
> +++ b/net/sunrpc/xprtsock.c
> @@ -1828,7 +1828,7 @@ static struct rpc_xprt *xs_setup_xprt(struct xprt_create *args,
>   * @args: rpc transport creation arguments
>   *
>   */
> -struct rpc_xprt *xs_setup_udp(struct xprt_create *args)
> +static struct rpc_xprt *xs_setup_udp(struct xprt_create *args)
>  {
>  	struct sockaddr *addr = args->dstaddr;
>  	struct rpc_xprt *xprt;
> @@ -1894,7 +1894,7 @@ struct rpc_xprt *xs_setup_udp(struct xprt_create *args)
>   * @args: rpc transport creation arguments
>   *
>   */
> -struct rpc_xprt *xs_setup_tcp(struct xprt_create *args)
> +static struct rpc_xprt *xs_setup_tcp(struct xprt_create *args)
>  {
>  	struct sockaddr *addr = args->dstaddr;
>  	struct rpc_xprt *xprt;
> 


View attachment "chuck.lever.vcf" of type "text/x-vcard" (327 bytes)

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ