Kristian Høgsberg wrote: > Signed-off-by: Kristian Hoegsberg <krh@xxxxxxxxxx> > --- > drivers/scsi/scsi_debug.c | 2 +- > include/scsi/scsi_host.h | 2 +- > 2 files changed, 2 insertions(+), 2 deletions(-) > > diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c > index 3e2930b..843f9c1 100644 > --- a/drivers/scsi/scsi_debug.c > +++ b/drivers/scsi/scsi_debug.c > @@ -2876,7 +2876,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; > diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h > index 7f1f411..0dfb5c2 100644 > --- a/include/scsi/scsi_host.h > +++ b/include/scsi/scsi_host.h > @@ -343,7 +343,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 This has to go via James B and LSML. -- Stefan Richter -=====-=-=== -=-= -=-=- http://arcgraph.de/sr/
From: =?utf-8?q?Kristian_H=C3=B8gsberg?= <krh@xxxxxxxxxx> Subject: [PATCH 6/9] Make scsi_host_template::proc_name const char * instead of char *. Date: Wed, 9 May 2007 19:23:12 -0400 Signed-off-by: Kristian Hoegsberg <krh@xxxxxxxxxx> --- drivers/scsi/scsi_debug.c | 2 +- include/scsi/scsi_host.h | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/scsi/scsi_debug.c b/drivers/scsi/scsi_debug.c index 3e2930b..843f9c1 100644 --- a/drivers/scsi/scsi_debug.c +++ b/drivers/scsi/scsi_debug.c @@ -2876,7 +2876,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; diff --git a/include/scsi/scsi_host.h b/include/scsi/scsi_host.h index 7f1f411..0dfb5c2 100644 --- a/include/scsi/scsi_host.h +++ b/include/scsi/scsi_host.h @@ -343,7 +343,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