]> rtime.felk.cvut.cz Git - lisovros/linux_canprio.git/commit
x86: fix csum_partial() export
authorIngo Molnar <mingo@elte.hu>
Tue, 13 May 2008 08:36:22 +0000 (10:36 +0200)
committerIngo Molnar <mingo@elte.hu>
Tue, 13 May 2008 17:38:47 +0000 (19:38 +0200)
commit89804c022fe32541f5dd40a69e48ff4678d9ad24
tree3a58251be5d4537c3ed8323602abf3ff3ddd3878
parent8c45a4e4f2b9bed6b6c54aaafc89e906284ccdf2
x86: fix csum_partial() export

Fix this symbol export problem:

    Building modules, stage 2.
    MODPOST 193 modules
    ERROR: "csum_partial" [fs/reiserfs/reiserfs.ko] undefined!
    make[1]: *** [__modpost] Error 1
    make: *** [modules] Error 2

This is due to a known weakness of symbol exports: if a symbol's
only in-core user is an EXPORT_SYMBOL from a lib-y section, the
symbol is not linked in.

The solution is to move the export to x8664_ksyms_64.c - but the real
solution would be to fix kbuild.

Signed-off-by: Ingo Molnar <mingo@elte.hu>
arch/x86/kernel/x8664_ksyms_64.c
arch/x86/lib/csum-partial_64.c