LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 12-22-2005, 08:44 AM   #1
HmmLinux
Member
 
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59

Rep: Reputation: 15
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
 
Old 12-22-2005, 08:54 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
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.
 
Old 12-22-2005, 10:13 AM   #3
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
Old 12-22-2005, 11:41 AM   #4
HmmLinux
Member
 
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59

Original Poster
Rep: Reputation: 15
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!
 
Old 12-22-2005, 11:47 AM   #5
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
If you have a 500 MHz Celeron, you definitely do not have a P4-based Celeron.
 
Old 12-22-2005, 12:29 PM   #6
HmmLinux
Member
 
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59

Original Poster
Rep: Reputation: 15
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
 
Old 12-22-2005, 01:08 PM   #7
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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?
 
Old 12-22-2005, 01:12 PM   #8
HmmLinux
Member
 
Registered: Apr 2003
Location: Stockholm, Sweden
Distribution: Debain
Posts: 59

Original Poster
Rep: Reputation: 15
No, it's 2.6.14.4. thanks for taking your time to help me out Matir. You saved me alot of time!
 
Old 12-22-2005, 01:16 PM   #9
Matir
LQ Guru
 
Registered: Nov 2004
Location: San Jose, CA
Distribution: Debian, Arch
Posts: 8,507

Rep: Reputation: 128Reputation: 128
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Gdk warnings BroX Slackware 5 03-13-2006 05:06 PM
Warnings from make Conjurer Linux - Software 1 11-12-2005 02:10 AM
What do these warnings mean (re cdrom)? tigerflag Linux - Hardware 4 03-24-2005 06:14 PM
Compilation flags and linker warnings alanwolfen Programming 4 02-24-2005 08:11 AM
removing warnings h/w Programming 6 01-26-2004 05:06 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 05:40 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration