]> www.infradead.org Git - linux.git/commitdiff
module: drop unused module_writable_address()
authorMike Rapoport (Microsoft) <rppt@kernel.org>
Sun, 26 Jan 2025 07:47:32 +0000 (09:47 +0200)
committerPeter Zijlstra <peterz@infradead.org>
Mon, 3 Feb 2025 10:46:03 +0000 (11:46 +0100)
module_writable_address() is unused and can be removed.

Signed-off-by: "Mike Rapoport (Microsoft)" <rppt@kernel.org>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Link: https://lore.kernel.org/r/20250126074733.1384926-9-rppt@kernel.org
include/linux/module.h

index ddf27ede7c91d06362d8b91c0044698fb0dfc702..a76928c93692f53a78dbcc2462fdbec96d5138b2 100644 (file)
@@ -768,11 +768,6 @@ static inline bool is_livepatch_module(struct module *mod)
 
 void set_module_sig_enforced(void);
 
-static inline void *module_writable_address(struct module *mod, void *loc)
-{
-       return loc;
-}
-
 #else /* !CONFIG_MODULES... */
 
 static inline struct module *__module_address(unsigned long addr)
@@ -880,11 +875,6 @@ static inline bool module_is_coming(struct module *mod)
 {
        return false;
 }
-
-static inline void *module_writable_address(struct module *mod, void *loc)
-{
-       return loc;
-}
 #endif /* CONFIG_MODULES */
 
 #ifdef CONFIG_SYSFS