lkml.org 
[lkml]   [2003]   [Sep]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] helper for device list traversal
On Sat, Sep 27, 2003 at 01:34:15PM +0200, Geert Uytterhoeven wrote:
> Is this what we should use to fix the currently broken list traversal[*] in
> drivers/scsi/{a2091,gvp11,53c7xx}.c?

where does that [*] refere to?

> Currently ut uses
>
> struct Scsi_Host *instance;
> for (instance = first_instance; instance &&
> instance->hostt == xxx_template; instance = instance->next)
>
> bust Scsi_Host.next was removed a while ago...

Most users of that construct want to use scsi_lookup_host (if they
looked for a specific host struct).

Above patch is for scsi_device list traversal, not Scsi_Host.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:48    [W:0.038 / U:0.160 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site