2.6.10-rc1-mm2: `key_init' multiple definition

From: Adrian Bunk
Date: Fri Oct 29 2004 - 06:56:49 EST


On Fri, Oct 29, 2004 at 01:49:30AM -0700, Andrew Morton wrote:
>...
> Changes since 2.6.10-rc1-mm1:
>...
> +key_init-ordering-fix.patch
>
> Fix early oops with the key management code
>...
> All 381 patches:
>...
> reiser4-only.patch
> reiser4: main fs
>...

Both patches add a global function key_init, resulting in the following
compile error:

<-- snip -->

...
LD .tmp_vmlinux1
security/built-in.o(.init.text+0x80): In function `key_init':
: multiple definition of `key_init'
fs/built-in.o(.text+0x8e200): first defined here
ld: Warning: size of symbol `key_init' changed from 90 in fs/built-in.o to 247 in security/built-in.o
make: *** [.tmp_vmlinux1] Error 1

<-- snip -->


I'm unsure about the key management code case, but for reiser4 this name
is definitely too generic for a global symbol (-> reiser4_key_init ?).


cu
Adrian

--

"Is there not promise of rain?" Ling Tan asked suddenly out
of the darkness. There had been need of rain for many days.
"Only a promise," Lao Er said.
Pearl S. Buck - Dragon Seed

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/