Skip to contentSkip to conversation

staging: init: main: fix sparse warning Fix sparse warning "should it be static"

PATCH New Matei Oprea 1 participant 1 message Jul 22, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: init: main: fix sparse warning Fix sparse warning "should it be static"

Cc ROSEdu Kernel Community <[email protected]>
---
 init/main.c |    3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
init/main.c +2 -1
index e8ae1fe..25cc270 100644
@@ -160,7 +160,8 @@ static int __init set_reset_devices(char *str)
 __setup("reset_devices", set_reset_devices);
 
 static const char * argv_init[MAX_INIT_ARGS+2] = { "init", NULL, };
-const char * envp_init[MAX_INIT_ENVS+2] = { "HOME=/", "TERM=linux", NULL, };
+static const char *envp_init[MAX_INIT_ENVS+2] = { "HOME=/",
+						  "TERM=linux", NULL, };
 static const char *panic_later, *panic_param;
 
 extern const struct obs_kernel_param __setup_start[], __setup_end[];
Signature · 1 line
1.7.10.4