Messages in this thread |  | | From | Keith Owens <> | Subject | 2.1.16, compile error on pcwd.c | Date | Sun, 22 Dec 1996 14:43:55 +1100 |
| |
Minor quibble, the configuration script allows both CONFIG_PCWD_REV_A and CONFIG_PCWD_REV_C to be set but if both are set, pcwd.c gets compilation errors. I was trying to compile the kernel with every legal option set.
gcc -D__KERNEL__ -I/usr/src/linux-2.1.16/include -Wall -Wstrict-prototypes -O2 -fomit-frame-pointer -fno-strength-reduce -pipe -m486 -malign-loops=2 -malign-jumps=2 -malign-functions=2 -DCPU=586 -DMODULE -DMODVERSIONS -include /usr/src/linux-2.1.16/include/linux/modv ersions.h -c -o pcwd.o pcwd.c pcwd.c:79: warning: `CARD_REV' redefined pcwd.c:69: warning: this is the location of the previous definition pcwd.c:80: warning: `PORT_OFFSET' redefined pcwd.c:70: warning: this is the location of the previous definition pcwd.c:81: warning: `PORT_RANGE' redefined pcwd.c:71: warning: this is the location of the previous definition pcwd.c:83: warning: `WD_T110' redefined pcwd.c:73: warning: this is the location of the previous definition pcwd.c: In function `pcwd_send_heartbeat': pcwd.c:218: warning: `return' with a value, in function returning void pcwd.c: In function `pcwd_ioctl': pcwd.c:225: variable `ident' has initializer but incomplete type pcwd.c:227: warning: excess elements in struct initializer after `ident' pcwd.c:229: warning: excess elements in struct initializer after `ident' pcwd.c:234: warning: excess elements in struct initializer after `ident' pcwd.c:225: storage size of `ident' isn't known pcwd.c:245: warning: passing arg 1 of `__constant_copy_to_user' makes pointer from integer without a cast pcwd.c:245: warning: passing arg 1 of `__generic_copy_to_user' makes pointer from integer without a cast pcwd.c:225: warning: unused variable `ident' pcwd.c: In function `pcwd_write': pcwd.c:312: warning: control reaches end of non-void function pcwd.c: At top level: pcwd.c:340: warning: initialization from incompatible pointer type pcwd.c: In function `init_module': pcwd.c:419: parse error before `void' pcwd.c:425: warning: control reaches end of non-void function make[2]: *** [pcwd.o] Error 1 make[2]: Leaving directory `/usr/src/linux-2.1.16/drivers/char' make[1]: *** [modules] Error 2
|  |