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
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -405,8 +405,7 @@ is_mcounted_section_name(char const *const txtname) · 404 unmodified lines | ||
| 405 | 405 | strcmp(".irqentry.text", txtname) == 0 || |
| 406 | 406 | strcmp(".softirqentry.text", txtname) == 0 || |
| 407 | 407 | strcmp(".kprobes.text", txtname) == 0 || |
| 408 | − strcmp(".cpuidle.text", txtname) == 0 || | |
| 409 | − strcmp(".text.unlikely", txtname) == 0; | |
| 408 | + strcmp(".cpuidle.text", txtname) == 0; | |
| 410 | 409 | } |
| 411 | 410 | |
| 412 | 411 | /* 32 bit and 64 bit are very similar */ |