lkml.org 
[lkml]   [2020]   [Jan]   [7]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] Init: fixed an error caused by using __initdata instead of __initconst
Date
From: Carlos Guerrero Alvarez <carlosteniswarrior@gmail.com>

Fixed an error.

Signed-off-by: Carlos Guerrero Alvarez <carlosteniswarrior@gmail.com>
---
init/main.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/init/main.c b/init/main.c
index 2cd736059416..bcf8aa4f7cab 100644
--- a/init/main.c
+++ b/init/main.c
@@ -979,7 +979,7 @@ static initcall_entry_t *initcall_levels[] __initdata = {
};

/* Keep these in sync with initcalls in include/linux/init.h */
-static const char *initcall_level_names[] __initdata = {
+static const char *initcall_level_names[] __initconst = {
"pure",
"core",
"postcore",
--
2.24.0
\
 
 \ /
  Last update: 2020-01-07 19:54    [W:0.038 / U:1.252 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site