]> www.infradead.org Git - users/jedix/linux-maple.git/commit
arm64: pkeys: remove redundant WARN
authorJoey Gouly <joey.gouly@arm.com>
Tue, 10 Sep 2024 10:50:04 +0000 (11:50 +0100)
committerWill Deacon <will@kernel.org>
Tue, 10 Sep 2024 17:19:59 +0000 (18:19 +0100)
commit10166c23f41367b6aaebd403af86caab22466c22
treee8a640d75a4eecd8abb96d8af9353fe84281d2a4
parent6a428d63717add52bba4175a7fde54d1f9d166e0
arm64: pkeys: remove redundant WARN

FEAT_PAN3 is present if FEAT_S1POE is, this WARN() was to represent that.
However execute_only_pkey() is always called by mmap(), even on a CPU without
POE support.

Rather than making the WARN() conditional, just delete it.

Reported-by: Naresh Kamboju <naresh.kamboju@linaro.org>
Link: https://lore.kernel.org/linux-arm-kernel/CA+G9fYvarKEPN3u1Ogw2pcw4h6r3OMzg+5qJpYkAXRunAEF_0Q@mail.gmail.com/
Signed-off-by: Joey Gouly <joey.gouly@arm.com>
Cc: Will Deacon <will@kernel.org>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Link: https://lore.kernel.org/r/20240910105004.706981-1-joey.gouly@arm.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/include/asm/pkeys.h