linux-scsi.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [Ubuntu PATCH] 3w-9xyz: add proc_name
@ 2006-06-21  5:32 Randy Dunlap
  2006-06-21 18:23 ` adam radford
  0 siblings, 1 reply; 3+ messages in thread
From: Randy Dunlap @ 2006-06-21  5:32 UTC (permalink / raw)
  To: scsi, akpm, jejb, linuxraid

Add .proc_name member to scsi_host_template for 3w-9xxx.

http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=commitdiff;h=12fdf64086335ed596848cf17602e7a71e15ae9b


---
 drivers/scsi/3w-9xxx.c |    1 +
 1 file changed, 1 insertion(+)

--- linux-2617-pv.orig/drivers/scsi/3w-9xxx.c
+++ linux-2617-pv/drivers/scsi/3w-9xxx.c
@@ -2011,6 +2011,7 @@ static void twa_unmap_scsi_data(TW_Devic
 /* scsi_host_template initializer */
 static struct scsi_host_template driver_template = {
 	.module			= THIS_MODULE,
+	.proc_name		= "3w-9xxx",
 	.name			= "3ware 9000 Storage Controller",
 	.queuecommand		= twa_scsi_queue,
 	.eh_host_reset_handler	= twa_scsi_eh_reset,




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Ubuntu PATCH] 3w-9xyz: add proc_name
  2006-06-21  5:32 [Ubuntu PATCH] 3w-9xyz: add proc_name Randy Dunlap
@ 2006-06-21 18:23 ` adam radford
  2006-06-21 20:50   ` Randy Dunlap
  0 siblings, 1 reply; 3+ messages in thread
From: adam radford @ 2006-06-21 18:23 UTC (permalink / raw)
  To: Randy Dunlap; +Cc: scsi, akpm, jejb, linuxraid

Randy,

Is there any reason why any of these proc_name patches need to
go in after James Smart's explanation:

http://marc.theaimsgroup.com/?l=linux-scsi&m=115040210406375&w=2

in particular, the part about:

"- scsi_proc_hostdir_add() validates that sht->proc_info is non-null before
   attempting to use sht->proc_name."

proc_info is null for the 3w-9xxx driver.

-Adam

On 6/20/06, Randy Dunlap <randy.dunlap@oracle.com> wrote:
> Add .proc_name member to scsi_host_template for 3w-9xxx.
>
> http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=commitdiff;h=12fdf64086335ed596848cf17602e7a71e15ae9b
>
>
> ---
>  drivers/scsi/3w-9xxx.c |    1 +
>  1 file changed, 1 insertion(+)
>
> --- linux-2617-pv.orig/drivers/scsi/3w-9xxx.c
> +++ linux-2617-pv/drivers/scsi/3w-9xxx.c
> @@ -2011,6 +2011,7 @@ static void twa_unmap_scsi_data(TW_Devic
>  /* scsi_host_template initializer */
>  static struct scsi_host_template driver_template = {
>         .module                 = THIS_MODULE,
> +       .proc_name              = "3w-9xxx",
>         .name                   = "3ware 9000 Storage Controller",
>         .queuecommand           = twa_scsi_queue,
>         .eh_host_reset_handler  = twa_scsi_eh_reset,
>
>
>
> -
> To unsubscribe from this list: send the line "unsubscribe linux-scsi" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at  http://vger.kernel.org/majordomo-info.html
>

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [Ubuntu PATCH] 3w-9xyz: add proc_name
  2006-06-21 18:23 ` adam radford
@ 2006-06-21 20:50   ` Randy Dunlap
  0 siblings, 0 replies; 3+ messages in thread
From: Randy Dunlap @ 2006-06-21 20:50 UTC (permalink / raw)
  To: adam radford; +Cc: scsi, akpm, jejb, linuxraid

adam radford wrote:
> Randy,
> 
> Is there any reason why any of these proc_name patches need to
> go in after James Smart's explanation:

Nope.  Thanks for your comments.

~Randy

> http://marc.theaimsgroup.com/?l=linux-scsi&m=115040210406375&w=2
> 
> in particular, the part about:
> 
> "- scsi_proc_hostdir_add() validates that sht->proc_info is non-null before
>   attempting to use sht->proc_name."
> 
> proc_info is null for the 3w-9xxx driver.
> 
> -Adam
> 
> On 6/20/06, Randy Dunlap <randy.dunlap@oracle.com> wrote:
>> Add .proc_name member to scsi_host_template for 3w-9xxx.
>>
>> http://www.kernel.org/git/?p=linux/kernel/git/bcollins/ubuntu-dapper.git;a=commitdiff;h=12fdf64086335ed596848cf17602e7a71e15ae9b
>>
>>
>>
>> ---
>>  drivers/scsi/3w-9xxx.c |    1 +
>>  1 file changed, 1 insertion(+)
>>
>> --- linux-2617-pv.orig/drivers/scsi/3w-9xxx.c
>> +++ linux-2617-pv/drivers/scsi/3w-9xxx.c
>> @@ -2011,6 +2011,7 @@ static void twa_unmap_scsi_data(TW_Devic
>>  /* scsi_host_template initializer */
>>  static struct scsi_host_template driver_template = {
>>         .module                 = THIS_MODULE,
>> +       .proc_name              = "3w-9xxx",
>>         .name                   = "3ware 9000 Storage Controller",
>>         .queuecommand           = twa_scsi_queue,
>>         .eh_host_reset_handler  = twa_scsi_eh_reset,
>>
>>
>>
>> -


^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2006-06-21 20:48 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-06-21  5:32 [Ubuntu PATCH] 3w-9xyz: add proc_name Randy Dunlap
2006-06-21 18:23 ` adam radford
2006-06-21 20:50   ` Randy Dunlap

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).