apm doesn't copmpile as a module in 2.3.1[56]

Joachim Schmitz (jojo@delta.rat.eur.compaq.com)
Thu, 2 Sep 1999 12:55:52 +0200 (MET DST)


Hi

Subject says it all. Here the actual error message:

gcc -D__KERNEL__ -I/usr/src/linux-2.3.16/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strict-aliasing -pipe -fno-strength-reduce -DCPU=586 -march=i586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.3.16/include/linux/modversions.h -DEXPORT_SYMTAB -c apm.c
apm.c: In function `suspend':
apm.c:819: warning: unused variable `flags'
apm.c: In function `apm_get_info':
apm.c:1235: warning: unused variable `nbat'
apm.c: At top level:
apm.c:1427: parse error before string constant
apm.c:1427: warning: type defaults to `int' in declaration of `__setup'
apm.c:1427: warning: function declaration isn't a prototype
apm.c:1427: warning: data definition has no type or storage class
apm.c: In function `apm_init':
apm.c:1445: warning: `return' with no value, in function returning non-void
apm.c:1455: warning: `return' with no value, in function returning non-void
apm.c:1484: warning: `return' with no value, in function returning non-void
apm.c:1543: warning: control reaches end of non-void function
apm.c: At top level:
apm.c:648: warning: `apm_get_battery_status' defined but not used
apm.c:1405: warning: `apm_setup' defined but not used
make[1]: *** [apm.o] Error 1
make[1]: Leaving directory `/usr/src/linux-2.3.16/arch/i386/kernel'
make: *** [_mod_arch/i386/kernel] Error 2

-- 
Bye,	Joachim 'Jojo' Schmitz, Compaq Computer, GCSC-Germany, UNIX-Analyst

email: work Joachim.Schmitz@COMPAQ.COM(prefered), SCHMITZ_JOACHIM@Tandem.COM, home Joachim_Schmitz@t-online.de(prefered), Joachim.Schmitz@D.maus.de

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/