arm64/sve: Fix warnings when SVE is disabled
authorMark Brown <broonie@kernel.org>
Fri, 22 Oct 2021 14:16:35 +0000 (15:16 +0100)
committerWill Deacon <will@kernel.org>
Tue, 26 Oct 2021 09:15:46 +0000 (10:15 +0100)
commit04ee53a55543ddc16398391ac95e97e5c9436ba3
treed0fbdfa90a751e8fe03bbf783a6de5a0040bfc40
parent49ed920408f85fb143020cf7d95612b6b12a84a2
arm64/sve: Fix warnings when SVE is disabled

In configurations where SVE is disabled we define but never reference the
functions for retrieving the default vector length, causing warnings. Fix
this by move the ifdef up, marking get_default_vl() inline since it is
referenced from code guarded by an IS_ENABLED() check, and do the same for
the other accessors for consistency.

Reported-by: Catalin Marinas <catalin.marinas@arm.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20211022141635.2360415-3-broonie@kernel.org
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/fpsimd.c