arm64: sve: Fix build failure when ARM64_SVE=y and SYSCTL=n
authorWill Deacon <will@kernel.org>
Tue, 16 Jun 2020 17:29:11 +0000 (18:29 +0100)
committerWill Deacon <will@kernel.org>
Tue, 16 Jun 2020 17:29:11 +0000 (18:29 +0100)
commite575fb9e76c8e33440fb859572a8b7d430f053d6
treeb856d4ada1faa86a460d946e8b1aed90d9c382d4
parent034aa9cd698e315c767af1bac3fd1ff8898d2cd7
arm64: sve: Fix build failure when ARM64_SVE=y and SYSCTL=n

When I squashed the 'allnoconfig' compiler warning about the
set_sve_default_vl() function being defined but not used in commit
1e570f512cbd ("arm64/sve: Eliminate data races on sve_default_vl"), I
accidentally broke the build for configs where ARM64_SVE is enabled, but
SYSCTL is not.

Fix this by only compiling the SVE sysctl support if both CONFIG_SVE=y
and CONFIG_SYSCTL=y.

Cc: Dave Martin <Dave.Martin@arm.com>
Reported-by: Qian Cai <cai@lca.pw>
Link: https://lore.kernel.org/r/20200616131808.GA1040@lca.pw
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/fpsimd.c