aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/c++/clang.cpp
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2021-10-22 15:16:35 +0100
committerWill Deacon <will@kernel.org>2021-10-26 10:15:46 +0100
commit04ee53a55543ddc16398391ac95e97e5c9436ba3 (patch)
treed0fbdfa90a751e8fe03bbf783a6de5a0040bfc40 /tools/perf/util/c++/clang.cpp
parent49ed920408f85fb143020cf7d95612b6b12a84a2 (diff)
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>
Diffstat (limited to 'tools/perf/util/c++/clang.cpp')
0 files changed, 0 insertions, 0 deletions