Date: Tue, 12 Sep 2017 12:48:06 +0000 From: bugzilla-noreply@freebsd.org To: freebsd-bugs@FreeBSD.org Subject: [Bug 222255] RPI random number generator breaks kernel build when BCM2835_RNG_USE_CALLOUT is set Message-ID: <bug-222255-8@https.bugs.freebsd.org/bugzilla/>
next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D222255 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@FreeBSD.org Reporter: sylvain@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 t= ype 'void (*)(void *)' [-Werror,-Wincompatible-pointer-types]=20=20=20=20=20=20= =20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 ^=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20 /usr/src/sys/arm/broadcom/bcm2835/bcm2835_rng.c:476:2: error: incompatible pointer types passing 'void (struct bcm2835_rng_softc *)' to parameter of t= ype '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); =3D=3D> callout_reset(&sc->sc_rngto, sc->sc_rnghz, (void (*)(void *))bcm2835_rng_harvest, sc); --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-222255-8>