summaryrefslogtreecommitdiff
path: root/include/linux/module.h
diff options
context:
space:
mode:
authorMike Rapoport (Microsoft) <rppt@kernel.org>2025-01-26 09:47:32 +0200
committerPeter Zijlstra <peterz@infradead.org>2025-02-03 11:46:03 +0100
commit602df3712979de594d268e8cbca46a93126c977d (patch)
tree10259e44c4b45ec74495613b692ed35597b036f3 /include/linux/module.h
parent1d7e707af446134dd272ea8a89018c63cc17bb6a (diff)
module: drop unused module_writable_address()
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
Diffstat (limited to 'include/linux/module.h')
-rw-r--r--include/linux/module.h10
1 files changed, 0 insertions, 10 deletions
diff --git a/include/linux/module.h b/include/linux/module.h
index ddf27ede7c91..a76928c93692 100644
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -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