Re: Some kernel void functions do return a value

2011-10-18 Thread Rhialto
On Sun 16 Oct 2011 at 00:52:35 +0100, Mindaugas Rasiukevicius wrote: > David Young wrote: > > This isn't just a lint bug? At least two of these are instances of void > > functions returning the return "value" of a void function, for which > > the compiler need neither throw away a value nor creat

Re: Some kernel void functions do return a value

2011-10-15 Thread Mindaugas Rasiukevicius
David Young wrote: > This isn't just a lint bug? At least two of these are instances of void > functions returning the return "value" of a void function, for which > the compiler need neither throw away a value nor create one from whole > nothing. The compiler doesn't complain---should it? For

Re: Some kernel void functions do return a value

2011-10-15 Thread David Young
On Fri, Oct 14, 2011 at 03:23:05PM +0200, Nicolas Joly wrote: > > Hi, > > While linting the kernel amd64 GENERIC sources, i noted that some void > functions do return a value: > > /local/src/NetBSD/src/sys/arch/x86/x86/bus_dma.c(1321): void function > bus_dmamap_sync cannot return value [213] >

Re: Some kernel void functions do return a value

2011-10-15 Thread David Holland
On Fri, Oct 14, 2011 at 03:23:05PM +0200, Nicolas Joly wrote: > /local/src/NetBSD/src/sys/dev/ic/bwivar.h(773): void function > bwi_rf_lo_update cannot return value [213] > /local/src/NetBSD/src/sys/dev/pci/if_sip.c(1113): void function > sipcom_attach cannot return value [213] > /local/src/

Re: Some kernel void functions do return a value

2011-10-15 Thread Mindaugas Rasiukevicius
Nicolas Joly wrote: > [213] /local/src/NetBSD/src/sys/kern/subr_vmem.c(1070): void function > vmem_free cannot return value > [213] /local/src/NetBSD/src/sys/kern/subr_vmem.c(210): void function > xfree cannot return value [213] Fixed these. -- Mindaugas

Re: Some kernel void functions do return a value

2011-10-14 Thread Manuel Bouyer
On Fri, Oct 14, 2011 at 03:23:05PM +0200, Nicolas Joly wrote: > > Hi, > > While linting the kernel amd64 GENERIC sources, i noted that some void > functions do return a value: > > /local/src/NetBSD/src/sys/arch/x86/x86/bus_dma.c(1321): void function > bus_dmamap_sync cannot return value [213]

Some kernel void functions do return a value

2011-10-14 Thread Nicolas Joly
Hi, While linting the kernel amd64 GENERIC sources, i noted that some void functions do return a value: /local/src/NetBSD/src/sys/arch/x86/x86/bus_dma.c(1321): void function bus_dmamap_sync cannot return value [213] /local/src/NetBSD/src/sys/dev/ic/bwivar.h(773): void function bwi_rf_lo_update