From: Xavier Bru <Xavier.Bru@bull.net>
To: linux-ia64@vger.kernel.org
Subject: [Linux-ia64] USB driver does not build in kernel
Date: Wed, 05 Dec 2001 13:51:36 +0000 [thread overview]
Message-ID: <marc-linux-ia64-105590698805618@msgid-missing> (raw)
Hello,
I try to build a kernel that integrates the usb-uhci driver and I get
an error at ld time (gcc 2.96 & gcc 3.0.1):
drivers/usb/usbdrv.o: In function `alloc_uhci':
drivers/usb/usbdrv.o(.text.init+0x802): relocation truncated to fit: PCREL21B uhci_pci_remove
I think this is due to uhci_pci_remove() being declared as:
_static void __devexit uhci_pci_remove (struct pci_dev *dev)
and being called by alloc_uhci().
I removed the __devexit attribute and all seems to be OK.
As __devexit should mean "only used at exit time", according to init.h.
A possible patch could be:
--- linux-2.4.16-ori/drivers/usb/usb-uhci.c Fri Nov 9 22:41:42 2001
+++ linux-2.4.16/drivers/usb/usb-uhci.c Wed Dec 5 14:49:40 2001
@@ -2845,7 +2845,7 @@
s->running = 1;
}
-_static void __devexit
+_static void
uhci_pci_remove (struct pci_dev *dev)
{
uhci_t *s = pci_get_drvdata(dev);
--
Sincères salutations.
_____________________________________________________________________
Xavier BRU BULL ISD/R&D/INTEL office: FREC B1-422
tel : +33 (0)4 76 29 77 45 http://www-frec.bull.fr
fax : +33 (0)4 76 29 77 70 mailto:Xavier.Bru@bull.net
addr: BULL, 1 rue de Provence, BP 208, 38432 Echirolles Cedex, FRANCE
_____________________________________________________________________
next reply other threads:[~2001-12-05 13:51 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-12-05 13:51 Xavier Bru [this message]
2001-12-05 18:24 ` [Linux-ia64] USB driver does not build in kernel Greg KH
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-105590698805618@msgid-missing \
--to=xavier.bru@bull.net \
--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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox