Skip to content

Commit 201743b

Browse files
arndbmartinkpetersen
authored andcommitted
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: 95bfc6d ("scsi: lpfc: Make FW logging dynamically configurable") Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Arnd Bergmann <[email protected]> Reviewed-by: James Smart <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
1 parent ee560e7 commit 201743b

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

drivers/scsi/lpfc/lpfc_debugfs.c

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5385,7 +5385,6 @@ static const struct file_operations lpfc_debugfs_ras_log = {
53855385
.read = lpfc_debugfs_read,
53865386
.release = lpfc_debugfs_ras_log_release,
53875387
};
5388-
#endif
53895388

53905389
#undef lpfc_debugfs_op_dumpHBASlim
53915390
static const struct file_operations lpfc_debugfs_op_dumpHBASlim = {
@@ -5557,7 +5556,7 @@ static const struct file_operations lpfc_idiag_op_extAcc = {
55575556
.write = lpfc_idiag_extacc_write,
55585557
.release = lpfc_idiag_cmd_release,
55595558
};
5560-
5559+
#endif
55615560

55625561
/* lpfc_idiag_mbxacc_dump_bsg_mbox - idiag debugfs dump bsg mailbox command
55635562
* @phba: Pointer to HBA context object.

0 commit comments

Comments
 (0)