LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (http://www.linuxquestions.org/questions/linux-general-1/)
-   -   warnings during compilation (http://www.linuxquestions.org/questions/linux-general-1/warnings-during-compilation-395630/)

HmmLinux 12-22-2005 08:44 AM

warnings during compilation
 
I get these warnings when I compile the latest kernel. A few of them I know how to fix but what should I do with them I dont know how to fix? is it important not to get any warnings when compiling a kernel?

arch/i386/kernel/apm.c: In function `suspend'
arch/i386/kernel/apm.c:1183: warning: `pm_send_all' is deprecated

(declaredatinclude/linux/pm.h:122)

arch/i386/kernel/apm.c:1237: warning: `pm_send_all' is deprecated

(declaredatinclude/linux/pm.h:122)

arch/i386/kernel/apm.c: In function `check_events´

arch/i386/kernel/apm.c:1358: warning: `pm_send_all' is deprecated

(declaredatinclude/linux/pm.h:122)

kernel/intermodule.c:178: warning: `inter_module_register' is deprecated (declared at

kernel/intermodule.c:38)

kernel/intermodule.c:179: warning: `inter_module_unregister' is deprecated (declared at

kernel/intermodule.c:78)

kernel/intermodule.c:181: warning: `inter_module_put' is deprecated (declared at

kernel/intermodule.c:159)

kernel/power/pm.c:258: warning: `pm_register' is deprecated (declared at kernel/power/pm.c:62)

kernel/power/pm.c:259: warning: `pm_unregister' is deprecated (declared at

kernel/power/pm.c:85)

kernel/power/pm.c:260: warning: `pm_unregister_all' is deprecated (declaredat

kernel/power/pm.c:114)

kernel/power/pm.c:261: warning: `pm_send_all' is deprecated (declared at

kernel/power/pm.c:233)

s/ext3/super.c: In function `ext3_show_options'

fs/ext3/super.c:516: warning: unused variable `sbi'

lib/ts_kmp.c:125: warning: initialization from incompatible pointer type


lib/ts_bm.c:165: warning: initialization from incompatible pointer type

lib/ts_fsm.c:318: warning: initialization from incompatible pointer type

drivers/net/hp100.c:374: warning: `hp100_isa_probe' defined but not used

lib/ts_kmp.c:125: warning: initialization from incompatible pointer type

lib/ts_bm.c:165: warning: initialization from incompatible pointer type

lib/ts_fsm.c:318: warning: initialization from incompatible pointer type

trickykid 12-22-2005 08:54 AM

Most likely you selected options that depend on other supported items in the kernel. Either disable those in the errors entirely or find out what else they need for each to be enabled in the kernel.

Matir 12-22-2005 10:13 AM

Though the kernel is not SUPPOSED to spit out warnings, it can. Warnings are generally ok, unless you see bugs/crashes after booting the kernel. Some odd behaviors used in optimization can generate warnings, in fact.

HmmLinux 12-22-2005 11:41 AM

I´ve read that "kernel/intermodule.c:178: warning:" comes when you chose the 386 processor. I picked the P4-based one(MPENTIUM4)becouse I have a Compaq 500 Mhz Celeron, did I chose wrong?

Thanks for helping out guys!

Matir 12-22-2005 11:47 AM

If you have a 500 MHz Celeron, you definitely do not have a P4-based Celeron.

HmmLinux 12-22-2005 12:29 PM

I've reduced the number of errors, but the ones thats left are a bit annying. Any ideas where I did wrong? well here they are:

kernel/intermodule.c:178: warning: `inter_module_register' is deprecated

(declared at kernel/intermodule.c:38)
kernel/intermodule.c:179: warning: `inter_module_unregister' is deprecated

(declared at kernel/intermodule.c:78)
kernel/intermodule.c:181: warning: `inter_module_put' is deprecated (declared at

kernel/intermodule.c:159)
kernel/power/pm.c:258: warning: `pm_register' is deprecated (declared at

kernel/power/pm.c:62)
kernel/power/pm.c:259: warning: `pm_unregister' is deprecated (declared at

kernel/power/pm.c:85)
kernel/power/pm.c:260: warning: `pm_unregister_all' is deprecated (declaredat

kernel/power/pm.c:114)
kernel/power/pm.c:261: warning: `pm_send_all' is deprecated (declared at

kernel/power/pm.c:233)
fs/ext3/super.c: In function `ext3_show_options':
fs/ext3/super.c:516: warning: unused variable `sbi'
lib/ts_kmp.c:125: warning: initialization from incompatible pointer type

lib/ts_bm.c:165: warning: initialization from incompatible pointer type

lib/ts_fsm.c:318: warning: initialization from incompatible pointer type

Matir 12-22-2005 01:08 PM

I wouldn't worry about any of these warnings, particularly the "unused variable" and deprecated warnings. Exactly which kernel version are you compiling? It's not a -rc*, is it?

HmmLinux 12-22-2005 01:12 PM

No, it's 2.6.14.4. thanks for taking your time to help me out Matir. You saved me alot of time!

Matir 12-22-2005 01:16 PM

It's no problem, I'm just glad I'm able to help. So long as the build finishes and exits normally, you should have a fully functional kernel ready to go.


All times are GMT -5. The time now is 09:21 PM.