1.3.11 compile warnings

Richard Waltham (dormouse@farsrobt.demon.co.uk)
Sat, 22 Jul 1995 01:42:40 +0100 (BST)


Compiling 1.3.11 give a couple or three warnings.

Not sure about the significance of the first one, if indeed it has any, or
if any of them have but here they are anyway.

'sgcnt' is defined but never referenced, should it be?

'ow_size' is defined but only referenced in a section starting with #if 0,
so never used.

gcc -D__KERNEL__ -I/usr/src/linux-1.3.0/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -pipe -m486 -c sg.c
sg.c: In function `sg_ioctl':
sg.c:80: warning: passing arg 2 of `verify_area' makes pointer from integer
without a cast
sg.c: In function `sg_write':
sg.c:301: warning: unused variable `sgcnt'

gcc -D__KERNEL__ -I/usr/src/linux-1.3.0/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -pipe -m486 -c tcp.c
tcp.c: In function `tcp_write_wakeup':
tcp.c:4954: warning: unused variable `ow_size'

Running the commands

make mrproper
make dep
make clean
make dep

gives two different outputs for make dep. Is this usual or should I normally
expect them be the same. For my build of kernel, however, it doesn't seem to
have any consequences as it ends up the same whatever the output of make
dep.

Running make dep after mrproper gives the following additional output if its
of any significance.

make[1]: Entering directory `/usr/src/linux-1.3.0/kernel'
gcc -D__KERNEL__ -I/usr/src/linux-1.3.0/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -pipe -m486 -E -DCONFIG_MODVERSIONS -D__GENKSYMS__
ksyms.c | /sbin/genksyms -w /usr/src/linux-1.3.0/include/linux/modules
genksyms "ksyms.c": warning: symbol [do_mmap]: unknown 'struct sem_undo'
genksyms "ksyms.c": warning: symbol [do_mmap]: unknown 'struct sem_queue'
genksyms "ksyms.c": warning: symbol [do_mmap]: unknown 'struct minix_super_block'
genksyms "ksyms.c": warning: symbol [do_mmap]: unknown 'struct ext2_super_block'
genksyms "ksyms.c": warning: symbol [inet_add_protocol]: unknown 'struct sock'
genksyms "ksyms.c": warning: symbol [inet_add_protocol]: unknown 'struct ip_mc_list'
genksyms "ksyms.c": warning: symbol [inet_add_protocol]: unknown 'struct udphdr'
genksyms "ksyms.c": warning: symbol [scsi_register]: unknown 'struct scsi_disk'
updating /usr/src/linux-1.3.0/include/linux/modversions.h

make[2]: Entering directory `/usr/src/linux-1.3.0/drivers/char'
gcc -I/usr/src/linux-1.3.0/include -o conmakehash conmakehash.c
./conmakehash cp437.uni 641 283 6 > uni_hash_tbl.h

make[2]: Entering directory `/usr/src/linux-1.3.0/drivers/scsi'
gcc -D__KERNEL__ -I/usr/src/linux-1.3.0/include -Wall -Wstrict-prototypes
-O2 -fomit-frame-pointer -pipe -m486 -o aic7xxx_asm aic7xxx_asm.c
./aic7xxx_asm -o aic7xxx_seq.h aic7xxx.seq
428 out of 448 instructions used.