]> git.baikalelectronics.ru Git - kernel.git/commit
scsi: lpfc: fix build failure with DEBUGFS disabled
authorArnd Bergmann <arnd@arndb.de>
Mon, 16 Dec 2019 13:16:49 +0000 (14:16 +0100)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 17 Dec 2019 03:09:22 +0000 (22:09 -0500)
commitb8a1c8584fd98aaeaef5cedf327a803eb0a7f1f0
tree9b55aac243a5c70c6f1f7e90ed62a4d98288d902
parenteadbe72f2f2a3c2cf6e5559a4dbf848199a36dd8
scsi: lpfc: fix build failure with DEBUGFS disabled

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: 7f33af0ad96b ("scsi: lpfc: Make FW logging dynamically configurable")
Link: https://lore.kernel.org/r/20191216131701.3125077-1-arnd@arndb.de
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: James Smart <james.smart@broadcom.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/lpfc/lpfc_debugfs.c