public inbox for linux-mtd@lists.infradead.org
 help / color / mirror / Atom feed
* missing function 'unlikely'
@ 2003-09-09  8:12 Luca Contini
  2003-09-09  9:14 ` J.D. Bakker
  0 siblings, 1 reply; 3+ messages in thread
From: Luca Contini @ 2003-09-09  8:12 UTC (permalink / raw)
  To: MTD-Linux

Hi all,
I've downloaded the snapshot 2003-08-28 and I'm trying to use it with kernel 
2.4.18.
The mtdblock module is compiled with no problems but when i try to insert it I 
get this error:
'unresolved symbol unlikely'
I've done a grep on the entire kernel tree but with no result.
Just to try I've downloaded the 2.4.21 kernel and applied the patch 
(patchin.sh) to it, but since I cannot use the module (the kernel on the 
board is still 2.4.18) I couldn't verify whether it works. Anyway I've looked 
for the function 'unlikely' in the kernel 2.4.21 patched with patchin.sh but 
with no result.
Any suggestion?

regards

-- 
Luca

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

* Re: missing function 'unlikely'
  2003-09-09  8:12 missing function 'unlikely' Luca Contini
@ 2003-09-09  9:14 ` J.D. Bakker
  2003-09-15  8:23   ` Luca Contini
  0 siblings, 1 reply; 3+ messages in thread
From: J.D. Bakker @ 2003-09-09  9:14 UTC (permalink / raw)
  To: Luca Contini; +Cc: MTD-Linux

At 10:12 +0200 09-09-2003, Luca Contini wrote:
>Hi all,
>I've downloaded the snapshot 2003-08-28 and I'm trying to use it with kernel
>2.4.18.
>The mtdblock module is compiled with no problems but when i try to insert it I
>get this error:
>'unresolved symbol unlikely'
>I've done a grep on the entire kernel tree but with no result.

Which version of gcc are you using ?

unlikely() is an optimization hint to the compiler, telling it that 
the conditional statement in question is expected to be false.

As a hack, you can disable it by including

#define unlikely(x) (x)

in the affected source files. I would suggest upgrading your tools, though.

HTH,

JDB.
-- 
LART. 250 MIPS under one Watt. Free hardware design files.
http://www.lart.tudelft.nl/

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

* Re: missing function 'unlikely'
  2003-09-09  9:14 ` J.D. Bakker
@ 2003-09-15  8:23   ` Luca Contini
  0 siblings, 0 replies; 3+ messages in thread
From: Luca Contini @ 2003-09-15  8:23 UTC (permalink / raw)
  To: J.D. Bakker; +Cc: MTD-Linux

> At 10:12 +0200 09-09-2003, Luca Contini wrote:
> >Hi all,
> >I've downloaded the snapshot 2003-08-28 and I'm trying to use it with
kernel
> >2.4.18.
> >The mtdblock module is compiled with no problems but when i try to insert
it I
> >get this error:
> >'unresolved symbol unlikely'
> >I've done a grep on the entire kernel tree but with no result.
>
> Which version of gcc are you using ?
>
> unlikely() is an optimization hint to the compiler, telling it that
> the conditional statement in question is expected to be false.
>
> As a hack, you can disable it by including
>
> #define unlikely(x) (x)
>
> in the affected source files. I would suggest upgrading your tools,
though.

Hi,
thank you very much, I've successfully fixed the above problem... but there
is another one:

** mtd_blkdevs.o: unresolved symbol mtd_table_mutex **
** mtd_blkdevs.o: unresolved symbol mtd_table **

The mtdcore.c source should export those symbols... but there is no way to
insert mtd_blkdevs.o module without this error.
Any suggestion?


Luca

>
> HTH,
>
> JDB.
> -- 
> LART. 250 MIPS under one Watt. Free hardware design files.
> http://www.lart.tudelft.nl/
>
> ______________________________________________________
> Linux MTD discussion mailing list
> http://lists.infradead.org/mailman/listinfo/linux-mtd/
>
>

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

end of thread, other threads:[~2003-09-15  8:25 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-09-09  8:12 missing function 'unlikely' Luca Contini
2003-09-09  9:14 ` J.D. Bakker
2003-09-15  8:23   ` Luca Contini

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