History

module: Make module_enable_ro() static again

Now that module_enable_ro() has no more external users, make it static again.

Josh Poimboeuf committed 6 years ago

Commit e6eff431 parent 5b384f92 files · +2 −7Browse files

Showing the changes to kernel (1 of 2 files). Show all

Unified · Split

kernel/module.c+2−1
@@ -1997,7 +1997,7 @@ static void frob_writable_data(const struct module_layout *layout, · 1996 unmodified lines
1997 (layout->size - layout->ro_after_init_size) >> PAGE_SHIFT);1997 (layout->size - layout->ro_after_init_size) >> PAGE_SHIFT);
1998}1998}
1999 1999
2000void module_enable_ro(const struct module *mod, bool after_init)2000static void module_enable_ro(const struct module *mod, bool after_init)
2001{2001{
2002 if (!rodata_enabled)2002 if (!rodata_enabled)
2003 return;2003 return;
@@ -2025,6 +2025,7 @@ static void module_enable_nx(const struct module *mod) · 21 unmodified lines
2025 2025
2026#else /* !CONFIG_STRICT_MODULE_RWX */2026#else /* !CONFIG_STRICT_MODULE_RWX */
2027static void module_enable_nx(const struct module *mod) { }2027static void module_enable_nx(const struct module *mod) { }
2028static void module_enable_ro(const struct module *mod, bool after_init) {}
2028#endif /* CONFIG_STRICT_MODULE_RWX */2029#endif /* CONFIG_STRICT_MODULE_RWX */
2029static void module_enable_x(const struct module *mod)2030static void module_enable_x(const struct module *mod)
2030{2031{

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