From patchwork Fri Jun 18 17:18:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: James Smart X-Patchwork-Id: 12331795 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-13.5 required=3.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED,DKIM_INVALID,DKIM_SIGNED,FREEMAIL_FORGED_FROMDOMAIN, FREEMAIL_FROM,HEADER_FROM_DIFFERENT_DOMAINS,INCLUDES_CR_TRAILER, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id CB636C48BE8 for ; Fri, 18 Jun 2021 17:18:56 +0000 (UTC) Received: from kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by mail.kernel.org (Postfix) with ESMTP id 69D6D613EE for ; Fri, 18 Jun 2021 17:18:56 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 69D6D613EE Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=owner-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix) id C55ED6B006E; Fri, 18 Jun 2021 13:18:55 -0400 (EDT) Received: by kanga.kvack.org (Postfix, from userid 40) id C2DBA6B0071; Fri, 18 Jun 2021 13:18:55 -0400 (EDT) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id AF49E6B0072; Fri, 18 Jun 2021 13:18:55 -0400 (EDT) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0156.hostedemail.com [216.40.44.156]) by kanga.kvack.org (Postfix) with ESMTP id 7D6106B006E for ; Fri, 18 Jun 2021 13:18:55 -0400 (EDT) Received: from smtpin12.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id 1E77A180AD804 for ; Fri, 18 Jun 2021 17:18:55 +0000 (UTC) X-FDA: 78267504630.12.34DD886 Received: from mail-pg1-f176.google.com (mail-pg1-f176.google.com [209.85.215.176]) by imf26.hostedemail.com (Postfix) with ESMTP id E5ECC4202A3A for ; Fri, 18 Jun 2021 17:18:54 +0000 (UTC) Received: by mail-pg1-f176.google.com with SMTP id w31so8302652pga.6 for ; Fri, 18 Jun 2021 10:18:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=Zq3V1KyaUiDdIgd53ZsbIBkBbpYfekyoEo/VMrRcUJ4=; b=EwQl7VVKCRyYkQk17iPJv5KVD7ROoDDBQiVkGpEO+ay8ZUSBdWEOJXgjxBUCLEMG0h iHS1x6UmnGUTeGEft3u6+fLcVtOG1UGSJcuFvFloCmRd/Yk93dketf+ImAYomZJMhVDe yzK+pWXVl27htDBtcxJUX2kaeG1RsklnbKSy+qWoxKmvjDeMVxujAKUir56WpMSnGEYN VQ7g+wdxyogSITwgKe1vue/I6bzuaLQmSz6CvSA9UaeetO1JjCWsiQNGZS6sdq50fDwj abq9xz2+DgFJ9incsGRpudS3rQc/KCW83eP+iQfqC3wmBweELS8lpVY9rimC3rfmETVU x0kA== 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:mime-version :content-transfer-encoding; bh=Zq3V1KyaUiDdIgd53ZsbIBkBbpYfekyoEo/VMrRcUJ4=; b=O7uUcMTMzb58r1HtnxuIheqfWp+tlOR1IgzcVgu0w9yq1xsHKU9Q/JQzx9YX9uy35o OBtFwBZToOYwh1H70PXiwpRY7gEMzgtqYAbjwQQ9lC1ax61b+I09i7HBvnB6z2CYra3Q yETM5VRfanD6CT1RPC1iEG7jgXJ9OMimJASUG8vDYqPiK4WOVF74CNQFXTzFVA2IOx/0 n3rKcRAkEt0+J5ly9s0SWxil80mZtqy6mFAkH08BkQW8ATQZCnruJIF2EuTHkjCbYiXL pvsm5/Dsm4tzoMZKvlBDMatA57zdI7jgxuWRDxO74lQUDCrqZO0KYrkG8JwtKwiFN0AB P43A== X-Gm-Message-State: AOAM530bBNbChqSRtCnB3r3Zq5ASIwLk9r2wAIbM/Bzry+gwPzXJ6Y17 Q5aD5wbOdrMRf33pQYQi8rc= X-Google-Smtp-Source: ABdhPJyS5e31Kfbcc7gzAwmsIs3ih+TdN8+WdQO3ZsjNJsKxPLYHG86mTZyRJzjVXBkSP6skrbb4mA== X-Received: by 2002:a05:6a00:139c:b029:2f7:102c:5393 with SMTP id t28-20020a056a00139cb02902f7102c5393mr6371420pfg.40.1624036733986; Fri, 18 Jun 2021 10:18:53 -0700 (PDT) Received: from localhost.localdomain ([192.19.223.252]) by smtp.gmail.com with ESMTPSA id 25sm9419965pgp.51.2021.06.18.10.18.49 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Jun 2021 10:18:53 -0700 (PDT) From: James Smart To: linux-scsi@vger.kernel.org Cc: gaurav.srivastava@broadcom.com, linux-mm@kvack.org, muneendra.kumar@broadcom.com, hare@suse.de, martin.petersen@oracle.com, James Smart , kernel test robot Subject: [PATCH] lpfc: Fix build error in lpfc_scsi.c Date: Fri, 18 Jun 2021 10:18:42 -0700 Message-Id: <20210618171842.79710-1-jsmart2021@gmail.com> X-Mailer: git-send-email 2.26.2 MIME-Version: 1.0 X-Rspamd-Server: rspam05 X-Rspamd-Queue-Id: E5ECC4202A3A X-Stat-Signature: bestddz7u8jot6htppdoifbadbf7hzbo Authentication-Results: imf26.hostedemail.com; dkim=pass header.d=gmail.com header.s=20161025 header.b=EwQl7VVK; dmarc=pass (policy=none) header.from=gmail.com; spf=pass (imf26.hostedemail.com: domain of jsmart2021@gmail.com designates 209.85.215.176 as permitted sender) smtp.mailfrom=jsmart2021@gmail.com X-HE-Tag: 1624036734-855996 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000000, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Integration with VMID patches resulted in a build error when CONFIG_DEBUG_FS is disabled and driver option CONFIG_SCSI_LPFC_DEBUG_FS is disabled. It results in an undefined variable: lpfc_scsi:5595:3: error: 'uuid' undeclared (first use in this function); did you mean 'upid'? Fixes: 33c79741deaf ("scsi: lpfc: vmid: Introduce VMID in I/O path") Reported-by: kernel test robot Signed-off-by: James Smart --- drivers/scsi/lpfc/lpfc_scsi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/scsi/lpfc/lpfc_scsi.c b/drivers/scsi/lpfc/lpfc_scsi.c index 46bfe251c2fe..1b248c237be1 100644 --- a/drivers/scsi/lpfc/lpfc_scsi.c +++ b/drivers/scsi/lpfc/lpfc_scsi.c @@ -5455,9 +5455,9 @@ lpfc_queuecommand(struct Scsi_Host *shost, struct scsi_cmnd *cmnd) struct lpfc_io_buf *lpfc_cmd; struct fc_rport *rport = starget_to_rport(scsi_target(cmnd->device)); int err, idx; + u8 *uuid = NULL; #ifdef CONFIG_SCSI_LPFC_DEBUG_FS uint64_t start = 0L; - u8 *uuid = NULL; if (phba->ktime_on) start = ktime_get_ns();