Date: Tue, 04 Nov 1997 01:07:03 -0800 (PST) From: Simon Shapiro <Shimon@i-Connect.Net> To: freebsd-current@freebsd.org Subject: LINT Errors Message-ID: <XFMail.971104010703.Shimon@i-Connect.Net>
index | next in thread | raw e-mail
I have not heared any voice of support (nor rejection :-) for my offer to
vacum the LINT off the kernel.
So, here is another batch of complaints (GCC, not me; I am not complaining
:-)
../../dev/ppbus/vpo.c: In function `vpointr':
../../dev/ppbus/vpo.c:67: warning: can't inline call to `vpoio_do_scsi'
../../dev/ppbus/vpo.c:283: warning: called from here
[ I am getting plenty of these lately. Dunno why :-( ]
../../kern/kern_malloc.c: In function `malloc':
../../kern/kern_malloc.c:136: warning: passing arg 3 of `tsleep' discards
`const' from pointer target type
../../kern/kern_malloc.c:198: warning: assignment discards `const' from
pointer target type
[ I admit shamelessly i do not know how t0 silence this one ]
../../kern/kern_opt.c:44: warning: #warning "obsolete option GATEWAY - use
`sysctl -w net.inet.ip.forwarding=1'"
[ Should i do as it says? ]
../../miscfs/umapfs/umap_subr.c: In function `umap_mapids':
../../miscfs/umapfs/umap_subr.c:366: warning: passing arg 2 of
`umap_findid' from incompatible pointer type
../../miscfs/umapfs/umap_subr.c:392: warning: passing arg 2 of
`umap_findid' from incompatible pointer type
[ Could be nothing, could be a bug ]
../../pccard/pccard.c: In function `unregister_device_interrupt':
../../pccard/pccard.c:313: warning: implicit declaration of function
`INTRDIS'
../../pccard/pccard.c: In function `pccard_alloc_intr':
../../pccard/pccard.c:497: warning: implicit declaration of function
`INTREN'
[ ??? ]
../../pci/if_vx_pci.c: In function `vx_pci_attach':
../../pci/if_vx_pci.c:129: warning: passing arg 2 of `pci_map_int' from
incompatible pointer type
[ I remember why this is so, but not why it cannot be cast to shut GCC up ]
../../ufs/lfs/lfs_segment.c: In function `lfs_vunref':
../../ufs/lfs/lfs_segment.c:1232: warning: nested extern declaration of
`vnode_free_list_slock'
../../ufs/lfs/lfs_segment.c:1233: warning: nested extern declaration of
`vnode_free_list'
[ I do not really know what it means. Looks fine to me ]
../../i386/eisa/eisaconf.c: In function `eisa_reg_intr':
../../i386/eisa/eisaconf.c:428: warning: passing arg 3 of `intr_create'
from incompatible pointer type
[ This is the cmplement of the PCI complaint. See there... ]
../../i386/i386/db_interface.c: In function `kdb_trap':
../../i386/i386/db_interface.c:73: warning: variable `ddb_mode' might be
clobbered by `longjmp' or `vfork'
[ Oh, really? ]
../../i386/i386/sys_machdep.c: In function `i386_get_ioperm':
../../i386/i386/sys_machdep.c:225: warning: `i' might be used uninitialized
in this function
[ I routinely initialize these to zero ]
../../i386/isa/if_el.c: In function `el_attach':
../../i386/isa/if_el.c:86: warning: can't inline call to `el_hardreset'
../../i386/isa/if_el.c:169: warning: called from here
../../i386/isa/if_el.c: In function `elintr':
../../i386/isa/if_el.c:84: warning: can't inline call to `elread'
../../i386/isa/if_el.c:508: warning: called from here
I already asked why these happen for the last week or so ]
../../i386/isa/if_wl.c: In function `wl_cache_store':
../../i386/isa/if_wl.c:2571: warning: `ip' might be used uninitialized in
this function
../../i386/isa/intr_machdep.c:80: warning: `AUTO_EOI_1' redefined
opt_auto_eoi.h:1: warning: this is the location of the previous definition
[ Should the LINT option be removed, or should the define here be
conditional? ]
../../i386/isa/pnp.c: In function `config_pnp_device':
../../i386/isa/pnp.c:425: warning: implicit declaration of function `INTREN'
../../i386/isa/pnp.c:343: warning: `name' might be used uninitialized in
this function
[ ??? ]
../../i386/isa/scd.c: In function `scd_probe':
../../i386/isa/scd.c:151: warning: can't inline call to `write_control'
../../i386/isa/scd.c:702: warning: called from here
[ See above ]
{ Some sound warnings were already reported tonight }
../../i386/isa/sound/gus_wave.c:64: warning: `MAX_GUS_PNP' redefined
../../i386/isa/sound/gus_wave.c:40: warning: this is the location of the
previous definition
[ Should I fix that? ]
../../i386/isa/sound/ad1848.c:60: warning: redundant redeclaration of
`mssdriver' in same scope
ioconf.h:48: warning: previous declaration of `mssdriver'
../../i386/isa/sound/ad1848.c:150: warning: redundant redeclaration of
`adintr' in same scope
ioconf.h:48: warning: previous declaration of `adintr'
[ Well? ]
../../i386/isa/sound/pas2_card.c:77: warning: no previous prototype for
`pas2_msg'
../../i386/isa/sound/pas2_card.c:135: warning: no previous prototype for
`config_pas_hw'
../../i386/isa/sound/pas2_card.c:276: warning: no previous prototype for
`detect_pas_hw'
[ ? ]
../../i386/isa/sound/pas2_mixer.c:73: warning: no previous prototype for
`mix_write'
../../i386/isa/sound/pas2_mixer.c:251: warning: no previous prototype for
`pas_mixer_ioctl'
../../i386/isa/sound/pas2_pcm.c:60: warning: no previous prototype for
`pcm_set_speed'
../../i386/isa/sound/pas2_pcm.c:119: warning: no previous prototype for
`pcm_set_channels'
../../i386/isa/sound/pas2_pcm.c:136: warning: no previous prototype for
`pcm_set_bits'
../../i386/isa/sound/sb_dsp.c:220: warning: no previous prototype for
`dsp_speaker'
../../i386/isa/sound/uart6850.c: In function `poll_uart6850':
../../i386/isa/sound/uart6850.c:113: `timeout_func_t' undeclared (first use
this function)
../../i386/isa/sound/uart6850.c:113: (Each undeclared identifier is
reported only once
../../i386/isa/sound/uart6850.c:113: for each function it appears in.)
../../i386/isa/sound/uart6850.c:113: parse error before `poll_uart6850'
*** Error code 1
Stop.
Enough for one day...
---
If Microsoft Built Cars:
Every time they repainted the lines on the road, you'd have to buy a new
car.
Sincerely Yours,
Simon Shapiro Atlas Telecom
Senior Architect 14355 SW Allen Blvd., Suite 130 Beaverton OR 97005
Shimon@i-Connect.Net Voice: 503.799.2313
help
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?XFMail.971104010703.Shimon>
