Re: [BK PATCH] PCI and PCI Hotplug changes and fixes for 2.5.70

Dave Jones (davej@codemonkey.org.uk)
Thu, 5 Jun 2003 10:18:02 +0100


On Thu, Jun 05, 2003 at 02:06:45AM -0700, Greg KH wrote:
> > so why not..
> >
> > #define pci_for_each_dev(dev) \
> > while ((device = pci_find_device(PCI_ANY_ID, PCI_ANY_ID, device)) != NULL)
> >
> > ?
> >
> > Seems to be the same change you made tree-wide, with minimal
> > interruption to drivers.
>
> But that would have changed the way that pci_for_each_dev() works.
> It would require that dev=NULL before the function is called.

trivial to fix.

> And having
> the same function work subtly different on different kernel versions
> would not be the best thing.

ditto.

> Getting rid of it entirely was the better
> option, and now that Linus has pulled it, we don't have to worry about
> it anymore :)

The fact that a tree-wide 'cleanup' like this goes in just a few hours
after its posted before chance to comment is another argument, but
concentrating on the technical point here, I still think this is a
step backwards.

Dave
-
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/