head r355027 fails to (non-debug) build for: sys/arm/broadcom/bcm2835/bcm2835_sdhci.c:721:26: error: unused variable 'sc
Mark Millard
marklmi at yahoo.com
Sat Nov 23 08:42:36 UTC 2019
--- bcm2835_sdhci.o ---
/usr/src/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c:721:26: error: unused variable 'sc' [-Werror,-Wunused-variable]
struct bcm_sdhci_softc *sc = device_get_softc(slot->bus);
^
1 error generated.
This is because the sc is only used in:
KASSERT(sc->dmamap_seg_count == 0,
("data pending interrupt pushed through SDHCI framework"));
and this was a non-debug build: so the KASSERT did not use sc either.
===
Mark Millard
marklmi at yahoo.com
( dsl-only.net went
away in early 2018-Mar)
More information about the freebsd-current
mailing list