From patchwork Mon Dec 16 13:16:49 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 181716 Delivered-To: patch@linaro.org Received: by 2002:ac9:44c4:0:0:0:0:0 with SMTP id t4csp4288348och; Mon, 16 Dec 2019 05:17:26 -0800 (PST) X-Google-Smtp-Source: APXvYqwTBaRruSKE3ZN73UZzwrzX3WA1RpqsBd2Rk2CrYjT/iDw1H+UC+M4tORHF3CqxzfNaZz2Q X-Received: by 2002:a05:6830:1716:: with SMTP id 22mr32886504otk.296.1576502246638; Mon, 16 Dec 2019 05:17:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1576502246; cv=none; d=google.com; s=arc-20160816; b=qvQ9KNp+sc8SJILzp46Rf1eIN7nC8whdiAmhpUjHMvPIDuOb6s1KsoI4ifaO20+ycc KJfdWgx6SujvjM+ZzOv0BytWFLKa9eHw7LwNMOY1jTK6S4+MoYNN/cNdFwGgxcMaYaJQ 9CcsTsUDLxe9dIZ3gZvykHpqbxr8EojuqiWi+8+9RZCpEWGnURVvS7V8XUtV89q8TlH6 DeDxjDPbONUDgidz1Q4r6mUMQfSUTOargfjRU3vnwzc+/Pv+XI8DXQkJhf3+3JPEwsOc 9LWvMUpqdKK5XMxtMlxnR3hYXzdC6hkShQZFKGKFS+1OJMiVets4Bs+hbKdOxt7RReME Fv4g== 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 :message-id:date:subject:cc:to:from; bh=MeLgv4IYQpTSxJuvMSNwQspCE37r8uGR2bTmyMFlfeQ=; b=UZeXre05SEtXW/7AlWOP+5U5YXUZYGVaFeB7dzlKvCeg8xa8Mbw4lhxkSmeFr+hOwC ROwPn8QW/knXlZTKWl0Fo448oeGfPu4GXAFgJr/Rv2KjR0npd8jsW0caCq/6Qk7fA+RK msE9Undja6RGT6pdWsAfPNRvzlmmeRYo6QsnaQQt71pZq7/co9clljBwTuWYzTlnCm/R x347lD/juwSeSlluWFV/SqNPWgamz3NorfH7FLwZFEgrMtlJDVKwEH5/kBZPX3UXQOpe YB7XjFFL4AJTbC09zVp8F6mEenELnJ61Uh4quNcJqKP4sv19LTFC9J6c6YrVpQF/WhZ5 X4EQ== ARC-Authentication-Results: i=1; mx.google.com; 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 f4si177779oti.245.2019.12.16.05.17.26; Mon, 16 Dec 2019 05:17:26 -0800 (PST) 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; 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 S1727790AbfLPNRZ (ORCPT + 27 others); Mon, 16 Dec 2019 08:17:25 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:34735 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727653AbfLPNRY (ORCPT ); Mon, 16 Dec 2019 08:17:24 -0500 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue107 [212.227.15.145]) with ESMTPA (Nemesis) id 1MA88C-1iZjVc380Y-00BfWR; Mon, 16 Dec 2019 14:17:02 +0100 From: Arnd Bergmann To: James Smart , Dick Kennedy , "James E.J. Bottomley" , "Martin K. Petersen" Cc: Arnd Bergmann , Hannes Reinecke , linux-scsi@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] scsi: lpfc: fix build failure with DEBUGFS disabled Date: Mon, 16 Dec 2019 14:16:49 +0100 Message-Id: <20191216131701.3125077-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 X-Provags-ID: V03:K1:muNsOaQMWt/pgvfzkrJbpOqFT5GN9UxG1fJWHJjZeBLFKbF8xfp yYlQCzvOEkCpvq2JejmOFD9/vaq7yUpfys1l15/URUlHWQewyx9fudWty+/T1TOEnBSPy7t y86BXPNYUBhEBTi8jaZoZT+jKHpS7XEwcrrv3NCt6+xaEKYSi4siJ3QOVyOZE8nHesakQ1I CpmdMy0/GkkPS9opsYdgQ== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:r4lXlfYw3sY=:eBDEz/XTIQGoh0b+8pb1TU sQifTHqB+yB4EgWPe3jvYkp3clTkvFkkAthqxhhimxeHTA7ofmGaiwGTQGuZYN/Mk0n62L1iw XUPSDox/UTo3J10ByoDooy61vg548vyvZXTAPQWveqdMRjn+cYjUeQR3SLkr85PpqRof8oPOF ZzpMUyGB93DXsY1xww+D7hFuaQ20a57RW3rM0+g6ZAkPgTrUX3mWfFEdNwfgdCVlhuKewKGqH arEbuP53MbAQL9zDaWY9wR/NHXsBg0i+gV0xIqJKSeor7Qt4yy7w3XZuHl4D9doEKZDvI33zs 8Kco9v7HRVg6P07UQ+l2mnWoxa4aUaiEpSIDaBES3C5wJpChbdmxJ++qiZFTuKQa5khtjcpWn IoelE7YI2pE9x7Q1nyBQFf3V99f7zS7apJPXKi3eXt0rST7RFvvAe8/WeQx3lsA7WdvBykMbb JT7APJlx4rtzBppaPZGI/nCkUPwZXq2lbSGHT9sulfFeszLUdyTzwcaOK0j08t9gIm/zfiMNv sSJ+2UD2+rWX/sfVKp9SsAVMNdJgFUr/8nNtgAGu5ZQTjOnUKshSIVOYfKyKdclOAq6p6ToNl msgVL/mHB2MmsdILy+O35Mg3Kn96TDEDhS/L6hGnTFwVc9mt/Mmqlc84cN/Ee7vyFXo7Mdd8C 2fqOTkxhjX00MzUbUBGbYYnrl/RJf8PiSWi5SUErqQwQWeKmlsgQw8fL/lXafLFXW0sR7c7mk vzWHKI38u8woNdXghUVKEMfCfSHulKIe2xL8o1v9hMHQSTOJ6qyQK7OmPTiB+mUNfMbFVJMgr LVA/H5l46kwyQPFNG6aWY+cTL9g58t96PqJtK7xX5J86QacuOCLdKgXleuXI0H38G9rk0nxLh mjhdjssjRfyjybr7Ccpw== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org A recent change appears to have moved an #endif by accident: drivers/scsi/lpfc/lpfc_debugfs.c:5393:18: error: 'lpfc_debugfs_dumpHBASlim_open' undeclared here (not in a function); did you mean 'lpfc_debugfs_op_dumpHBASlim'? drivers/scsi/lpfc/lpfc_debugfs.c:5394:18: error: 'lpfc_debugfs_lseek' undeclared here (not in a function); did you mean 'lpfc_debugfs_nvme_trc'? drivers/scsi/lpfc/lpfc_debugfs.c:5395:18: error: 'lpfc_debugfs_read' undeclared here (not in a function); did you mean 'lpfc_debug_dump_q'? drivers/scsi/lpfc/lpfc_debugfs.c:5396:18: error: 'lpfc_debugfs_release' undeclared here (not in a function); did you mean 'lpfc_debugfs_terminate'? drivers/scsi/lpfc/lpfc_debugfs.c:5402:18: error: 'lpfc_debugfs_dumpHostSlim_open' undeclared here (not in a function); did you mean 'lpfc_debugfs_op_dumpHostSlim'? Move it back to where it was previously. Fixes: 95bfc6d8ad86 ("scsi: lpfc: Make FW logging dynamically configurable") Signed-off-by: Arnd Bergmann --- drivers/scsi/lpfc/lpfc_debugfs.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) -- 2.20.0 diff --git a/drivers/scsi/lpfc/lpfc_debugfs.c b/drivers/scsi/lpfc/lpfc_debugfs.c index 2e6a68d9ea4f..a5ecbce4eda2 100644 --- a/drivers/scsi/lpfc/lpfc_debugfs.c +++ b/drivers/scsi/lpfc/lpfc_debugfs.c @@ -5385,7 +5385,6 @@ static const struct file_operations lpfc_debugfs_ras_log = { .read = lpfc_debugfs_read, .release = lpfc_debugfs_ras_log_release, }; -#endif #undef lpfc_debugfs_op_dumpHBASlim static const struct file_operations lpfc_debugfs_op_dumpHBASlim = { @@ -5557,7 +5556,7 @@ static const struct file_operations lpfc_idiag_op_extAcc = { .write = lpfc_idiag_extacc_write, .release = lpfc_idiag_cmd_release, }; - +#endif /* lpfc_idiag_mbxacc_dump_bsg_mbox - idiag debugfs dump bsg mailbox command * @phba: Pointer to HBA context object.