• Huacai Chen's avatar
    LoongArch: Silence the boot warning about 'nokaslr' · 902d75cd
    Huacai Chen authored
    The kernel parameter 'nokaslr' is handled before start_kernel(), so we
    don't need early_param() to mark it technically. But it can cause a boot
    warning as follows:
    
    Unknown kernel command line parameters "nokaslr", will be passed to user space.
    
    When we use 'init=/bin/bash', 'nokaslr' which passed to user space will
    even cause a kernel panic. So we use early_param() to mark 'nokaslr',
    simply print a notice and silence the boot warning (also fix a potential
    panic). This logic is similar to RISC-V.
    Signed-off-by: default avatarHuacai Chen <chenhuacai@loongson.cn>
    902d75cd
relocate.c 6.17 KB