mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Chuck Lever III <chuck.lever@oracle.com>
To: Li zeming <zeming@nfschina.com>
Cc: Trond Myklebust <trond.myklebust@hammerspace.com>,
	Anna Schumaker <anna@kernel.org>,
	Jeff Layton <jlayton@kernel.org>,
	Linux NFS Mailing List <linux-nfs@vger.kernel.org>,
	"linux-kernel@vger.kernel.org" <linux-kernel@vger.kernel.org>
Subject: Re: [PATCH] sunrpc: svc: Remove an unused static function svc_ungetu32()
Date: Fri, 4 Nov 2022 13:44:43 +0000	[thread overview]
Message-ID: <A9993DD4-5A7C-42FF-9CAB-6BFD61075981@oracle.com> (raw)
In-Reply-To: <20221104014303.3146-1-zeming@nfschina.com>



> On Nov 3, 2022, at 9:43 PM, Li zeming <zeming@nfschina.com> wrote:
> 
> The svc_ungetu32 function is not used, you could remove it.
> 
> Signed-off-by: Li zeming <zeming@nfschina.com>

Applied to nfsd's for-next. Thanks!


> ---
> include/linux/sunrpc/svc.h | 7 -------
> 1 file changed, 7 deletions(-)
> 
> diff --git a/include/linux/sunrpc/svc.h b/include/linux/sunrpc/svc.h
> index daecb009c05b..6990867470ca 100644
> --- a/include/linux/sunrpc/svc.h
> +++ b/include/linux/sunrpc/svc.h
> @@ -220,13 +220,6 @@ static inline __be32 svc_getu32(struct kvec *iov)
> 	return val;
> }
> 
> -static inline void svc_ungetu32(struct kvec *iov)
> -{
> -	__be32 *vp = (__be32 *)iov->iov_base;
> -	iov->iov_base = (void *)(vp - 1);
> -	iov->iov_len += sizeof(*vp);
> -}
> -
> static inline void svc_putu32(struct kvec *iov, __be32 val)
> {
> 	__be32 *vp = iov->iov_base + iov->iov_len;
> -- 
> 2.18.2
> 

--
Chuck Lever




      reply	other threads:[~2022-11-04 13:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-11-04  1:43 Li zeming
2022-11-04 13:44 ` Chuck Lever III [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=A9993DD4-5A7C-42FF-9CAB-6BFD61075981@oracle.com \
    --to=chuck.lever@oracle.com \
    --cc=anna@kernel.org \
    --cc=jlayton@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-nfs@vger.kernel.org \
    --cc=trond.myklebust@hammerspace.com \
    --cc=zeming@nfschina.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®