Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 06 Mar 1999 12:09:29 -0800
From:      Parag Patel <parag@cgt.com>
To:        freebsd-current@freebsd.org
Subject:   Lots of warnings in 4.0-CURRENT kernel build
Message-ID:  <199903062009.MAA59416@pinhead.parag.codegen.com>

next in thread | raw e-mail | index | archive | help

I just built a new 4.0-CURRENT kernel yesterday and noticed that there 
seem to be more warnings generated than used to be.  I rebuilt it today 
with the latest sources as of 3am March 6, built a new kernel from 
scratch (after deleting the entire old build dir), removed the "cc" 
lines, and got this set of warnings that I've appended to the end of 
this note.

(The kernel does link successfully, and at least last night's kernel is 
running fine, so this isn't a really critical problem.)

I do understand that some of the code is still being worked on, but I 
thought files such as if_fxp.c and ncr.c are relatively stable now.  
I'm curious if most people are building kernels without the default 
warnings or are just ignoring them?

I'd be happy to go over all the files and get everything to compile 
without warnings, but as others have already discovered, the warnings 
may be indicating real bugs that need fixing.  Perhaps the owners could 
take a closer look?

Maybe there should be a daily kernel warnings posting to the mailing 
list to prompt the owners to fix the code? :-)  Or a daily send-pr 
containing the latest kernel warnings generated? :-)  Or am I just 
pointing out what everyone but me already knows is being worked on?


	-- Parag Patel



kern/init_sysent.c:23: warning: cast discards `volatile' from pointer 
target type
kern/kern_sysctl.c: In function `sysctl_register_set':
kern/kern_sysctl.c:127: warning: cast discards `const' from pointer 
target type
kern/kern_sysctl.c: In function `sysctl_unregister_set':
kern/kern_sysctl.c:135: warning: cast discards `const' from pointer 
target type
kern/sys_generic.c: In function `write':
kern/sys_generic.c:251: warning: assignment discards `const' from 
pointer target type
pci/if_fxp.c: In function `fxp_init':
pci/if_fxp.c:1294: warning: passing arg 2 of `bcopy' discards 
`volatile' from pointer target type
pci/if_fxp.c:1351: warning: passing arg 2 of `bcopy' discards 
`volatile' from pointer target type
pci/if_fxp.c: In function `fxp_mc_setup':
pci/if_fxp.c:1867: warning: passing arg 2 of `bcopy' discards 
`volatile' from pointer target type
pci/ncr.c: In function `ncr_log_hard_error':
pci/ncr.c:5333: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c: In function `ncr_exception':
pci/ncr.c:5470: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c: In function `ncr_int_ma':
pci/ncr.c:5773: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c:5777: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c:5801: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c:5808: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c:5816: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c:5821: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c:5831: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c:5835: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c: In function `ncr_regtest':
pci/ncr.c:6803: warning: cast discards `volatile' from pointer target 
type
pci/ncr.c:6804: warning: cast discards `volatile' from pointer target 
type
In file included from dev/kbd/atkbd.c:336:
dev/kbd/kbdtables.h:1151: warning: missing braces around initializer 
for `key_map.key[0]'
i386/isa/ipl_funcs.c: In function `setdelayed':
i386/isa/ipl_funcs.c:136: warning: cast discards `volatile' from 
pointer target type
i386/isa/joy.c: In function `joyread':
i386/isa/joy.c:169: warning: suggest parentheses around comparison in 
operand of &
i386/isa/sio.c: In function `comhardclose':
i386/isa/sio.c:1338: warning: suggest parentheses around && within ||
i386/isa/sio.c: In function `comparam':
i386/isa/sio.c:2000: warning: suggest parentheses around && within ||
i386/isa/snd/ad1848.c: In function `cs423x_attach':
i386/isa/snd/ad1848.c:1587: warning: assignment from incompatible 
pointer type
i386/isa/snd/ad1848.c: In function `opti931_attach':
i386/isa/snd/ad1848.c:1690: warning: assignment from incompatible 
pointer type
i386/isa/snd/ad1848.c: In function `opti925_attach':
i386/isa/snd/ad1848.c:1755: warning: assignment from incompatible 
pointer type
i386/isa/snd/ad1848.c: In function `guspnp_attach':
i386/isa/snd/ad1848.c:1818: warning: assignment from incompatible 
pointer type
i386/isa/snd/ad1848.c: In function `ad1816_intr':
i386/isa/snd/ad1848.c:2039: warning: suggest parentheses around 
comparison in operand of &
i386/isa/snd/sbcard.h:358: warning: `sb16_recmasks_L' defined but not 
used
i386/isa/snd/sbcard.h:376: warning: `sb16_recmasks_R' defined but not 
used
libkern/index.c: In function `index':
libkern/index.c:48: warning: cast discards `const' from pointer target 
type
libkern/rindex.c: In function `rindex':
libkern/rindex.c:52: warning: cast discards `const' from pointer target 
type
pci/es1370.c:150: warning: initialization from incompatible pointer type
i386/isa/snd/ulaw.h:40: warning: `dsp_ulaw' defined but not used
kern/kern_linker.c: In function `linker_file_sysinit':
kern/kern_linker.c:114: warning: assignment discards `const' from 
pointer target type
kern/kern_linker.c: In function `linker_preload':
kern/kern_linker.c:971: warning: assignment discards `const' from 
pointer target type
kern/vfs_aio.c: In function `aio_process':
kern/vfs_aio.c:558: warning: cast discards `volatile' from pointer 
target type
kern/vfs_aio.c: In function `aio_qphysio':
kern/vfs_aio.c:1062: warning: cast discards `volatile' from pointer 
target type
kern/vfs_aio.c: In function `aio_suspend':
kern/vfs_aio.c:1499: warning: cast discards `const' from pointer target 
type
kern/vfs_aio.c: In function `aio_read':
kern/vfs_aio.c:1701: warning: cast discards `volatile' from pointer 
target type
kern/vfs_aio.c: In function `aio_write':
kern/vfs_aio.c:1763: warning: cast discards `volatile' from pointer 
target type
kern/vfs_aio.c: In function `lio_listio':
kern/vfs_aio.c:1861: warning: cast discards `const' from pointer target 
type
kern/vfs_aio.c:1896: warning: cast discards `const' from pointer target 
type
ufs/ffs/ffs_softdep.c: In function `deallocate_dependencies':
ufs/ffs/ffs_softdep.c:1745: warning: suggest parentheses around 
assignment used as truth value
ufs/ffs/ffs_softdep.c: In function `softdep_disk_write_complete':
ufs/ffs/ffs_softdep.c:2957: warning: suggest parentheses around 
assignment used as truth value
ufs/ffs/ffs_softdep.c:2962: warning: suggest parentheses around 
assignment used as truth value
ufs/ffs/ffs_softdep.c:2968: warning: suggest parentheses around 
assignment used as truth value
ufs/ffs/ffs_softdep.c: In function `softdep_sync_metadata':
ufs/ffs/ffs_softdep.c:3727: warning: suggest parentheses around 
assignment used as truth value
ufs/ffs/ffs_softdep.c:3846: warning: suggest parentheses around 
assignment used as truth value
ufs/ffs/ffs_softdep.c: In function `flush_pagedep_deps':
ufs/ffs/ffs_softdep.c:4154: warning: suggest parentheses around 
assignment used as truth value
./genassym >assym.s
i386/isa/vga_isa.c: In function `comp_adpregs':
i386/isa/vga_isa.c:886: warning: missing braces around initializer for 
`params[0]'




To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-current" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199903062009.MAA59416>