diff options
author | Fabian Frederick <fabf@skynet.be> | 2014-06-06 14:37:30 -0700 |
---|---|---|
committer | Linus Torvalds <torvalds@linux-foundation.org> | 2014-06-06 16:08:13 -0700 |
commit | f3da64d1ea12ed6cfe18e6dedbc9739743e0b884 (patch) | |
tree | a1547a8321c4ddca30acf97b4db54997185fb799 /kernel/profile.c | |
parent | aba871f1e9a8dad07d442913998cd679529f2784 (diff) | |
download | talos-op-linux-f3da64d1ea12ed6cfe18e6dedbc9739743e0b884.tar.gz talos-op-linux-f3da64d1ea12ed6cfe18e6dedbc9739743e0b884.zip |
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.c | 6 |
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))) { |