diff options
author | John Baldwin <jhb@FreeBSD.org> | 2022-04-13 23:08:23 +0000 |
---|---|---|
committer | John Baldwin <jhb@FreeBSD.org> | 2022-04-13 23:08:23 +0000 |
commit | 8bf0d2d3e39a728440f6a41cb9f5855f32c6e21b (patch) | |
tree | 6fc9c71197f33dfb3753bfee2915fda402284c9d | |
parent | 216536350af0c3d2f4a99807f461b099a091f835 (diff) |
arm64 rk_pcie: Use __diagused for a variable only used in KASSERT().
-rw-r--r-- | sys/arm64/rockchip/rk_pcie.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/arm64/rockchip/rk_pcie.c b/sys/arm64/rockchip/rk_pcie.c index dabd7931e442..b9dc640efb8b 100644 --- a/sys/arm64/rockchip/rk_pcie.c +++ b/sys/arm64/rockchip/rk_pcie.c @@ -336,7 +336,7 @@ rk_pcie_map_out_atu(struct rk_pcie_softc *sc, int idx, int type, int num_bits, uint64_t pa) { uint32_t addr0; - uint64_t max_size; + uint64_t max_size __diagused; /* Check HW constrains */ max_size = idx == 0 ? ATU_OB_REGION_0_SIZE: ATU_OB_REGION_SIZE; |