Received: by 2002:a05:6358:16cd:b0:dc:6189:e246 with SMTP id r13csp8411rwl; Thu, 3 Nov 2022 18:51:52 -0700 (PDT) X-Google-Smtp-Source: AMsMyM4Zs/3xPih/6RBflTaRbUNi86V7FMwvPuSaCeiNimXTsR3Z+IrgoM6ihJqVZbq3VaPNp2f6 X-Received: by 2002:aa7:d506:0:b0:461:565e:8673 with SMTP id y6-20020aa7d506000000b00461565e8673mr33459953edq.416.1667526712527; Thu, 03 Nov 2022 18:51:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667526712; cv=none; d=google.com; s=arc-20160816; b=IJFFYAF0dinZcEM96uheAY3RbfafHHZxYVZ0IfpY3eQDSyGnGwSTCzC7CP+7IiZhba cKV7+aug/ymIZViu5PjaYR+atNS/LIAgGbThxAj8ZGLMFrSRx7AG7STLuq/mwWjSlydD Db3r5RndxRevxsyASsgFS00sMDaFZFw1TdbiBUV0F+bBjItX89mPFnzxS8WuH5l0rzoB tgyT+Kj/i4Eo/f2ud2l8fkx/fAM6qdkyoXHevA8WN8etd2ekiarHiQ2cRtpasa21TC9K IDxx4osIU2rGDSii6E9Q97fr9DlcpmTi2OW4OPFcK5IhDy+qE4k8MJbUXiOJlS+2OtGP Su9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:message-id:date:subject:cc:to:from; bh=HdJypjtSMQGqlLqNEiInxm09qqBNEfYhe3AlQjB4RtE=; b=jnZURHqR0whxMv2T+ICbeEaKZfuznNarg5AhWU/r4O0vLDHBBiYOL8GQiZ+Auy/ZQS K9Pnw5r0GXqS1ZFlVlu5uSr+vDChcqJfFBdbnXQZSYW5nqM4fbJnpCrGgjhHbWyGTQuO Z1lTJJEvQfaFewR+b1ivy9rfMTLkI39S3hSanhhFeErsujZl/hTyzJmSC4qD7FmUm/D/ AKbsWascg5/2FvQSoraKLIOUBr79xvAjnn8RXdVFLnqT33jANDEjLFi+GzgZh6DcNwiQ 2JomleeozvY6Cxb8rm3Xk63a7+OTcIe0QcIim48eJ9fGKu9ly1B2j+LLorMQHH669Enb fgPQ== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id cw15-20020a170906478f00b0073d5f9aa5e9si3282602ejc.327.2022.11.03.18.51.18; Thu, 03 Nov 2022 18:51:52 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-nfs-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-nfs-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230139AbiKDBnL (ORCPT + 99 others); Thu, 3 Nov 2022 21:43:11 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40838 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229823AbiKDBnJ (ORCPT ); Thu, 3 Nov 2022 21:43:09 -0400 Received: from mail.nfschina.com (mail.nfschina.com [124.16.136.209]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id 061EC2229C; Thu, 3 Nov 2022 18:43:09 -0700 (PDT) Received: from localhost (unknown [127.0.0.1]) by mail.nfschina.com (Postfix) with ESMTP id 490CB1E80D9D; Fri, 4 Nov 2022 09:41:02 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from mail.nfschina.com ([127.0.0.1]) by localhost (mail.nfschina.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 32uXRg-KJKvS; Fri, 4 Nov 2022 09:40:59 +0800 (CST) Received: from localhost.localdomain (unknown [219.141.250.2]) (Authenticated sender: zeming@nfschina.com) by mail.nfschina.com (Postfix) with ESMTPA id 2DD4B1E80D9C; Fri, 4 Nov 2022 09:40:59 +0800 (CST) From: Li zeming To: trond.myklebust@hammerspace.com, anna@kernel.org, chuck.lever@oracle.com, jlayton@kernel.org Cc: linux-nfs@vger.kernel.org, linux-kernel@vger.kernel.org, Li zeming Subject: [PATCH] sunrpc: svc: Remove an unused static function svc_ungetu32() Date: Fri, 4 Nov 2022 09:43:03 +0800 Message-Id: <20221104014303.3146-1-zeming@nfschina.com> X-Mailer: git-send-email 2.18.2 X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,SPF_HELO_NONE, SPF_NONE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-nfs@vger.kernel.org The svc_ungetu32 function is not used, you could remove it. Signed-off-by: Li zeming --- 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