File tree Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Expand file tree Collapse file tree 2 files changed +0
-15
lines changed Original file line number Diff line number Diff line change @@ -860,10 +860,8 @@ extern int module_sysfs_initialized;
860
860
861
861
#ifdef CONFIG_STRICT_MODULE_RWX
862
862
extern void module_enable_ro (const struct module * mod , bool after_init );
863
- extern void module_disable_ro (const struct module * mod );
864
863
#else
865
864
static inline void module_enable_ro (const struct module * mod , bool after_init ) { }
866
- static inline void module_disable_ro (const struct module * mod ) { }
867
865
#endif
868
866
869
867
#ifdef CONFIG_GENERIC_BUG
Original file line number Diff line number Diff line change @@ -1997,19 +1997,6 @@ static void frob_writable_data(const struct module_layout *layout,
1997
1997
(layout -> size - layout -> ro_after_init_size ) >> PAGE_SHIFT );
1998
1998
}
1999
1999
2000
- /* livepatching wants to disable read-only so it can frob module. */
2001
- void module_disable_ro (const struct module * mod )
2002
- {
2003
- if (!rodata_enabled )
2004
- return ;
2005
-
2006
- frob_text (& mod -> core_layout , set_memory_rw );
2007
- frob_rodata (& mod -> core_layout , set_memory_rw );
2008
- frob_ro_after_init (& mod -> core_layout , set_memory_rw );
2009
- frob_text (& mod -> init_layout , set_memory_rw );
2010
- frob_rodata (& mod -> init_layout , set_memory_rw );
2011
- }
2012
-
2013
2000
void module_enable_ro (const struct module * mod , bool after_init )
2014
2001
{
2015
2002
if (!rodata_enabled )
You can’t perform that action at this time.
0 commit comments