Re: Linux 2.5.73

Alex Goddard (agoddard@purdue.edu)
Sun, 22 Jun 2003 16:58:19 -0500 (EST)


This is a MIME-formatted message. If you see this text it means that your
E-mail software does not support MIME-formatted messages.

--=_courier-29152-1056319888-0001-2
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

On Sun, 22 Jun 2003, Alex Goddard wrote:

> On Sun, 22 Jun 2003, Florin Iucha wrote:
>
> > drivers/built-in.o(.text+0x3106): In function `pci_remove_bus_device':
> > : undefined reference to `pci_destroy_dev'
> >
> > pci_destroy_dev is defined under CONFIG_HOTPLUG and used outside.
> >
> > florin
> >
> > PS: I think changeset referenced in 10560659712069@kroah.com
> > causes the problem.
>
> An attempt at a fix. It just moves pci_desroy_dev outside the #ifdef).
> I have no idea if this is the correct way to fix this. It compiles okay.

Ack. Dumb-assed mistake in that one. This one shouldn't die during
compile if CONFIG_HOTPLUG is turned on. The other one defined
pci_destroy_dev() twice because I'm dumb.

It does compile (with and without hotplug) and boot.

-- 
Alex Goddard
agoddard@purdue.edu
--=_courier-29152-1056319888-0001-2
Content-Type: text/plain; charset=us-ascii; name="hotplug.c.patch"
Content-Transfer-Encoding: base64
Content-ID: <Pine.LNX.4.56.0306221658190.16614@dust.p68.rivermarket.wintek.com>
Content-Description: 
Content-Disposition: attachment; filename="hotplug.c.patch"

LS0tIGhvdHBsdWcuYy5vcmlnCTIwMDMtMDYtMjIgMTY6MDA6MjUuMDAwMDAw MDAwIC0wNTAwDQorKysgaG90cGx1Zy5jCTIwMDMtMDYtMjIgMTY6NTQ6MzMu MDAwMDAwMDAwIC0wNTAwDQpAQCAtMTEsNiArMTEsNyBAQA0KICNlbmRpZg0K IA0KIHN0YXRpYyB2b2lkIHBjaV9mcmVlX3Jlc291cmNlcyhzdHJ1Y3QgcGNp X2RldiAqZGV2KTsNCitzdGF0aWMgdm9pZCBwY2lfZGVzdHJveV9kZXYoc3Ry dWN0IHBjaV9kZXYgKmRldik7DQogDQogI2lmZGVmIENPTkZ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