summaryrefslogtreecommitdiff
path: root/kernel/profile.c
diff options
context:
space:
mode:
authorFabian Frederick <fabf@skynet.be>2014-06-07 01:37:30 +0400
committerLinus Torvalds <torvalds@linux-foundation.org>2014-06-07 03:08:13 +0400
commitf3da64d1ea12ed6cfe18e6dedbc9739743e0b884 (patch)
treea1547a8321c4ddca30acf97b4db54997185fb799 /kernel/profile.c
parentaba871f1e9a8dad07d442913998cd679529f2784 (diff)
downloadlinux-f3da64d1ea12ed6cfe18e6dedbc9739743e0b884.tar.xz
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 <fabf@skynet.be> Cc: Paul Gortmaker <paul.gortmaker@windriver.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'kernel/profile.c')
-rw-r--r--kernel/profile.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/profile.c b/kernel/profile.c
index c1204e2af5b2..54bf5ba26420 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))) {