aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/broadcom/bcm2835
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:22 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:22 +0000
commit69c595ed7f492dce8274fde6ed1cc3301a6ddb3c (patch)
tree8d1c5461fbb8c24f3911c0657d6b08bbef9dcce9 /sys/arm/broadcom/bcm2835
parente4746e3fe4b22c27efffaafd7b3832c7105f5c26 (diff)
downloadsrc-69c595ed7f492dce8274fde6ed1cc3301a6ddb3c.tar.gz
src-69c595ed7f492dce8274fde6ed1cc3301a6ddb3c.zip
arm: Use __diagused for variables only used in KASSERT().
Diffstat (limited to 'sys/arm/broadcom/bcm2835')
-rw-r--r--sys/arm/broadcom/bcm2835/bcm2835_sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
index 8225abcb624c..1ff7a2d189ba 100644
--- a/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
+++ b/sys/arm/broadcom/bcm2835/bcm2835_sdhci.c
@@ -577,7 +577,7 @@ bcm_sdhci_start_dma_seg(struct bcm_sdhci_softc *sc)
{
struct sdhci_slot *slot;
vm_paddr_t pdst, psrc;
- int err, idx, len, sync_op, width;
+ int err __diagused, idx, len, sync_op, width;
slot = &sc->sc_slot;
mtx_assert(&slot->mtx, MA_OWNED);