From patchwork Sun Mar 26 00:17:33 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rix X-Patchwork-Id: 74995 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:b0ea:0:b0:3b6:4342:cba0 with SMTP id b10csp677033vqo; Sat, 25 Mar 2023 17:40:32 -0700 (PDT) X-Google-Smtp-Source: AKy350Z325nLr9vUqLAXHPneFwPXkG0WXMWZjshcxhPR5rFPRKyJ0hMne4kd615CHM2EuZgvm045 X-Received: by 2002:a17:903:4306:b0:1a1:98a9:4069 with SMTP id jz6-20020a170903430600b001a198a94069mr6071597plb.9.1679791231995; Sat, 25 Mar 2023 17:40:31 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1679791231; cv=none; d=google.com; s=arc-20160816; b=cOI/5eLtF5vKuEBFYXApHYWbE7iUMOAWDb/wNuT6lfSTYQOqfhXEhUwyZwvBVFJIVU io2KF62+y8FUSjw9mN6ELJmPQxBFQE6faWZpGiO88T5LVdkYfENQ5qWNKPacTiOv+qNj tl1kC1rh+bPpxLCSJ9HStfDyaE1KceeOuqO4lIpXIBRdtHI1/7qwMjtu24U6K1YqYMs2 6FiaKKlWK3mNpfmduaHJ5FYwNeabVBuA3fRV2UDnsQHn9NwtA5+brn0/7jDjaByw3g1i FWb7DT507BEliG9bO3sBAlfsqxD3985TRsbf/zquCTJBqD1MBl65i9eEa2J8FKGCTRY6 TvjA== 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 :message-id:date:subject:cc:to:from:dkim-signature; bh=D61zQjRsLuXz/56PVuTWbWV80IKbwWyVMu0ddKqCreo=; b=bEL2m8/iDW/5t+JDwOZW5XcVJfVuJYaioTqAaKs6eMNH3nErN1y01ByA60gz1CW0fC XHNaNvaAjDj0U37HHBC1sPpP6oTEzMibUv8CmMafpMKnc+TdAbdLIPAXyGgJVgqJQx+Y JzkiIM9yXDWPXN5JOf3TRzldM6UMC01ouSf+r1aHqssxhuumxlLVWY4ByjDSdCIDMxMV b9wEcyineEQAyFwzGOxllxHJOWLB3KGaYjk7Ix5k9KuJHtFlhARL8BLLek7a2JVMJfM3 g8wiQUx5MyvrijgyTaztlAc0FrD8LgX4WTkqWaxslzSPYIP3+NrRizL7GJzIJNAA9niO t/ww== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@redhat.com header.s=mimecast20190719 header.b=U3BnUJum; 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=redhat.com Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id c14-20020a170902d48e00b001a1ce0509c7si17811080plg.16.2023.03.25.17.40.19; Sat, 25 Mar 2023 17:40:31 -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=@redhat.com header.s=mimecast20190719 header.b=U3BnUJum; 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=redhat.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230405AbjCZASa (ORCPT + 99 others); Sat, 25 Mar 2023 20:18:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:35498 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229446AbjCZAS2 (ORCPT ); Sat, 25 Mar 2023 20:18:28 -0400 Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C0EBABDF4 for ; Sat, 25 Mar 2023 17:17:40 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1679789860; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version: content-transfer-encoding:content-transfer-encoding; bh=D61zQjRsLuXz/56PVuTWbWV80IKbwWyVMu0ddKqCreo=; b=U3BnUJumUQwrQ9WrHaCUOcf1seZXFCvR/1Vt09BA49DLKbeuyFa/uqXi3ARQMNaB9ICNNc ypdnEmMVXsC8ME2UPkQWubgZmJcALZ864YfWVBG8sobdIiyXUjq3L+bP4/69+3T5OwkunT AM5pnD4ORKilVWOtQqrAsFHdKNzanEk= Received: from mail-qt1-f200.google.com (mail-qt1-f200.google.com [209.85.160.200]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-447-3BUjMMv-MAeSMD6axFZ2tw-1; Sat, 25 Mar 2023 20:17:38 -0400 X-MC-Unique: 3BUjMMv-MAeSMD6axFZ2tw-1 Received: by mail-qt1-f200.google.com with SMTP id v7-20020a05622a188700b003e0e27bbc2eso3466655qtc.8 for ; Sat, 25 Mar 2023 17:17:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1679789858; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=D61zQjRsLuXz/56PVuTWbWV80IKbwWyVMu0ddKqCreo=; b=kMpMq+ZZEpwaWRTe7igKXJpC4AwlPjv8IKoSHmy5QK34ZYkcXwWxFnaumI4dEHRSmB fyw11dR4nMJUmkCxrCakk/biPJsyovGDHtCgsrAil5/9TjLkpp+4kSs5r10mSFAZ+xXD m+Dbqiw+Yu+AxEeH9UNoZtN2Ij9tcHHzH08vPUIovaB1FueP0xr5/UBT2mJA6ufbMAgv 36XDIwEAwEqQyIw99dBoKKaP7bbkoxSh1OjcJLNe/nuaCm20krobdcXW2VJUREvwfQBe SPgDc/T2E7HLNJKej96gRQrdgp25bAQo3upwenYV3D573BUkB+6HtnUlska8B6CrQMM9 JAbQ== X-Gm-Message-State: AAQBX9egb4Y34XN3M9u2gi+gCBgaNy0Y2NlOclkPF4POvyDG+6BxuaDx IlsvqKqXvrTHsTCnnQLCqTCtPGv5+hkbYUNsDvW4bdnXIAHUAI/PDDqfK4r0ZAfPrQuCzRV2pV3 CUgBXSoEJlqjVJOzB61H7NFWtFI3dnY2E X-Received: by 2002:a05:6214:2506:b0:5a5:d286:c706 with SMTP id gf6-20020a056214250600b005a5d286c706mr15063791qvb.17.1679789857890; Sat, 25 Mar 2023 17:17:37 -0700 (PDT) X-Received: by 2002:a05:6214:2506:b0:5a5:d286:c706 with SMTP id gf6-20020a056214250600b005a5d286c706mr15063781qvb.17.1679789857620; Sat, 25 Mar 2023 17:17:37 -0700 (PDT) Received: from dell-per740-01.7a2m.lab.eng.bos.redhat.com (nat-pool-bos-t.redhat.com. [66.187.233.206]) by smtp.gmail.com with ESMTPSA id 204-20020a3708d5000000b007485a383921sm528719qki.116.2023.03.25.17.17.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 25 Mar 2023 17:17:37 -0700 (PDT) From: Tom Rix To: aelior@marvell.com, manishc@marvell.com, davem@davemloft.net, edumazet@google.com, kuba@kernel.org, pabeni@redhat.com, nathan@kernel.org, ndesaulniers@google.com Cc: netdev@vger.kernel.org, linux-kernel@vger.kernel.org, llvm@lists.linux.dev, Tom Rix Subject: [PATCH] qed: remove unused num_ooo_add_to_peninsula variable Date: Sat, 25 Mar 2023 20:17:33 -0400 Message-Id: <20230326001733.1343274-1-trix@redhat.com> X-Mailer: git-send-email 2.27.0 MIME-Version: 1.0 X-Spam-Status: No, score=-0.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2,SPF_HELO_NONE,SPF_NONE autolearn=unavailable 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?1761388770493525133?= X-GMAIL-MSGID: =?utf-8?q?1761388770493525133?= clang with W=1 reports drivers/net/ethernet/qlogic/qed/qed_ll2.c:649:6: error: variable 'num_ooo_add_to_peninsula' set but not used [-Werror,-Wunused-but-set-variable] u32 num_ooo_add_to_peninsula = 0, cid; ^ This variable is not used so remove it. Signed-off-by: Tom Rix Reviewed-by: Simon Horman --- drivers/net/ethernet/qlogic/qed/qed_ll2.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/net/ethernet/qlogic/qed/qed_ll2.c b/drivers/net/ethernet/qlogic/qed/qed_ll2.c index e5116a86cfbc..717a0b3f89bd 100644 --- a/drivers/net/ethernet/qlogic/qed/qed_ll2.c +++ b/drivers/net/ethernet/qlogic/qed/qed_ll2.c @@ -646,13 +646,13 @@ static int qed_ll2_lb_rxq_handler(struct qed_hwfn *p_hwfn, struct qed_ll2_rx_queue *p_rx = &p_ll2_conn->rx_queue; u16 packet_length = 0, parse_flags = 0, vlan = 0; struct qed_ll2_rx_packet *p_pkt = NULL; - u32 num_ooo_add_to_peninsula = 0, cid; union core_rx_cqe_union *cqe = NULL; u16 cq_new_idx = 0, cq_old_idx = 0; struct qed_ooo_buffer *p_buffer; struct ooo_opaque *ooo_opq; u8 placement_offset = 0; u8 cqe_type; + u32 cid; cq_new_idx = le16_to_cpu(*p_rx->p_fw_cons); cq_old_idx = qed_chain_get_cons_idx(&p_rx->rcq_chain); @@ -762,7 +762,6 @@ static int qed_ll2_lb_rxq_handler(struct qed_hwfn *p_hwfn, cid, ooo_opq->ooo_isle); break; case TCP_EVENT_ADD_PEN: - num_ooo_add_to_peninsula++; qed_ooo_put_ready_buffer(p_hwfn, p_hwfn->p_ooo_info, p_buffer, true);