projects
/
platform
/
kernel
/
linux-rpi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bc11ed
)
recordmcount: Remove redundant strcmp
author
Matt Helsley
<mhelsley@vmware.com>
Wed, 24 Jul 2019 21:04:55 +0000
(14:04 -0700)
committer
Steven Rostedt (VMware)
<rostedt@goodmis.org>
Sat, 31 Aug 2019 16:19:38 +0000
(12:19 -0400)
The strcmp is unnecessary since .text is already accepted as a
prefix in the strncmp().
Link:
http://lkml.kernel.org/r/358e590b49adbe4185e161a8b364e323f3d52857.1563992889.git.mhelsley@vmware.com
Signed-off-by: Matt Helsley <mhelsley@vmware.com>
Signed-off-by: Steven Rostedt (VMware) <rostedt@goodmis.org>
scripts/recordmcount.c
patch
|
blob
|
history
diff --git
a/scripts/recordmcount.c
b/scripts/recordmcount.c
index 8387a9bc064a59f35211420ab28afb5aeec750ef..ebe98c39f3cd5ae9b1e4dd2ccfcd48d93f9e1f37 100644
(file)
--- a/
scripts/recordmcount.c
+++ b/
scripts/recordmcount.c
@@
-405,8
+405,7
@@
is_mcounted_section_name(char const *const txtname)
strcmp(".irqentry.text", txtname) == 0 ||
strcmp(".softirqentry.text", txtname) == 0 ||
strcmp(".kprobes.text", txtname) == 0 ||
- strcmp(".cpuidle.text", txtname) == 0 ||
- strcmp(".text.unlikely", txtname) == 0;
+ strcmp(".cpuidle.text", txtname) == 0;
}
/* 32 bit and 64 bit are very similar */