Make scsi_host_template::proc_name const char * instead of char *.
PATCH RESEND 1/1 Make scsi_host_template::proc_name const char * instead of char *.
From:Kristian Høgsberg <[email protected]>
Date: Wed, 9 May 2007 19:23:12 -0400
Signed-off-by Kristian Høgsberg <[email protected]>
collapsed with fw-sbp2 patch "Drop cast to non-const char * in host template initialization." from Kristian Høgsberg
Signed-off-by Stefan Richter <[email protected]>
---
This is the same as posted on 2007-06-30, though rebased onto today's scsi-misc.
drivers/firewire/fw-sbp2.c | 2 +- drivers/scsi/scsi_debug.c | 2 +- include/scsi/scsi_host.h | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-)
drivers/firewire/fw-sbp2.c +1 -1
@@ -1162,7 +1162,7 @@ static struct device_attribute *sbp2_scsi_sysfs_attrs[] = {static struct scsi_host_template scsi_driver_template = { .module =THIS_MODULE , .name ="SBP-2 IEEE-1394" , - .proc_name = (char *)sbp2_driver_name, + .proc_name = sbp2_driver_name, .queuecommand = sbp2_scsi_queuecommand, .slave_alloc = sbp2_scsi_slave_alloc, .slave_configure = sbp2_scsi_slave_configure,
drivers/scsi/scsi_debug.c +1 -1
@@ -2875,7 +2875,7 @@ static int __init scsi_debug_init(void)init_all_queued (); - sdebug_driver_template.proc_name = (char *)sdebug_proc_name; + sdebug_driver_template.proc_name = sdebug_proc_name; host_to_add = scsi_debug_add_host; scsi_debug_add_host =0 ;
include/scsi/scsi_host.h +1 -1
@@ -341,7 +341,7 @@ struct scsi_host_template {/* * Name of proc directory */ -char *proc_name; +const char *proc_name;/* * Used to store the procfs directory if a driver implements the
Signature · 12 lines
1.5.1.6 -- Stefan Richter -=====-=-=== -=== =--== http://arcgraph.de/sr/ - To unsubscribe from this list: send the line "unsubscribe linux-scsi" in the body of a message to [email protected] More majordomo info at http://vger.kernel.org/majordomo-info.html