From patchwork Thu Jul 23 12:24:32 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Lee Jones X-Patchwork-Id: 247055 Delivered-To: patch@linaro.org Received: by 2002:a54:2c11:0:0:0:0:0 with SMTP id g17csp1148605ecp; Thu, 23 Jul 2020 05:26:25 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw1RswVEl2dDGl6BVb7HT9N5i7uLPBCOusotDr3yb/0fSrFdU5uOdqcuMlq6AMqiGsMFZ9n X-Received: by 2002:a17:906:1151:: with SMTP id i17mr4229155eja.535.1595507185263; Thu, 23 Jul 2020 05:26:25 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1595507185; cv=none; d=google.com; s=arc-20160816; b=MPdyjzQPK+fZ5PyQ6d5LZyB1FJvDkOlJLp5GmE2Rvv7IdcneI+m74LB7+gFeRGcSGA 915Kv0di/N/bAugs1O+kfwJfY/vJUhrqtSNQwuWoKqfC6ikEq26g301ZUOs4LM6olpKT iZpmefc/pSKGJculB8Am5ihSINxJOfeHQHy8P6kaFkpx66iKEBJpuse8JoP4z/COcgR/ +agskRZUqcIPKwvuCgsHFWZ3pOXr7H8EMmXm5T+O59n17VNDBPMXyX6SiPT9b0vGmHXR hQEGqeTau+yYhlGEFr7NhRoJB+btXgF/ORH+HoGjctojxyPjBrazbTvnU9O/QArQ/Jvy 7/Cw== 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=BqthC3CkjpgCokdg5o2ILnbULpGQcoT03/Lw3SH2/KA=; b=NAcnB0T63hNaPFUsMMZbNixj+nVwKR6NGUUaBkUdm8MGWmVNgtm1yh1/Z5O5rqdcuB 9qUS3nPw9dinZ6n4pP5B6SNK5M9cvvVg6QyBnkjmhgs66hAxa7l4JzhdyEptGwyzvwrR hqx66rUccawN1Ikxg4MLRN6hoKM5iPO7i1z3LdrRTVXySNnfnNe/cUBdejVX9hAq5n83 CggjPyBKjM9h6t83ckD+XKVbWXVT1RFzhYDa+r0NsupSadjc2vr5nfUB/onP/k0nPpzi 1Cs8y8AZFqLsy6dOe5vZ4lBzyps7ctmz/reRQiDZ93Jff57VLTbt0hXlGgo+GVdD+UxX j4HQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=n5oWnYYL; 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.25 for ; Thu, 23 Jul 2020 05:26:25 -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=n5oWnYYL; 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 S1729022AbgGWMZY (ORCPT ); Thu, 23 Jul 2020 08:25:24 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:58234 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729008AbgGWMZW (ORCPT ); Thu, 23 Jul 2020 08:25:22 -0400 Received: from mail-wm1-x343.google.com (mail-wm1-x343.google.com [IPv6:2a00:1450:4864:20::343]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 77F9AC0619E2 for ; Thu, 23 Jul 2020 05:25:22 -0700 (PDT) Received: by mail-wm1-x343.google.com with SMTP id o8so4783587wmh.4 for ; Thu, 23 Jul 2020 05:25:22 -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=BqthC3CkjpgCokdg5o2ILnbULpGQcoT03/Lw3SH2/KA=; b=n5oWnYYLwx2Uu3i0alq76U1+jMa5X1KgGKPO/TNSL8K0wCitWVNvpCZmEgRyCTF22e h+QUo9VHUERd2wQnBkOJ3k6VTgAw5A2dFbwJABl/FuRVTBPxCjlNnAA+f2o+1E+fJsJT NC+b82QbEKW/d8kVIilYYP2tOz6oE4BZzcrxrb9ar0oreWLlsrB6EFmwCO/Fm7fQanQg hTwY6y7bKzzKEWT2XgLSxGCHtR0VfB0Vbm4iESRb8sygG+CI2sQDIM7oA3GzMhJL6Q5l fzIoPpLdiKP1oXZL87RCDcfxpDeeWn0legNEtDCSSEItKTHt+FzTlh5iOYSlrv9YJuTC K1YA== 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=BqthC3CkjpgCokdg5o2ILnbULpGQcoT03/Lw3SH2/KA=; b=ZecaVGHvZ5K/PkAnLQG+ZS220y8gPKdAtpU9PJO8mI+RfH8O33/fD3Eg/prL/xGSSD KCR4MO8BAKfcdpoGnf/yPzwgQBie7/kB1zrl+EVWO8Vcf1lCaxL7YGTJLebog+dwizeI hFI5ilf8yQSnQFCkpQc6rrynBxEzIK971s5od45qg0Wa58qJrV61WTqM8Egm7CD43aAr dnZJi3nPyefst+hZYflLUYkL2iTTTF9a6seIN1G9b+Tnzi+rium8guo+tRFZshx889hC R/2yg7cQlL673pnGL5M76K3kFEG5A3AsT5qpUkhnXhhTo5CQyk5m8yQnWrsaUAEff7W0 xH4w== X-Gm-Message-State: AOAM53354hYV6kfSPxezyygwe7GFEnSvnquqzzo0kWTYKHbyfoi0oHq2 sq3qoB6tQ1xM2zIfDHfsYu6EA2BIXqs= X-Received: by 2002:a1c:f407:: with SMTP id z7mr3953367wma.8.1595507121244; Thu, 23 Jul 2020 05:25:21 -0700 (PDT) Received: from localhost.localdomain ([2.27.167.73]) by smtp.gmail.com with ESMTPSA id j5sm3510651wma.45.2020.07.23.05.25.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 23 Jul 2020 05:25:20 -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 26/40] scsi: mvsas: mv_init: Place 'core_nr' inside correct clause Date: Thu, 23 Jul 2020 13:24:32 +0100 Message-Id: <20200723122446.1329773-27-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 'core_nr' should be inside the 'ifndef' "if *not* defined", as it is utilised inside the 'else' of the following 'ifdef' "if *is* defined" clause. Signed-off-by: Lee Jones --- drivers/scsi/mvsas/mv_init.c | 1 - 1 file changed, 1 deletion(-) -- 2.25.1 diff --git a/drivers/scsi/mvsas/mv_init.c b/drivers/scsi/mvsas/mv_init.c index 3b450319cc11e..978f5283c8835 100644 --- a/drivers/scsi/mvsas/mv_init.c +++ b/drivers/scsi/mvsas/mv_init.c @@ -182,7 +182,6 @@ static irqreturn_t mvs_interrupt(int irq, void *opaque) struct sas_ha_struct *sha = opaque; #ifndef CONFIG_SCSI_MVSAS_TASKLET u32 i; -#else u32 core_nr; core_nr = ((struct mvs_prv_info *)sha->lldd_ha)->n_host;