Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

[SCSI] lpfc 8.3.0 : Hook lpfc's debugfs into Kconfig

Signed-off-by: James Smart <james.smart@emulex.com>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>

authored by

James Smart and committed by
James Bottomley
923e4b6a e2a0a9d6

+16 -9
+7
drivers/scsi/Kconfig
··· 1357 1357 This lpfc driver supports the Emulex LightPulse 1358 1358 Family of Fibre Channel PCI host adapters. 1359 1359 1360 + config SCSI_LPFC_DEBUG_FS 1361 + bool "Emulex LightPulse Fibre Channel debugfs Support" 1362 + depends on SCSI_LPFC && DEBUG_FS 1363 + help 1364 + This makes debugging infomation from the lpfc driver 1365 + available via the debugfs filesystem. 1366 + 1360 1367 config SCSI_SIM710 1361 1368 tristate "Simple 53c710 SCSI support (Compaq, NCR machines)" 1362 1369 depends on (EISA || MCA) && SCSI
+2 -2
drivers/scsi/lpfc/lpfc.h
··· 376 376 377 377 struct fc_vport *fc_vport; 378 378 379 - #ifdef CONFIG_LPFC_DEBUG_FS 379 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 380 380 struct dentry *debug_disc_trc; 381 381 struct dentry *debug_nodelist; 382 382 struct dentry *vport_debugfs_root; ··· 621 621 unsigned long last_rsrc_error_time; 622 622 unsigned long last_ramp_down_time; 623 623 unsigned long last_ramp_up_time; 624 - #ifdef CONFIG_LPFC_DEBUG_FS 624 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 625 625 struct dentry *hba_debugfs_root; 626 626 atomic_t debugfs_vport_count; 627 627 struct dentry *debug_hbqinfo;
+6 -6
drivers/scsi/lpfc/lpfc_debugfs.c
··· 46 46 #include "lpfc_compat.h" 47 47 #include "lpfc_debugfs.h" 48 48 49 - #ifdef CONFIG_LPFC_DEBUG_FS 49 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 50 50 /** 51 51 * debugfs interface 52 52 * ··· 618 618 lpfc_debugfs_disc_trc(struct lpfc_vport *vport, int mask, char *fmt, 619 619 uint32_t data1, uint32_t data2, uint32_t data3) 620 620 { 621 - #ifdef CONFIG_LPFC_DEBUG_FS 621 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 622 622 struct lpfc_debugfs_trc *dtp; 623 623 int index; 624 624 ··· 659 659 lpfc_debugfs_slow_ring_trc(struct lpfc_hba *phba, char *fmt, 660 660 uint32_t data1, uint32_t data2, uint32_t data3) 661 661 { 662 - #ifdef CONFIG_LPFC_DEBUG_FS 662 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 663 663 struct lpfc_debugfs_trc *dtp; 664 664 int index; 665 665 ··· 680 680 return; 681 681 } 682 682 683 - #ifdef CONFIG_LPFC_DEBUG_FS 683 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 684 684 /** 685 685 * lpfc_debugfs_disc_trc_open - Open the discovery trace log. 686 686 * @inode: The inode pointer that contains a vport pointer. ··· 1222 1222 inline void 1223 1223 lpfc_debugfs_initialize(struct lpfc_vport *vport) 1224 1224 { 1225 - #ifdef CONFIG_LPFC_DEBUG_FS 1225 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 1226 1226 struct lpfc_hba *phba = vport->phba; 1227 1227 char name[64]; 1228 1228 uint32_t num, i; ··· 1447 1447 inline void 1448 1448 lpfc_debugfs_terminate(struct lpfc_vport *vport) 1449 1449 { 1450 - #ifdef CONFIG_LPFC_DEBUG_FS 1450 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 1451 1451 struct lpfc_hba *phba = vport->phba; 1452 1452 1453 1453 if (vport->disc_trc) {
+1 -1
drivers/scsi/lpfc/lpfc_debugfs.h
··· 21 21 #ifndef _H_LPFC_DEBUG_FS 22 22 #define _H_LPFC_DEBUG_FS 23 23 24 - #ifdef CONFIG_LPFC_DEBUG_FS 24 + #ifdef CONFIG_SCSI_LPFC_DEBUG_FS 25 25 struct lpfc_debugfs_trc { 26 26 char *fmt; 27 27 uint32_t data1;