Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
12-22-2005, 08:44 AM
|
#1
|
Member
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59
Rep:
|
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
|
|
|
12-22-2005, 08:54 AM
|
#2
|
LQ Guru
Registered: Jan 2001
Posts: 24,149
|
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.
|
|
|
12-22-2005, 10:13 AM
|
#3
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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.
|
|
|
12-22-2005, 11:41 AM
|
#4
|
Member
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59
Original Poster
Rep:
|
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!
|
|
|
12-22-2005, 11:47 AM
|
#5
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
If you have a 500 MHz Celeron, you definitely do not have a P4-based Celeron.
|
|
|
12-22-2005, 12:29 PM
|
#6
|
Member
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59
Original Poster
Rep:
|
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
|
|
|
12-22-2005, 01:08 PM
|
#7
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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?
|
|
|
12-22-2005, 01:12 PM
|
#8
|
Member
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59
Original Poster
Rep:
|
No, it's 2.6.14.4. thanks for taking your time to help me out Matir. You saved me alot of time!
|
|
|
12-22-2005, 01:16 PM
|
#9
|
LQ Guru
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507
Rep: 
|
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 04:53 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|