aboutsummaryrefslogtreecommitdiffstats
path: root/lib/test_stackinit.c
diff options
context:
space:
mode:
authorMark Brown <[email protected]>2021-10-22 14:16:35 +0000
committerWill Deacon <[email protected]>2021-10-26 09:15:46 +0000
commit04ee53a55543ddc16398391ac95e97e5c9436ba3 (patch)
treed0fbdfa90a751e8fe03bbf783a6de5a0040bfc40 /lib/test_stackinit.c
parentarm64/sve: Add stub for sve_max_virtualisable_vl() (diff)
downloadkernel-04ee53a55543ddc16398391ac95e97e5c9436ba3.tar.gz
kernel-04ee53a55543ddc16398391ac95e97e5c9436ba3.zip
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 <[email protected]> Signed-off-by: Mark Brown <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Will Deacon <[email protected]>
Diffstat (limited to 'lib/test_stackinit.c')
0 files changed, 0 insertions, 0 deletions