Received: by 2002:a25:b794:0:0:0:0:0 with SMTP id n20csp3517952ybh; Mon, 5 Aug 2019 20:30:01 -0700 (PDT) X-Google-Smtp-Source: APXvYqxZ6Fg+GF+FHIalHPCgccN4EjfkHN5Rv/LQll1l7w1OZpVgrOzgx76CfpuQX+gadrhaZKSA X-Received: by 2002:a17:902:9689:: with SMTP id n9mr968720plp.241.1565062200923; Mon, 05 Aug 2019 20:30:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565062200; cv=none; d=google.com; s=arc-20160816; b=umLW42mJ1mGVznwcI60EZjGGf9FVv/odQ7GXn6CtQ2BnLwvsGBxJ9xQe1L0U1rvZT0 cu+cKS8WywT4PGzYwlmt23PCeq9ISQkB5u5YGaEhsqcBL9g4gq9i1vJ7hgE+12QJgPQU 7pzUViZUe/KpuzM8ErXKSWL8LxVsgNj3iA2qkGcyNrr593R6ePfrkbAlSW+3Hr/PSdXa +iA1BYLlt6mD3ddzqkpw/T4BTgXLvQ2YgwL9zGre5x1JMFJQ/tJo4+xU1E72GFbJjTJx wl6J24F1QsoldZIT9hECMOioGl0GrnfR+TdEfj+z5F3JXfYWGMRTZlSmNVjbOkqFy9Oo lm6Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:to:references:message-id :content-transfer-encoding:cc:date:in-reply-to:from:subject :mime-version:dkim-signature; bh=7I+W1IHQoXT5wG6AmL/uplOOrHiM/gS299fH35smI2I=; b=nX0kJgzXK+x4XuBODhRM/ZyEkvvEiUHsxIhZvp3LmQ7YK3ujH6vt69l38llpkZE11J 5G8eSe0Lvycqz7XstUD9bv96jD3m66f/N3+By7z9SF/vJlsgs2nU4Nud5sRn3RcYSajG ZAgq1KL/c0nECxxAkqG92tUP7JmMVBRWJTLt7VBOARGQCqUptZUc7u1TAhjoSPGxwt9w rvZyk+VulxZFgMDyfg8b0AzQuEtvEsWGgqbwWxWK6tkcBPIB+5M9pbtE7EWip7jyKF3H 3Ca2/ZcFIv+1YxRGvUQ8vdZcDFcRrl2xObZLclOCogRD+5t2+s7G04iAIlxqy6thtc7H zSmA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=GteYQ77L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id c1si44198499pgw.444.2019.08.05.20.29.44; Mon, 05 Aug 2019 20:30:00 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@lca.pw header.s=google header.b=GteYQ77L; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1731533AbfHFD1g (ORCPT + 99 others); Mon, 5 Aug 2019 23:27:36 -0400 Received: from mail-qt1-f195.google.com ([209.85.160.195]:39806 "EHLO mail-qt1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729383AbfHFD1f (ORCPT ); Mon, 5 Aug 2019 23:27:35 -0400 Received: by mail-qt1-f195.google.com with SMTP id l9so83117241qtu.6 for ; Mon, 05 Aug 2019 20:27:35 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lca.pw; s=google; h=mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7I+W1IHQoXT5wG6AmL/uplOOrHiM/gS299fH35smI2I=; b=GteYQ77LCE+NXYg+K4be284RsKS1h1ELviGK0SVws/hdbk8Fdkh2Nw9bZCAcgNioFe NjKyEUSuQbZ1NB88MRZbBeTB8ciGwJVaUxl+6HuOqH0xiq49WzSAn0qpTCeY6w9Faj3F oXbkZWMYN3kV0ralkzNxBlNqs03+hoYHwK28kRjSsmdz1/kziwXhF0c71rtnpWBA6pE+ W+8BVTX1c2gf/qLtOF3JezTFjk7Lm0jIcMG9amp05PRI6UpGiF+u+njxfV0wT9tKqKYb 7opepZB2hnAdfEOBFz91arf6uRQYeDnaxqfsXEEA/wEmWFRyf+XInMCaRU6lP0/lQRkL WYCA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:subject:from:in-reply-to:date:cc :content-transfer-encoding:message-id:references:to; bh=7I+W1IHQoXT5wG6AmL/uplOOrHiM/gS299fH35smI2I=; b=nakx8AQgtBgHBQUf5Y40/D7ZOLqQj8POHROqTbnBuNHykNkfOxSAC/OZ4K7hJajTAG Ugdk8Psh3+NkE44DdfhueG/0sxrI42BovtwyOBQ9uVOwAzvwYROi7AoW6GumpLqXxzK+ FRWV+x6C/HQYvhE8EHENYGh7CETtttC466nPEkm6qtdpGVl2DpK+ddIEl+y6KEs1sDZ7 1x9OVy2cfU82AGtm5kllNCrBVVDUWVeTDFGrk7/CBzvS6o9wAqpUgseeWlrg7zxy/6x5 x3vvHDlmTSX40YFniPd9+AdBZyGdR/a6q67B+2vRkbpgphN6fTdVbRiulCzxtn7fgtvZ NuSQ== X-Gm-Message-State: APjAAAXQB9T5/rNLkzDSw+ORqtQ38ICOrs/SSVzybZPiEgktrbI8jbeC yUIkYoFUhgijNHoWX6apzo+Aeg== X-Received: by 2002:ac8:35f6:: with SMTP id l51mr1190044qtb.109.1565062054968; Mon, 05 Aug 2019 20:27:34 -0700 (PDT) Received: from [192.168.1.153] (pool-71-184-117-43.bstnma.fios.verizon.net. [71.184.117.43]) by smtp.gmail.com with ESMTPSA id m5sm35790115qke.25.2019.08.05.20.27.33 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 05 Aug 2019 20:27:34 -0700 (PDT) Content-Type: text/plain; charset=us-ascii Mime-Version: 1.0 (Mac OS X Mail 12.4 \(3445.104.11\)) Subject: Re: [PATCH] scsi/megaraid_sas: fix a compilation warning From: Qian Cai In-Reply-To: <1564151143-22889-1-git-send-email-cai@lca.pw> Date: Mon, 5 Aug 2019 23:27:32 -0400 Cc: jejb@linux.ibm.com, Kashyap Desai , Sumit Saxena , shivasharan.srikanteshwara@broadcom.com, megaraidlinux.pdl@broadcom.com, linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Content-Transfer-Encoding: quoted-printable Message-Id: References: <1564151143-22889-1-git-send-email-cai@lca.pw> To: martin.petersen@oracle.com X-Mailer: Apple Mail (2.3445.104.11) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Ping. Please take a look at this trivial patch. > On Jul 26, 2019, at 10:25 AM, Qian Cai wrote: >=20 > The commit de516379e85f ("scsi: megaraid_sas: changes to function > prototypes") introduced a comilation warning due to it changed the > function prototype of read_fw_status_reg() to take an instance pointer > instead, but forgot to remove an unused variable. >=20 > drivers/scsi/megaraid/megaraid_sas_fusion.c: In function > 'megasas_fusion_update_can_queue': > drivers/scsi/megaraid/megaraid_sas_fusion.c:326:39: warning: variable > 'reg_set' set but not used [-Wunused-but-set-variable] > struct megasas_register_set __iomem *reg_set; > ^~~~~~~ > Fixes: de516379e85f ("scsi: megaraid_sas: changes to function = prototypes") > Signed-off-by: Qian Cai > --- > drivers/scsi/megaraid/megaraid_sas_fusion.c | 3 --- > 1 file changed, 3 deletions(-) >=20 > diff --git a/drivers/scsi/megaraid/megaraid_sas_fusion.c = b/drivers/scsi/megaraid/megaraid_sas_fusion.c > index a32b3f0fcd15..e8092d59d575 100644 > --- a/drivers/scsi/megaraid/megaraid_sas_fusion.c > +++ b/drivers/scsi/megaraid/megaraid_sas_fusion.c > @@ -323,9 +323,6 @@ inline void megasas_return_cmd_fusion(struct = megasas_instance *instance, > { > u16 cur_max_fw_cmds =3D 0; > u16 ldio_threshold =3D 0; > - struct megasas_register_set __iomem *reg_set; > - > - reg_set =3D instance->reg_set; >=20 > /* ventura FW does not fill outbound_scratch_pad_2 with queue = depth */ > if (instance->adapter_type < VENTURA_SERIES) > --=20 > 1.8.3.1 >=20