History

recordmcount: Remove redundant strcmp

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

Matt Helsley committed 7 years ago

Commit 1bd95be1 parent 0bc11ed1 file · +1 −2Browse files

Showing the changes to scripts (1 of 1 file). Show all

Unified · Split

scripts/recordmcount.c+1−2
@@ -405,8 +405,7 @@ is_mcounted_section_name(char const *const txtname) · 404 unmodified lines
405405 strcmp(".irqentry.text", txtname) == 0 ||
406406 strcmp(".softirqentry.text", txtname) == 0 ||
407407 strcmp(".kprobes.text", txtname) == 0 ||
408− strcmp(".cpuidle.text", txtname) == 0 ||
409− strcmp(".text.unlikely", txtname) == 0;
408+ strcmp(".cpuidle.text", txtname) == 0;
410409 }
411410
412411 /* 32 bit and 64 bit are very similar */

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t