projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aba871f
)
kernel/profile.c: use static const char instead of static char
author
Fabian Frederick
<
[email protected]
>
Fri, 6 Jun 2014 21:37:30 +0000
(14:37 -0700)
committer
Linus Torvalds
<
[email protected]
>
Fri, 6 Jun 2014 23:08:13 +0000
(16:08 -0700)
schedstr, sleepstr and kvmstr are only used in strcmp & strlen
Signed-off-by: Fabian Frederick <
[email protected]
>
Cc: Paul Gortmaker <
[email protected]
>
Signed-off-by: Andrew Morton <
[email protected]
>
Signed-off-by: Linus Torvalds <
[email protected]
>
kernel/profile.c
patch
|
blob
|
history
diff --git
a/kernel/profile.c
b/kernel/profile.c
index c1204e2af5b229659eeaa4c5c1c147177c687f3a..54bf5ba264205e11a4cbe6d46ee6330193c0fa8f 100644
(file)
--- 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 c
onst c
har schedstr[] = "schedule";
+ static c
onst c
har sleepstr[] = "sleep";
+ static c
onst c
har kvmstr[] = "kvm";
int par;
if (!strncmp(str, sleepstr, strlen(sleepstr))) {