[RFC] Moving Intrepid to 2.6.27 kernel
Tetsuo Handa
penguin-kernel at I-love.SAKURA.ne.jp
Sat Aug 23 00:21:43 UTC 2008
Hello.
Tim Gardner wrote:
> Tesuo - Is there a reason your module cannot advertise
> 'MODULE_LICENSE("GPL");' ? I believe that is the reason your compile is
> failing.
It is not my module but et131x.ko which causes compilation failure.
Ben Collins wrote:
> Well, it is a modified config. Our build doesn't fail on this module.
>
> Tetsuo, what did you change?
I enabled most options in "Kernel hacking" section.
I uploaded the kernel config.
This error happens by doing:
---
# apt-get build-dep linux-image-2.6.26-5-server
# apt-get source linux-image-2.6.26-5-server
# cd linux-2.6.26/
# wget -O .config http://I-love.SAKURA.ne.jp/tmp/config-2.6.26-5-server-with-debug
# make -sj2
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:113: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:364: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
(...snipped...)
net/tipc/dbg.c: In function ‘tipc_printf’:
net/tipc/dbg.c:225: warning: format not a string literal and no format arguments
net/tipc/dbg.c: In function ‘print_to_console’:
net/tipc/dbg.c:291: warning: format not a string literal and no format arguments
net/tipc/dbg.c: In function ‘tipc_dump’:
net/tipc/dbg.c:335: warning: format not a string literal and no format arguments
WARNING: modpost: Found 3 section mismatch(es).
To see full details build your kernel with:
'make CONFIG_DEBUG_SECTION_MISMATCH=y'
UPD include/linux/compile.h
Building modules, stage 2.
Root device is (8, 1)
Setup is 12444 bytes (padded to 12800 bytes).
System is 2232 kB
CRC e0961a37
Kernel: arch/x86/boot/bzImage is ready (#1)
FATAL: modpost: GPL-incompatible module et131x.ko uses GPL-only symbol 'lockdep_init_map'
make[1]: *** [__modpost] Error 1
make: *** [modules] Error 2
#
---
However, this error does not happen by doing:
---
# apt-get build-dep linux-image-2.6.26-5-server
# apt-get source linux-image-2.6.26-5-server
# cd linux-2.6.26/
# wget -O .config http://I-love.SAKURA.ne.jp/tmp/config-2.6.26-5-server-with-debug
# make -s ubuntu/et131x/et131x.ko
scripts/kconfig/conf.c: In function ‘conf_askvalue’:
scripts/kconfig/conf.c:113: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
scripts/kconfig/conf.c: In function ‘conf_choice’:
scripts/kconfig/conf.c:364: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
In file included from scripts/kconfig/zconf.tab.c:2486:
scripts/kconfig/confdata.c: In function ‘conf_write’:
scripts/kconfig/confdata.c:501: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
scripts/kconfig/confdata.c: In function ‘conf_write_autoconf’:
scripts/kconfig/confdata.c:739: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
scripts/kconfig/confdata.c:740: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
In file included from scripts/kconfig/zconf.tab.c:2487:
scripts/kconfig/expr.c: In function ‘expr_print_file_helper’:
scripts/kconfig/expr.c:1090: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
scripts/kconfig/zconf.tab.c: At top level:
scripts/kconfig/lex.zconf.c:1628: warning: ‘input’ defined but not used
SYMLINK include/asm -> include/asm-x86
scripts/genksyms/lex.c: In function ‘yylex1’:
scripts/genksyms/lex.l:95: warning: ignoring return value of ‘fwrite’, declared with attribute warn_unused_result
scripts/genksyms/lex.l: At top level:
scripts/genksyms/lex.c:1487: warning: ‘input’ defined but not used
scripts/mod/modpost.c: In function ‘get_markers’:
scripts/mod/modpost.c:1542: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
scripts/mod/modpost.c: In function ‘add_marker’:
scripts/mod/modpost.c:1954: warning: ignoring return value of ‘asprintf’, declared with attribute warn_unused_result
scripts/kallsyms.c: In function ‘read_symbol’:
scripts/kallsyms.c:74: warning: ignoring return value of ‘fgets’, declared with attribute warn_unused_result
#
---
Regards.
More information about the kernel-team
mailing list