Received: by 2002:a05:6358:16cc:b0:ea:6187:17c9 with SMTP id r12csp10855579rwl; Mon, 2 Jan 2023 09:13:18 -0800 (PST) X-Google-Smtp-Source: AMrXdXvUZohuweU3R6sIQ4ju13CgZizbEvFZbKvBMfnox8+gsrvTynBI6cwM6bM1gaxKlvzmGO+R X-Received: by 2002:a05:6a20:1446:b0:af:7989:2579 with SMTP id a6-20020a056a20144600b000af79892579mr86886260pzi.32.1672679598018; Mon, 02 Jan 2023 09:13:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1672679598; cv=none; d=google.com; s=arc-20160816; b=kYw55Mna93N6mEHAynSUDpaOSquIVEX//mRskvM7vzYEwbciWLKfDK138kw8n0w0xE SqvQzj8fEy3qOPknpoxx7XRALHzlCLXRP9GHTXkVTweYPGOcAmsUHwwA8YJoSZhdNKrj 9ytZnMmLumHnl1K8GETJLvoGJgiYwTRxG9M/jWLjlmWR1rdVK2b4ZTg0WuLRf7mYuxBu 8KGp4X10myK8eUy6DhMmjEvGGZugC79T5XaAcUBT3I77GJiEkLNZn8duNAEB+e1tXNl1 DETBPo0s01icM8g62PiAl48FW0u4b07h6ZC8mxdazcBAbGfa+dwekBOIWz7Iifzjzauo N1mA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:to:from:subject :dkim-signature; bh=DgM7bGXeq44+4fh8I/VFO4Z5BUz8SCmyKv2GdlsgpM4=; b=WKPzy5RNIPgq8wul5jquU37bnGfMHG1drKWFjS9ZsMKR20JDuD9/gZ4DlyIemIMKDX PcMJsSugkTRoJu3HxfjEh9AkgMSJv43XcubcWoUUELzeOaTUGCxgvqfDOFFpfszqlUrM hQrOBSKTY6Kz5F6QxjGALhIhMLEOr+lZdYBOsOmAlD3TMlIy8MiH42mh6sgO+H4AHIE9 i6oJUzHh0IJeJdLhx027HQEcHI+doXPCgQX//09RuWjXWcGlSFZ72RyeyIhzWeIXA1rk Cjyi+CVgqT9y3/B2fX8vTPZqK1WJF1Vt5qptfoekTkyANtGTDpUrdRbsxgLgCyzgzB6v hLHw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b0UmdEFA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id i64-20020a638743000000b00477931a9ba7si30270381pge.279.2023.01.02.09.13.05; Mon, 02 Jan 2023 09:13:17 -0800 (PST) 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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=b0UmdEFA; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236147AbjABRID (ORCPT + 99 others); Mon, 2 Jan 2023 12:08:03 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:54084 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236202AbjABRIC (ORCPT ); Mon, 2 Jan 2023 12:08:02 -0500 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B399864DB for ; Mon, 2 Jan 2023 09:08:00 -0800 (PST) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 5135B60F79 for ; Mon, 2 Jan 2023 17:08:00 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 9B6F8C433D2 for ; Mon, 2 Jan 2023 17:07:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1672679279; bh=uZoBRUQ42c5ysnALy31peiDJKRWwcagd71/KKJOgRAM=; h=Subject:From:To:Date:In-Reply-To:References:From; b=b0UmdEFAFWgAk4xubM3spVXPw7f97PPo30inSEnmv57MVZbDgKX9uLaXt0fgvMiku gZEcFtxf06s4rx3jd34T0xerxFHxNtHSw/uuIjL3/ZwOEAb8l7Dh5yK2qpgdt1l+td 246ffH3H6hkYjQ6KPeAIa2kisgE8raqCbvMUIJ/xahgJQOKIpVsPHLkrAzKM5Ry9F6 toHgAmpU4wFdXNwTcBqJMmA2ruOKFtQw/TDaw03lxzHlmzJLn/LxuiF3L6JzmofLzQ Es6+SBsSJurArPG1y2O7dMNUOudEE8yDlAO4t8MQfarFasHB+MFY7ivd63qEFKeKLx ftAPgXP2EvJMw== Subject: [PATCH v1 24/25] SUNRPC: Remove svc_process_common's argv parameter From: Chuck Lever To: linux-nfs@vger.kernel.org Date: Mon, 02 Jan 2023 12:07:58 -0500 Message-ID: <167267927856.112521.12923547853480719674.stgit@manet.1015granger.net> In-Reply-To: <167267753484.112521.4826748148788735127.stgit@manet.1015granger.net> References: <167267753484.112521.4826748148788735127.stgit@manet.1015granger.net> User-Agent: StGit/1.5.dev2+g9ce680a5 MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-7.1 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_HI, SPF_HELO_NONE,SPF_PASS 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 From: Chuck Lever Clean up: With xdr_stream decoding, the @argv parameter is no longer used. Signed-off-by: Chuck Lever --- net/sunrpc/svc.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/net/sunrpc/svc.c b/net/sunrpc/svc.c index f292b898f200..571151a17e87 100644 --- a/net/sunrpc/svc.c +++ b/net/sunrpc/svc.c @@ -1225,7 +1225,7 @@ EXPORT_SYMBOL_GPL(svc_generic_init_request); * Common routine for processing the RPC request. */ static int -svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) +svc_process_common(struct svc_rqst *rqstp, struct kvec *resv) { struct svc_program *progp; const struct svc_procedure *procp = NULL; @@ -1363,8 +1363,8 @@ svc_process_common(struct svc_rqst *rqstp, struct kvec *argv, struct kvec *resv) return 0; err_short_len: - svc_printk(rqstp, "short len %zd, dropping request\n", - argv->iov_len); + svc_printk(rqstp, "short len %u, dropping request\n", + rqstp->rq_arg.len); goto close_xprt; err_bad_rpc: @@ -1453,7 +1453,7 @@ svc_process(struct svc_rqst *rqstp) dir = svc_getu32(argv); if (dir != rpc_call) goto out_baddir; - if (!svc_process_common(rqstp, argv, resv)) + if (!svc_process_common(rqstp, resv)) goto out_drop; return svc_send(rqstp); @@ -1519,7 +1519,7 @@ bc_svc_process(struct svc_serv *serv, struct rpc_rqst *req, svc_getnl(argv); /* CALLDIR */ /* Parse and execute the bc call */ - proc_error = svc_process_common(rqstp, argv, resv); + proc_error = svc_process_common(rqstp, resv); atomic_dec(&req->rq_xprt->bc_slot_count); if (!proc_error) {