From: John Hesterberg <jh@sgi.com>
To: linux-ia64@vger.kernel.org
Subject: Re: [Linux-ia64] CONFIG_USB_UHCI=y not possible?
Date: Wed, 20 Feb 2002 17:14:24 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590701905148@msgid-missing> (raw)
In-Reply-To: <marc-linux-ia64-105590701905141@msgid-missing>
On Wed, Feb 20, 2002 at 09:50:38AM -0600, John Hesterberg wrote:
> When I try to change CONFIG_USB_UHCI from a module to static (=m to =y),
> I get:
>
> drivers/usb/usbdrv.o: In function `alloc_uhci':
> drivers/usb/usbdrv.o(.text.init+0x7e2): relocation truncated to fit: PCREL21B uhci_pci_remove
OK, I think this is because alloc_uhci() calls uhci_pci_remove(),
which is defined as __devexit. This gets dropped when it's not a module.
Below is a quick patch if anyone is interested.
I don't know if this is right or not, but it links.
I'll take this up with the USB maintainer(s).
Seems like if they allow CONFIG_USB_UHCI=y,
then this should be fixed.
John
diff -Naur 2.4.17-sn2/drivers/usb/usb-uhci.c linux/drivers/usb/usb-uhci.c
--- 2.4.17-sn2/drivers/usb/usb-uhci.c Wed Feb 20 17:11:49 2002
+++ linux/drivers/usb/usb-uhci.c Wed Feb 20 17:03:53 2002
@@ -3001,7 +3001,9 @@
s->irq = irq;
if(uhci_start_usb (s) < 0) {
+#if defined(MODULE) || defined(CONFIG_HOTPLUG)
uhci_pci_remove(dev);
+#endif
return -1;
}
next prev parent reply other threads:[~2002-02-20 17:14 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-02-20 15:50 [Linux-ia64] CONFIG_USB_UHCI=y not possible? John Hesterberg
2002-02-20 16:09 ` Stephane Eranian
2002-02-20 16:48 ` John Hesterberg
2002-02-20 17:02 ` Andreas Schwab
2002-02-20 17:14 ` John Hesterberg [this message]
2002-02-20 17:26 ` Greg KH
2002-02-20 17:28 ` John Hesterberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-ia64-105590701905148@msgid-missing \
--to=jh@sgi.com \
--cc=linux-ia64@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.