mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* usbcore.ko linkage problem on x86_64
@ 2004-04-30 16:12 R. J. Wysocki
  2004-04-30 20:38 ` Duncan Sands
  0 siblings, 1 reply; 3+ messages in thread
From: R. J. Wysocki @ 2004-04-30 16:12 UTC (permalink / raw)
  To: linux-kernel

Hi,

There seems to be a linkage problem with the usbcore.ko module in the 
2.6.6-rc2-mm2 and 2.6.6-rc3-mm1 kernels.  Namely, I get this message:

if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.6.6-rc3-mm1; fi
WARNING: /lib/modules/2.6.6-rc3-mm1/kernel/drivers/usb/core/usbcore.ko needs 
unknown symbol destroy_all_async

after "make modules_install".  AFAICS, it does not occur for the 2.6.6-rc2 
kernel.

Yours,
RJW


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: usbcore.ko linkage problem on x86_64
  2004-04-30 16:12 usbcore.ko linkage problem on x86_64 R. J. Wysocki
@ 2004-04-30 20:38 ` Duncan Sands
  2004-05-01 10:46   ` R. J. Wysocki
  0 siblings, 1 reply; 3+ messages in thread
From: Duncan Sands @ 2004-04-30 20:38 UTC (permalink / raw)
  To: R. J. Wysocki, linux-kernel

> There seems to be a linkage problem with the usbcore.ko module in the
> 2.6.6-rc2-mm2 and 2.6.6-rc3-mm1 kernels.  Namely, I get this message:
>
> if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.6.6-rc3-mm1;
> fi WARNING: /lib/modules/2.6.6-rc3-mm1/kernel/drivers/usb/core/usbcore.ko
> needs unknown symbol destroy_all_async
>
> after "make modules_install".  AFAICS, it does not occur for the 2.6.6-rc2
> kernel.

Hi RJW, does this help?  (I also got rid of the unused ld2 while I
was there).

All the best,

Duncan.

 devio.c |   35 +++++------------------------------
 1 files changed, 5 insertions(+), 30 deletions(-)


diff -Nru a/drivers/usb/core/devio.c b/drivers/usb/core/devio.c
--- a/drivers/usb/core/devio.c	Fri Apr 30 23:36:25 2004
+++ b/drivers/usb/core/devio.c	Fri Apr 30 23:36:25 2004
@@ -165,31 +165,6 @@
 	return ret;
 }
 
-extern inline unsigned int ld2(unsigned int x)
-{
-        unsigned int r = 0;
-        
-        if (x >= 0x10000) {
-                x >>= 16;
-                r += 16;
-        }
-        if (x >= 0x100) {
-                x >>= 8;
-                r += 8;
-        }
-        if (x >= 0x10) {
-                x >>= 4;
-                r += 4;
-        }
-        if (x >= 4) {
-                x >>= 2;
-                r += 2;
-        }
-        if (x >= 2)
-                r++;
-        return r;
-}
-
 /*
  * async list handling
  */
@@ -219,7 +194,7 @@
         kfree(as);
 }
 
-extern __inline__ void async_newpending(struct async *as)
+static inline void async_newpending(struct async *as)
 {
         struct dev_state *ps = as->ps;
         unsigned long flags;
@@ -229,7 +204,7 @@
         spin_unlock_irqrestore(&ps->lock, flags);
 }
 
-extern __inline__ void async_removepending(struct async *as)
+static inline void async_removepending(struct async *as)
 {
         struct dev_state *ps = as->ps;
         unsigned long flags;
@@ -239,7 +214,7 @@
         spin_unlock_irqrestore(&ps->lock, flags);
 }
 
-extern __inline__ struct async *async_getcompleted(struct dev_state *ps)
+static inline struct async *async_getcompleted(struct dev_state *ps)
 {
         unsigned long flags;
         struct async *as = NULL;
@@ -253,7 +228,7 @@
         return as;
 }
 
-extern __inline__ struct async *async_getpending(struct dev_state *ps, void __user *userurb)
+static inline struct async *async_getpending(struct dev_state *ps, void __user *userurb)
 {
         unsigned long flags;
         struct async *as;
@@ -321,7 +296,7 @@
 	destroy_async(ps, &hitlist);
 }
 
-extern __inline__ void destroy_all_async(struct dev_state *ps)
+static inline void destroy_all_async(struct dev_state *ps)
 {
 	        destroy_async(ps, &ps->async_pending);
 }

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: usbcore.ko linkage problem on x86_64
  2004-04-30 20:38 ` Duncan Sands
@ 2004-05-01 10:46   ` R. J. Wysocki
  0 siblings, 0 replies; 3+ messages in thread
From: R. J. Wysocki @ 2004-05-01 10:46 UTC (permalink / raw)
  To: Duncan Sands, linux-kernel

On Friday 30 of April 2004 22:38, Duncan Sands wrote:
> > There seems to be a linkage problem with the usbcore.ko module in the
> > 2.6.6-rc2-mm2 and 2.6.6-rc3-mm1 kernels.  Namely, I get this message:
> >
> > if [ -r System.map ]; then /sbin/depmod -ae -F System.map  2.6.6-rc3-mm1;
> > fi WARNING: /lib/modules/2.6.6-rc3-mm1/kernel/drivers/usb/core/usbcore.ko
> > needs unknown symbol destroy_all_async
> >
> > after "make modules_install".  AFAICS, it does not occur for the
> > 2.6.6-rc2 kernel.
>
> Hi RJW, does this help?  (I also got rid of the unused ld2 while I
> was there).
>

Yes, it does. :-)

Greets,
RJW



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2004-05-01 10:41 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-30 16:12 usbcore.ko linkage problem on x86_64 R. J. Wysocki
2004-04-30 20:38 ` Duncan Sands
2004-05-01 10:46   ` R. J. Wysocki

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®