File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -6779,8 +6779,7 @@ void ftrace_release_mod(struct module *mod)
6779
6779
last_pg = & ftrace_pages_start ;
6780
6780
for (pg = ftrace_pages_start ; pg ; pg = * last_pg ) {
6781
6781
rec = & pg -> records [0 ];
6782
- if (within_module_core (rec -> ip , mod ) ||
6783
- within_module_init (rec -> ip , mod )) {
6782
+ if (within_module (rec -> ip , mod )) {
6784
6783
/*
6785
6784
* As core pages are first, the first
6786
6785
* page should never be a module page.
@@ -6852,8 +6851,7 @@ void ftrace_module_enable(struct module *mod)
6852
6851
* not part of this module, then skip this pg,
6853
6852
* which the "break" will do.
6854
6853
*/
6855
- if (!within_module_core (rec -> ip , mod ) &&
6856
- !within_module_init (rec -> ip , mod ))
6854
+ if (!within_module (rec -> ip , mod ))
6857
6855
break ;
6858
6856
6859
6857
/* Weak functions should still be ignored */
You can’t perform that action at this time.
0 commit comments