Warnings from compilation of 2.1.131ac8, and SMP still not working

Amos Shapira (amos@gezernet.co.il)
Fri, 11 Dec 1998 20:17:31 +0200


Hello,

Just compiled 2.1.131 with AC patch 8, here are a few warnings I
encountered (one of them is about a complete static function not being
used):

gcc -D__KERNEL__ -I/usr/src/linux-2.1.131/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=586 -c -o BusLogic.o BusLogic.c
/usr/src/linux-2.1.131/include/linux/blk.h:375: warning: `do_sd' defined but not
used
/usr/src/linux-2.1.131/include/linux/blk.h:399: warning: `do_sd_request' declare
d `static' but never defined
scsi.h:636: warning: `end_scsi_request' defined but not used
gcc -D__KERNEL__ -I/usr/src/linux-2.1.131/include -Wall -Wstrict-prototypes -O2
-fomit-frame-pointer -D__SMP__ -pipe -fno-strength-reduce -m486 -malign-loops=2
-malign-jumps=2 -malign-functions=2 -DCPU=586 -DEXPORT_SYMTAB -c scsi_syms.c
BusLogic.c: In function `BusLogic_InitializeFlashPointProbeInfo':
BusLogic.c:1032: warning: unused variable `IRQ_Channel'

The definition of IRQ_Channel variable in BusLogic should be surounded
with CONFIG_SCSI_OMIT_FLASHPOINT to remove this warning. I don't know
about the others (it's something to do with a variable name passed as
an argument to a definition clause preprocessor macro).

In addition to the above:

There is a warning about euid in process_unauthorized() in
fs/proc/array.c may be used without being set. It's a false alarm but
if smooth kernel compilation is a goal (I hope it is, as it would give
kernel builders some extra indication for troubles) then maybe giving
euid a default value (is -1 a valid uid?) might help shut this up.

In net/ipv4/ip_input.c, function ip_rcv, 'tos' is defined
independantly of 'CONFIG_IP_ROUTE_TOS' and results in a warning of an
unused variable.

Apart from these - I still get SCSI bus resets from the BusLogic
controller, unless I pass a "noapic" command line parameter.

Please CC replys to me as I'm not on the linux-kernel mailing list.

--Amos

--Amos Shapira | "Of course Australia was marked for
133 Shlomo Ben-Yosef st. | glory, for its people had been chosen
Jerusalem 93 805 | by the finest judges in England."
ISRAEL amos@gezernet.co.il | -- Anonymous

-
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/