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

Configure Feed

Select the types of activity you want to include in your feed.

scsi: pm80xx: Display proc_name in sysfs

The proc_name entry in sysfs for pm80xx is "(null)" because it is not
initialized in scsi_host_template:

Before:
host:~# cat /sys/class/scsi_host/host6/proc_name
(null)

After:
host:~# cat /sys/class/scsi_host/host6/proc_name
pm80xx

Signed-off-by: Igor Pylypiv <ipylypiv@google.com>
Link: https://lore.kernel.org/r/20221007230651.308969-1-ipylypiv@google.com
Reviewed-by: Jolly Shah <jollys@google.com>
Acked-by: Jack Wang <jinpu.wang@ionos.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>

authored by

Igor Pylypiv and committed by
Martin K. Petersen
181dfce9 48ee7952

+1
+1
drivers/scsi/pm8001/pm8001_init.c
··· 99 99 static struct scsi_host_template pm8001_sht = { 100 100 .module = THIS_MODULE, 101 101 .name = DRV_NAME, 102 + .proc_name = DRV_NAME, 102 103 .queuecommand = sas_queuecommand, 103 104 .dma_need_drain = ata_scsi_dma_need_drain, 104 105 .target_alloc = sas_target_alloc,