aboutsummaryrefslogtreecommitdiff
path: root/sys/arm64/rockchip/rk_pcie.c
diff options
context:
space:
mode:
authorJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:23 +0000
committerJohn Baldwin <jhb@FreeBSD.org>2022-04-13 23:08:23 +0000
commit8bf0d2d3e39a728440f6a41cb9f5855f32c6e21b (patch)
tree6fc9c71197f33dfb3753bfee2915fda402284c9d /sys/arm64/rockchip/rk_pcie.c
parent216536350af0c3d2f4a99807f461b099a091f835 (diff)
downloadsrc-8bf0d2d3e39a728440f6a41cb9f5855f32c6e21b.tar.gz
src-8bf0d2d3e39a728440f6a41cb9f5855f32c6e21b.zip
arm64 rk_pcie: Use __diagused for a variable only used in KASSERT().
Diffstat (limited to 'sys/arm64/rockchip/rk_pcie.c')
-rw-r--r--sys/arm64/rockchip/rk_pcie.c2
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;