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: [email protected]
Reporter: [email protected]
/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.
_______________________________________________
[email protected] mailing list
https://lists.freebsd.org/mailman/listinfo/freebsd-bugs
To unsubscribe, send any mail to "[email protected]"