From patchwork Fri Nov 4 01:43:03 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Li zeming X-Patchwork-Id: 15273 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a5d:6687:0:0:0:0:0 with SMTP id l7csp108567wru; Thu, 3 Nov 2022 18:52:35 -0700 (PDT) X-Google-Smtp-Source: AMsMyM6N2hhYPzPCUZL0m6XuDJMsOouOnp2qXtuxzoao3idiGJmuaDlNhP3hOFzJ2ipeC0+EqLYZ X-Received: by 2002:a17:907:1b1e:b0:783:8e33:2d1c with SMTP id mp30-20020a1709071b1e00b007838e332d1cmr32003484ejc.304.1667526755477; Thu, 03 Nov 2022 18:52:35 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1667526755; cv=none; d=google.com; s=arc-20160816; b=xxCMqOn4p6rCiemMzfw0uwBfZBpehyFC5DkcSnbIuTiasCIJ790IR6nLtshzmryg4y Mhz9cuZn3yYdMUwhY8Z6RHrbHFD9RZybPSya2k5Hc/DIwHIZtEox6NYA5921hv9w/gQX RilAniQdAUHoUR8Uc2bx6tRm2IUg9IGYZBBV+Ht752NVk7v9D2HbOyrrLLMIg1WE7XUr C1Lq+esvh45gq2d0QbdbgFRr5hmGI0xOv3dLOT33kbdR6kbP7u8ARUgWvSWLmtTqqMgQ AG36Es8yqa/3XZJ4sBQXorrH3JIK5MgAde/jVO1q/8JqNC9aON4qUl71Usnbo+BW/ySR 3LIg== 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=G0sL6tRfQyZPY4CMl4aubMqVLcJACdWKMNP1C1l0yJCX/uIvwVp4tGQcuOH/zNS9Gq 43NDAdpF8u6VDhEgDugDWP0kfqgYs11PG68oLv3tKPFGgq4dnsaPQcO/kWDhtZiSyT1T piRi3W3CjHLSbqtizsGR43rnWf8AWRArRte6vhuyPKREOvVBy68VuX/uKv1vP7TkmdM8 cu1YXRKJjfq/jeS+mHKgmDqBG8adYmJqfLfllcGj1Wr7AvgRMfMkYAec+zkgVxIlfz2p WdtuNCz1TCuBeoKyIqgWPRygrW61Jn7WSeiwhkPbHj6430lde+7YFdXAUEHDdJTgrfBq Qf2w== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id bk20-20020a170906b0d400b00780def41dc4si2453280ejb.527.2022.11.03.18.52.12; Thu, 03 Nov 2022 18:52:35 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-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-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230509AbiKDBnM (ORCPT + 99 others); Thu, 3 Nov 2022 21:43:12 -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-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: =?utf-8?q?INBOX?= X-GMAIL-THRID: =?utf-8?q?1748528535404363237?= X-GMAIL-MSGID: =?utf-8?q?1748528535404363237?= 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;