arm64: kaslr: Refactor early init command line parsing
authorTyler Hicks <tyhicks@linux.microsoft.com>
Mon, 21 Sep 2020 19:15:56 +0000 (14:15 -0500)
committerCatalin Marinas <catalin.marinas@arm.com>
Fri, 27 Nov 2020 18:38:55 +0000 (18:38 +0000)
commit52ec03f75d599d5bc240422bac8574724a319bec
tree57171f354dd04de9d889119cb2b69368f712480d
parentf8394f232b1eab649ce2df5c5f15b0e528c92091
arm64: kaslr: Refactor early init command line parsing

Don't ask for *the* command line string to search for "nokaslr" in
kaslr_early_init(). Instead, tell a helper function to search all the
appropriate command line strings for "nokaslr" and return the result.

This paves the way for searching multiple command line strings without
having to concatenate the strings in early init.

Signed-off-by: Tyler Hicks <tyhicks@linux.microsoft.com>
Link: https://lore.kernel.org/r/20200921191557.350256-2-tyhicks@linux.microsoft.com
Signed-off-by: Catalin Marinas <catalin.marinas@arm.com>
arch/arm64/kernel/kaslr.c