LoongArch: Silence the boot warning about 'nokaslr'
[platform/kernel/linux-starfive.git] / arch / loongarch / kernel / relocate.c
index 288b739..1acfa70 100644 (file)
@@ -102,6 +102,14 @@ static inline __init unsigned long get_random_boot(void)
        return hash;
 }
 
+static int __init nokaslr(char *p)
+{
+       pr_info("KASLR is disabled.\n");
+
+       return 0; /* Print a notice and silence the boot warning */
+}
+early_param("nokaslr", nokaslr);
+
 static inline __init bool kaslr_disabled(void)
 {
        char *str;