From patchwork Thu Jul 23 12:24:28 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247057 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1148633ecp; Thu, 23 Jul 2020 05:26:27 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyaL/N5Z0zSZAJNdh+JO9Bvraw+Wv0jD6QfWNxNRt6WYmHi3Amj8kMk9UbxqbAGPq9Rk37T X-Received: by 2002:a50:e617:: with SMTP id y23mr3910706edm.47.1595507187591; Thu, 23 Jul 2020 05:26:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507187; cv=none; d=google.com; s=arc-20160816; b=dfylPrqVjGZ7BDSzpBU1Ru8/AT9FNHqALR8aX/Mk1cgzKJyGrBzvVvlp2zA89YuH61 4xzLy3oj9Hk4ztw7Xpa7ptP12ofI+bJTWzDfdZRFjwbb8jdlJXqG9EhziXzFzyyMMNNS /rLg5uAjWQswiErkm6vdOa/1jTHbnUCwNeKAqgij9GcoBSFC9x2fWBUPLVrkvHuI7OD0 RpgzrjWYwlPYKP6ge44mWPrWzOS0/mjs9RXK5J4YB9wcPHs9s/kSvsu6GLtiIk7gAglO FPjTwgEEQomaoJaXmCnx+F+AXdi/3J9SCaLaLnv5Tnk6OThPZUZnU5YMl65VEQKa33LU NIdg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=KuXFDEYVsnsDfXIKt9wKPHYtC5k1C4IDk7HQmnmIHX4=; b=JuUzMxsX9f8sZ7uXGCu2zzl9mY8UZO7MhM5/8qpA6d7wJSKCfieoQqeLr80oYanRTh k5RzscZpebJ88fcB0PYDEqXwXvokLTt7ZXSZtpLxAvjpJM/c9/DTeH9R+CvixIQRtOzF wW9EfifekBbtFf40FAn298VhziQtlCoZl9SO0DBmdODihItdvHwyA9zr8fCGK3AXsc6K FSQhrwCuXpH91ilAAaER5FwXtoS9RNmxKsf5hW5N8+0Sg4xHoJvGafJ/+t9/Eyz8RQYj 3XbOU5xvrr3hRvXm6x4FKDf6Bt74h7WvsPsnN6MG/spY57A86FavlUz5JeQ8Wy73crvE aREw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=xFC5+L6q; 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 w5si1953465ejb.404.2020.07.23.05.26.27 for ; Thu, 23 Jul 2020 05:26:27 -0700 (PDT) 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=xFC5+L6q; 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 S1728989AbgGWMZS (ORCPT ); Thu, 23 Jul 2020 08:25:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58206 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728960AbgGWMZR (ORCPT ); Thu, 23 Jul 2020 08:25:17 -0400 Received: from mail-wr1-x443.google.com (mail-wr1-x443.google.com [IPv6:2a00:1450:4864:20::443]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E2D32C0619DC for ; Thu, 23 Jul 2020 05:25:16 -0700 (PDT) Received: by mail-wr1-x443.google.com with SMTP id 88so4978210wrh.3 for ; Thu, 23 Jul 2020 05:25:16 -0700 (PDT) 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=KuXFDEYVsnsDfXIKt9wKPHYtC5k1C4IDk7HQmnmIHX4=; b=xFC5+L6qTksxCecGRt3nk4ZWSrIfiJ5KB8fRopA2KjkpV8FmkuJa0jtIZRe/PclS1a /4M87SpuupjQwVaqi01RBVgXJOs5dZDHD7Uuik52ZLmXYonwu+Hr2hgN20b8+D66Bqxh 2Zesy56tksWGu5NWopASjeu6yF+zoGxk0PRr5O6eYmqqGpl0i02ozM/sLvikCsSdKJ3K SNtVxe9K8vzqtiJRA595fYK+tDZ5N95wcXGNptCKciO7aSs34z5mGknLQAKaJ/T33nr+ QYSatN0QX3DXlIcbKV+D/IeXyMfxhJCd0e30ZyyDCJJu/v/tyMvmpnW706QoSu9E1XSu 823A== 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=KuXFDEYVsnsDfXIKt9wKPHYtC5k1C4IDk7HQmnmIHX4=; b=Xvs2n3nOCFmZqu029Am//koTFr0uwUUJijC4xQGVjRIdlFaEoY5sLGeNCu9ugGZun8 19lrGxjm3GSkklebiHmM36/FYc9jmrL1nkI/etv7g9uFdE5y/Nyd0T7QhCTjsJWl5NT4 WT/4Mvgp8NVdcXJPyBNrsrebuwj1nv9pMRpxFn1d3HrNl12drzJ4VJQp1gMRvkZ9Utg+ xQOWGK6BFhIqDEY68RbW874WXX4RAOSkjzUnyXEWiDvFC8iVDRLfvz8uB1t41zU0S+lK UY9TJllBIO0+FVgnA20fBWXx/QnBu3b6aOnKXmF0VJUmQdtvj0E0mHHqkiXWnOxuEpK6 RO5g== X-Gm-Message-State: AOAM531FhhW+3hEcwSRCsKacHFCQET1j28VueJhbq4w5X1eENx6YWJM9 /GOQWZVKHBsofStwEbCvbo/Nkg== X-Received: by 2002:adf:df06:: with SMTP id y6mr3706057wrl.89.1595507115674; Thu, 23 Jul 2020 05:25:15 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.25.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:25:15 -0700 (PDT) From: Lee Jones To: jejb@linux.ibm.com, martin.petersen@oracle.com Cc: linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, Lee Jones Subject: [PATCH 22/40] scsi: csiostor: csio_hw_t5: Remove 2 unused variables {mc, edc}_bist_status_rdata_reg Date: Thu, 23 Jul 2020 13:24:28 +0100 Message-Id: <20200723122446.1329773-23-lee.jones@linaro.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200723122446.1329773-1-lee.jones@linaro.org> References: <20200723122446.1329773-1-lee.jones@linaro.org> MIME-Version: 1.0 Sender: linux-scsi-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-scsi@vger.kernel.org Fixes the following W=1 kernel build warning(s): drivers/scsi/csiostor/csio_hw_t5.c: In function ‘csio_t5_mc_read’: drivers/scsi/csiostor/csio_hw_t5.c:151:11: warning: variable ‘mc_bist_status_rdata_reg’ set but not used [-Wunused-but-set-variable] 151 | uint32_t mc_bist_status_rdata_reg, mc_bist_data_pattern_reg; | ^~~~~~~~~~~~~~~~~~~~~~~~ drivers/scsi/csiostor/csio_hw_t5.c: In function ‘csio_t5_edc_read’: drivers/scsi/csiostor/csio_hw_t5.c:199:38: warning: variable ‘edc_bist_status_rdata_reg’ set but not used [-Wunused-but-set-variable] 199 | uint32_t edc_bist_cmd_data_pattern, edc_bist_status_rdata_reg; | ^~~~~~~~~~~~~~~~~~~~~~~~~ Signed-off-by: Lee Jones --- drivers/scsi/csiostor/csio_hw_t5.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) -- 2.25.1 diff --git a/drivers/scsi/csiostor/csio_hw_t5.c b/drivers/scsi/csiostor/csio_hw_t5.c index f24def6c6fd1e..1df8891d37251 100644 --- a/drivers/scsi/csiostor/csio_hw_t5.c +++ b/drivers/scsi/csiostor/csio_hw_t5.c @@ -148,12 +148,11 @@ csio_t5_mc_read(struct csio_hw *hw, int idx, uint32_t addr, __be32 *data, { int i; uint32_t mc_bist_cmd_reg, mc_bist_cmd_addr_reg, mc_bist_cmd_len_reg; - uint32_t mc_bist_status_rdata_reg, mc_bist_data_pattern_reg; + uint32_t mc_bist_data_pattern_reg; mc_bist_cmd_reg = MC_REG(MC_P_BIST_CMD_A, idx); mc_bist_cmd_addr_reg = MC_REG(MC_P_BIST_CMD_ADDR_A, idx); mc_bist_cmd_len_reg = MC_REG(MC_P_BIST_CMD_LEN_A, idx); - mc_bist_status_rdata_reg = MC_REG(MC_P_BIST_STATUS_RDATA_A, idx); mc_bist_data_pattern_reg = MC_REG(MC_P_BIST_DATA_PATTERN_A, idx); if (csio_rd_reg32(hw, mc_bist_cmd_reg) & START_BIST_F) @@ -196,7 +195,7 @@ csio_t5_edc_read(struct csio_hw *hw, int idx, uint32_t addr, __be32 *data, { int i; uint32_t edc_bist_cmd_reg, edc_bist_cmd_addr_reg, edc_bist_cmd_len_reg; - uint32_t edc_bist_cmd_data_pattern, edc_bist_status_rdata_reg; + uint32_t edc_bist_cmd_data_pattern; /* * These macro are missing in t4_regs.h file. @@ -208,7 +207,6 @@ csio_t5_edc_read(struct csio_hw *hw, int idx, uint32_t addr, __be32 *data, edc_bist_cmd_addr_reg = EDC_REG_T5(EDC_H_BIST_CMD_ADDR_A, idx); edc_bist_cmd_len_reg = EDC_REG_T5(EDC_H_BIST_CMD_LEN_A, idx); edc_bist_cmd_data_pattern = EDC_REG_T5(EDC_H_BIST_DATA_PATTERN_A, idx); - edc_bist_status_rdata_reg = EDC_REG_T5(EDC_H_BIST_STATUS_RDATA_A, idx); #undef EDC_REG_T5 #undef EDC_STRIDE_T5