Linux - GeneralThis 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.
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.
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
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.
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.
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?
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
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?
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.