[Bug 222255] RPI random number generator breaks kernel build when BCM2835_RNG_USE_CALLOUT is set
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Tue Sep 12 12:48:06 UTC 2017
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=222255
Bug ID: 222255
Summary: RPI random number generator breaks kernel build when
BCM2835_RNG_USE_CALLOUT is set
Product: Base System
Version: CURRENT
Hardware: arm
OS: Any
Status: New
Severity: Affects Only Me
Priority: ---
Component: kern
Assignee: freebsd-bugs at FreeBSD.org
Reporter: sylvain at sylvaingarrigues.com
/usr/src/sys/arm/broadcom/bcm2835/bcm2835_rng.c:323:2: error: incompatible
pointer types passing 'void (struct bcm2835_rng_softc *)' to parameter of type
'void (*)(void *)' [-Werror,-Wincompatible-pointer-types]
^
/usr/src/sys/arm/broadcom/bcm2835/bcm2835_rng.c:476:2: error: incompatible
pointer types passing 'void (struct bcm2835_rng_softc *)' to parameter of type
'void (*)(void *)' [-Werror,-Wincompatible-pointer-types]
Things work when we use a cast:
callout_reset(&sc->sc_rngto, sc->sc_rnghz, bcm2835_rng_harvest, sc);
==>
callout_reset(&sc->sc_rngto, sc->sc_rnghz, (void (*)(void
*))bcm2835_rng_harvest, sc);
--
You are receiving this mail because:
You are the assignee for the bug.
More information about the freebsd-bugs
mailing list