From patchwork Mon Nov 2 14:23:56 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 320296 Delivered-To: patch@linaro.org Received: by 2002:a92:7b12:0:0:0:0:0 with SMTP id w18csp3769966ilc; Mon, 2 Nov 2020 06:24:31 -0800 (PST) X-Google-Smtp-Source: ABdhPJzBGnxFfga+IFysHpB5jVIoEmu/u4Vasc542jQ08AKLAPt1ciCwRg9pDh+qA3LF1ILfhZ08 X-Received: by 2002:a17:906:8401:: with SMTP id n1mr15147907ejx.215.1604327071451; Mon, 02 Nov 2020 06:24:31 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604327071; cv=none; d=google.com; s=arc-20160816; b=tG5VmpvFe8YLWO7vi1nXYHT6a3rVGofyyFfbonL3ReB+gjcl4JrlNC4dg86k10gfDL k3Lwe0clS5gpElbwJggzYQ+9m3MTtg+AYv1pDTvFfUg+Sza+oCqFsSk7SF/fEuGzECw7 SdpOSaGd2LRioVLucEk2h4pZh7WxZBLCMwBmllglg8167IJfVvXmlFfjMMD6ipCCtqjL Y4sSb1EDRkVMUNpncEnKFLAH/FZsj0odKqu/AsX5Go4253rJlpx1rIfHI+0CP11otJ2E MR2kUx0uMIlFLE5aqXnzfvhbBUc63FBAXv9xHnDcC41w4XKq9bWWL+2v6v0GkPbVDrzx AUPQ== 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 :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=CGRjtEO3+/S0NupDYXoJNbgD6kgyMEDCzJJaiz4KGno=; b=zsHoAiUToXmYFw+uBXBoDOsOP7QhaToyhTKCiCNt6KCqEp3MKIa9eONhYNULk96lJI VNcjR/pAp2X8FOkd/KnExNVn7lrJC+q2c2NSYJjuok+YlbI61Gl78S6bdxtcIZiqY4bA cR/19H9mX/odVvZG3DSrQ0FnfhBkcsgcTWXOiUMAf1E+cJBCn1XU33hkuNLFocJs4/UO 8igJl1QNo+kR1So8n7TsF5Kga6abv0FSpIagIVM70I1AsUQ0O2VtQcXbyPrHRhcYoD6y 8tKcJVkIlt+oxWtk+2HZB/lxiNz5DtGPPww5//pkHAhkB+mteDJl4i9eWbMVYG5lmWZN TLUw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aEg/7I9J"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id t13si11303498eds.559.2020.11.02.06.24.31 for ; Mon, 02 Nov 2020 06:24:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b="aEg/7I9J"; spf=pass (google.com: domain of linux-scsi-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-scsi-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726343AbgKBOYa (ORCPT ); Mon, 2 Nov 2020 09:24:30 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:47944 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726315AbgKBOY0 (ORCPT ); Mon, 2 Nov 2020 09:24:26 -0500 Received: from mail-wm1-x336.google.com (mail-wm1-x336.google.com [IPv6:2a00:1450:4864:20::336]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A2A9BC061A04 for ; Mon, 2 Nov 2020 06:24:25 -0800 (PST) Received: by mail-wm1-x336.google.com with SMTP id c18so9577018wme.2 for ; Mon, 02 Nov 2020 06:24:25 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=CGRjtEO3+/S0NupDYXoJNbgD6kgyMEDCzJJaiz4KGno=; b=aEg/7I9JVkEj5+F34Ycnwr8AA9v9yZjDQ4T1GfibFzz4OGeHL9M3Gfy6i5dHhU9neG gHWAnNoojNEOSbHpGngHrJC0p/r51yJxRer+iH9WYFhQprO+5vhLL3V7mFoUIXdzBNwd bsO1xucdRzsJHreKpoRr+g9f0AxghFFyg66YXdCUQxrITWc8aHcCr+xUJCVokBbSP2dX y3F6vOaXyo414HVyCzUWLy1/q/DaBBTdR6LK551oexwpHtrUgIBSh8fDjXjUg20MVc+Y jPepNvjcTP4mDr+PlefAK4wbLKQ0xA+hs3la9df32Fe2pcQRgRwD1AQUemHaSf1ikDQJ +yTw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=CGRjtEO3+/S0NupDYXoJNbgD6kgyMEDCzJJaiz4KGno=; b=Yqwy/T643EWn/XDVlaFuTKIWn1mCydU1lgLcoXoYMNq7G7DIG7UGVphloIdz5QsQiy OWMcVL8CLbdibJurFcfyrT6SbN3fJEQl+msbq26yJhepCU33LM/kbR4uAB3Hb/kFUtaQ VO7fkLYw83iEfHntppwJuQzcoNx/0TBfOZl4c8DU/TyOL/WzrZq1eGGxAEmtW4EjKVBR 0J47vwkPzsfsBUo/evv9+PDKxJLZs9yMKD0nB6CWAn7WEdrEraK2DhC+EHjk5YzjQjhs YePeD5VkKyZAonlgSS1xJKn0zMr5TtCbdJl09oJ2IcRJK2WJPG2TxtOo6qcFL7vUbiMd B4cg== X-Gm-Message-State: AOAM533Lyi5HbQmdmLEm958DHHd593axjLUzQnSGUN/44BblBri8EvEY 5yom+6Qyul/HfWhttO2GwpYbRg== X-Received: by 2002:a1c:5401:: with SMTP id i1mr17922756wmb.124.1604327064401; Mon, 02 Nov 2020 06:24:24 -0800 (PST) Received: from dell.default ([91.110.221.242]) by smtp.gmail.com with ESMTPSA id f7sm23542501wrx.64.2020.11.02.06.24.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 02 Nov 2020 06:24:23 -0800 (PST) From: Lee Jones To: martin.petersen@oracle.com, jejb@linux.ibm.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones , Matthew Wilcox , Hannes Reinecke Subject: [RESEND 16/19] scsi: advansys: Relocate or remove unused variables Date: Mon, 2 Nov 2020 14:23:56 +0000 Message-Id: <20201102142359.561122-17-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20201102142359.561122-1-lee.jones@linaro.org> References: <20201102142359.561122-1-lee.jones@linaro.org> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/advansys.c: In function ‘asc_prt_asc_board_eeprom’: drivers/scsi/advansys.c:2879:15: warning: variable ‘asc_dvc_varp’ set but not used [-Wunused-but-set-variable] drivers/scsi/advansys.c: In function ‘asc_prt_driver_conf’: drivers/scsi/advansys.c:3174:6: warning: variable ‘chip_scsi_id’ set but not used [-Wunused-but-set-variable] drivers/scsi/advansys.c: In function ‘AdvISR’: drivers/scsi/advansys.c:6114:9: warning: variable ‘target_bit’ set but not used [-Wunused-but-set-variable] Cc: Matthew Wilcox Cc: Hannes Reinecke Signed-off-by: Lee Jones --- drivers/scsi/advansys.c | 16 +++------------- 1 file changed, 3 insertions(+), 13 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/advansys.c b/drivers/scsi/advansys.c index c2c7850ff7b42..79830e77afa97 100644 --- a/drivers/scsi/advansys.c +++ b/drivers/scsi/advansys.c @@ -2876,15 +2876,15 @@ static int asc_get_eeprom_string(ushort *serialnum, uchar *cp) static void asc_prt_asc_board_eeprom(struct seq_file *m, struct Scsi_Host *shost) { struct asc_board *boardp = shost_priv(shost); - ASC_DVC_VAR *asc_dvc_varp; ASCEEP_CONFIG *ep; int i; + uchar serialstr[13]; #ifdef CONFIG_ISA + ASC_DVC_VAR *asc_dvc_varp; int isa_dma_speed[] = { 10, 8, 7, 6, 5, 4, 3, 2 }; -#endif /* CONFIG_ISA */ - uchar serialstr[13]; asc_dvc_varp = &boardp->dvc_var.asc_dvc_var; +#endif /* CONFIG_ISA */ ep = &boardp->eep_config.asc_eep; seq_printf(m, @@ -3171,7 +3171,6 @@ static void asc_prt_adv_board_eeprom(struct seq_file *m, struct Scsi_Host *shost static void asc_prt_driver_conf(struct seq_file *m, struct Scsi_Host *shost) { struct asc_board *boardp = shost_priv(shost); - int chip_scsi_id; seq_printf(m, "\nLinux Driver Configuration and Information for AdvanSys SCSI Host %d:\n", @@ -3197,12 +3196,6 @@ static void asc_prt_driver_conf(struct seq_file *m, struct Scsi_Host *shost) boardp->asc_n_io_port); seq_printf(m, " io_port 0x%lx\n", shost->io_port); - - if (ASC_NARROW_BOARD(boardp)) { - chip_scsi_id = boardp->dvc_cfg.asc_dvc_cfg.chip_scsi_id; - } else { - chip_scsi_id = boardp->dvc_var.adv_dvc_var.chip_scsi_id; - } } /* @@ -6111,7 +6104,6 @@ static int AdvISR(ADV_DVC_VAR *asc_dvc) { AdvPortAddr iop_base; uchar int_stat; - ushort target_bit; ADV_CARR_T *free_carrp; __le32 irq_next_vpa; ADV_SCSI_REQ_Q *scsiq; @@ -6198,8 +6190,6 @@ static int AdvISR(ADV_DVC_VAR *asc_dvc) asc_dvc->carr_freelist = free_carrp; asc_dvc->carr_pending_cnt--; - target_bit = ADV_TID_TO_TIDMASK(scsiq->target_id); - /* * Clear request microcode control flag. */