Received: by 2002:a05:7412:6592:b0:d7:7d3a:4fe2 with SMTP id m18csp2460721rdg; Mon, 14 Aug 2023 03:24:24 -0700 (PDT) X-Google-Smtp-Source: AGHT+IGnYX4Q1D19GD7aGCapmHdo53fA/MxybKIqSEcgl1SqrxttuJULtjDX99gw+4Oe1cX/9CZS X-Received: by 2002:a05:6a00:2d86:b0:67e:e019:3a28 with SMTP id fb6-20020a056a002d8600b0067ee0193a28mr8435599pfb.16.1692008663683; Mon, 14 Aug 2023 03:24:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1692008663; cv=none; d=google.com; s=arc-20160816; b=UCvqFp41N2dHpZj3FudQMfVnm/yu8bScoZLk7lRp0lfv1xt0QHwu9lIrzUO4biN6rL JcdVN7As7eFmBmUdokb3+IDl+Hs1YJnPjU2y6FFcu/I++XrN7ZlTVcfW0wrdaKqbrWOY O9eEF0Rfd3JZ1ggGtIKJvuYrkK9PkKPpjXogx7pHWcrN11doKoXqu4W6OEJ+Dcw2swED cyjQy4WFwm0fvWT//MzP7rx/8A80Q0rmeM3u5vpTgZEWhWdNscPsi/xu2+86B/f8QTGq Be8iWEuz0I7CEg/F809iAkTksBPNsoRtmZ7PrfhPYBrXFYB6TMo08fw0jbvNYMeiXnlk pD9Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=HaelCxrYlwjLOKGNZGuAO+noHsa9yxM/pqDGb9ODBLo=; fh=2UUAphGAc+UM6oK+hl5fi+c13ExTI3v5TYcJftN1NeY=; b=FfrUQTRI9BCKA2VIlVd4Uu+CP7W+LaDbnKGCjpNAD7kALErzx8DTYd8aIpPgvlV/WW Qv/dqXa+LsSNTfdhrr6g6v+jDnyl0SxqVBi2amsnahBIw4sitkVgwIa2GIETQF8FKcNz 4yPSQ6JieYrhY+mtEvaMrk4xUGag2vAiLI64+tfpj34uXrfWaz8xt3q9Ibs5C7jhYOVE 8cdO04pMtPZTmBjuatkkVVR4OrmZWsYf6KKVVMWx59ftaiySZrke+tr275kbcyvBHZSf 3qYMFJJ75z063fHXK7f/qBt9V/Pc228NiWNy2M2muXoN4y7UEGPzhgkzGOqJWFizBxBj UnhQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJFTC2TS; 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; 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 w8-20020a63f508000000b00565cc127d9bsi197567pgh.397.2023.08.14.03.24.11; Mon, 14 Aug 2023 03:24:23 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=PJFTC2TS; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233940AbjHNKNg (ORCPT + 99 others); Mon, 14 Aug 2023 06:13:36 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59316 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236991AbjHNKNf (ORCPT ); Mon, 14 Aug 2023 06:13:35 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 35D13133 for ; Mon, 14 Aug 2023 03:13:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 96BBA64C85 for ; Mon, 14 Aug 2023 10:13:16 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8BB8DC433C7; Mon, 14 Aug 2023 10:13:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1692007996; bh=Tw6xsKFT9/YLilCc8qW/d4Dahue6d9Rwz2kbqcD9t4I=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=PJFTC2TSqzm0gkNfWgpvXzM5a662tGAadcpzrNwHL24QqhdQf9dJf2yeVVR6axJzY bV4KZ6xAMtYoA7Obv6jzXOEMmo59SfWfJ+K88bwZ25n9p8uxySGD9QDpGpiSt0Psvg fdWHsh+LQlEbzYEc/UD2Fn9Rg5FsNmIJuFwsG2dQxzvAihX1s4j9VOrFEDfrFd8BD4 Xko85h4OV4pf7UfCA283BopFHNWgBAHpiLgeIwspoL310Z90GxCf4PLnmnr2qGWkXF YOQZRgcyB6MZpGhiTxYqrFkUxYFKUdqWc/FVDLSJjt/9SdjFbA9TYmHLsQ1Sil6rO/ Bw5IuL1BlGj0A== Date: Mon, 14 Aug 2023 13:13:12 +0300 From: Leon Romanovsky To: Arnd Bergmann Cc: Ariel Elior , Manish Chopra , Arnd Bergmann , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , Nathan Chancellor , Nick Desaulniers , Tom Rix , Yuval Mintz , netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev Subject: Re: [PATCH] qed: remove unused 'resp_size' calculation Message-ID: <20230814101312.GF3921@unreal> References: <20230814074512.1067715-1-arnd@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230814074512.1067715-1-arnd@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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-kernel@vger.kernel.org On Mon, Aug 14, 2023 at 09:45:03AM +0200, Arnd Bergmann wrote: > From: Arnd Bergmann > > Newer versions of clang warn about this variable being assigned but > never used: > > drivers/net/ethernet/qlogic/qed/qed_vf.c:63:67: error: parameter 'resp_size' set but not used [-Werror,-Wunused-but-set-parameter] > > There is no indication in the git history on how this was ever > meant to be used, so just remove the entire calculation and argument > passing for it to avoid the warning. > > Fixes: 1408cc1fa48c5 ("qed: Introduce VFs") > Signed-off-by: Arnd Bergmann > --- > drivers/net/ethernet/qlogic/qed/qed_vf.c | 45 +++++++++--------------- > 1 file changed, 17 insertions(+), 28 deletions(-) > I don't think that Fixes tag is really needed here and title should be [PATCH net] or [PATCH net-next]. Thanks, Reviewed-by: Leon Romanovsky