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