arm64: kernel: Fix kernel warning when nokaslr is passed to commandline
authorPavankumar Kondeti <quic_pkondeti@quicinc.com>
Wed, 12 Apr 2023 04:32:58 +0000 (10:02 +0530)
committerWill Deacon <will@kernel.org>
Fri, 14 Apr 2023 13:32:04 +0000 (14:32 +0100)
commita2a83eb40fbdeee3ed9c6fcc7bb015a2dd1a3e93
tree57f57c6c2da0d2021b3a30ba8970cbf2b4ad9f89
parentaf6c0bd59f4f3ad5daad2f7b777954b1954551d5
arm64: kernel: Fix kernel warning when nokaslr is passed to commandline

'Unknown kernel command line parameters "nokaslr", will be passed to
user space' message is noticed in the dmesg when nokaslr is passed to
the kernel commandline on ARM64 platform. This is because nokaslr param
is handled by early cpufeature detection infrastructure and the parameter
is never consumed by a kernel param handler. Fix this warning by
providing a dummy kernel param handler for nokaslr.

Signed-off-by: Pavankumar Kondeti <quic_pkondeti@quicinc.com>
Link: https://lore.kernel.org/r/20230412043258.397455-1-quic_pkondeti@quicinc.com
Signed-off-by: Will Deacon <will@kernel.org>
arch/arm64/kernel/idreg-override.c