Warnings when compiling apm
Hi there.
For many kernel releases, including 2.6.11-rc3-mm2, I ve been getting warnings like the following when compiling the apm driver:
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
CC arch/i386/kernel/apm.oarch/i386/kernel/apm.c: In function `suspend':arch/i386/kernel/apm.c:1191: warning: pm_send_all' is deprecated (declared at include/linux/pm.h:126) arch/i386/kernel/apm.c:1241: warning: pm_send_all' is deprecated (declared at include/linux/pm.h:126) arch/i386/kernel/apm.c: In function `check_events':arch/i386/kernel/apm.c:1357: warning: `pm_send_all' is deprecated (declared at include/linux/pm.h:126)
- - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
Unfortunately, I read the code in pm.h and apm.c to see if I could fix the problem, but I am just not sure if killing the calls to pm_send_all is something that should be done or not (the function currently is just an inline function that returns 0).
Similar things can be said about pm_register, pm_unregister, pm_unregister_all and pm_send.
Thanks for any guidance, Rogério.
Signature · 3 lines
=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-= Rogério Brito - [email protected] - http://www.ime.usp.br/~rbrito =-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=