From: Fabian Frederick Date: Fri, 6 Jun 2014 21:37:30 +0000 (-0700) Subject: kernel/profile.c: use static const char instead of static char X-Git-Tag: v4.9.8~6305^2~4^2~67 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=f3da64d1ea12ed6cfe18e6dedbc9739743e0b884;p=platform%2Fkernel%2Flinux-rpi3.git kernel/profile.c: use static const char instead of static char schedstr, sleepstr and kvmstr are only used in strcmp & strlen Signed-off-by: Fabian Frederick Cc: Paul Gortmaker Signed-off-by: Andrew Morton Signed-off-by: Linus Torvalds --- diff --git a/kernel/profile.c b/kernel/profile.c index c1204e2..54bf5ba 100644 --- a/kernel/profile.c +++ b/kernel/profile.c @@ -52,9 +52,9 @@ static DEFINE_MUTEX(profile_flip_mutex); int profile_setup(char *str) { - static char schedstr[] = "schedule"; - static char sleepstr[] = "sleep"; - static char kvmstr[] = "kvm"; + static const char schedstr[] = "schedule"; + static const char sleepstr[] = "sleep"; + static const char kvmstr[] = "kvm"; int par; if (!strncmp(str, sleepstr, strlen(sleepstr))) {