[PATCH 3/4] scsi: make proc_name sysfs attribute conditional

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



scsi_sysfs: provide attribute proc_name in a host's class device only if
CONFIG_SCSI_PROC_FS is set

Signed-off-by: Stefan Richter <stefanr@xxxxxxxxxxxxxxxxx>
---
 drivers/scsi/scsi_sysfs.c |    4 ++++
 1 files changed, 4 insertions(+)

--- linux-2.6.14-git3/drivers/scsi/scsi_sysfs.c.orig	2005-10-28 02:02:08.000000000 +0200
+++ linux-2.6.14-git3/drivers/scsi/scsi_sysfs.c	2005-11-13 16:45:51.000000000 +0100
@@ -192,7 +192,9 @@ shost_rd_attr(host_busy, "%hu\n");
 shost_rd_attr(cmd_per_lun, "%hd\n");
 shost_rd_attr(sg_tablesize, "%hu\n");
 shost_rd_attr(unchecked_isa_dma, "%d\n");
+#ifdef CONFIG_SCSI_PROC_FS
 shost_rd_attr2(proc_name, hostt->proc_name, "%s\n");
+#endif
 
 static struct class_device_attribute *scsi_sysfs_shost_attrs[] = {
 	&class_device_attr_unique_id,
@@ -200,7 +202,9 @@ static struct class_device_attribute *sc
 	&class_device_attr_cmd_per_lun,
 	&class_device_attr_sg_tablesize,
 	&class_device_attr_unchecked_isa_dma,
+#ifdef CONFIG_SCSI_PROC_FS
 	&class_device_attr_proc_name,
+#endif
 	&class_device_attr_scan,
 	&class_device_attr_state,
 	NULL


-
: send the line "unsubscribe linux-scsi" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [SCSI Target Devel]     [Linux SCSI Target Infrastructure]     [Kernel Newbies]     [IDE]     [Security]     [Git]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux ATA RAID]     [Linux IIO]     [Samba]     [Device Mapper]
  Powered by Linux