Skip to content

Commit 10d89c0

Browse files
committed
module: drop unused module_writable_address()
jira LE-4694 Rebuild_History Non-Buildable kernel-6.12.0-55.43.1.el10_0 commit-author Mike Rapoport (Microsoft) <rppt@kernel.org> commit 602df37 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 (cherry picked from commit 602df37) Signed-off-by: Jonathan Maple <jmaple@ciq.com>
1 parent e0aba1c commit 10d89c0

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

include/linux/module.h

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -769,11 +769,6 @@ static inline bool is_livepatch_module(struct module *mod)
769769

770770
void set_module_sig_enforced(void);
771771

772-
static inline void *module_writable_address(struct module *mod, void *loc)
773-
{
774-
return loc;
775-
}
776-
777772
#else /* !CONFIG_MODULES... */
778773

779774
static inline struct module *__module_address(unsigned long addr)
@@ -881,11 +876,6 @@ static inline bool module_is_coming(struct module *mod)
881876
{
882877
return false;
883878
}
884-
885-
static inline void *module_writable_address(struct module *mod, void *loc)
886-
{
887-
return loc;
888-
}
889879
#endif /* CONFIG_MODULES */
890880

891881
#ifdef CONFIG_SYSFS

0 commit comments

Comments
 (0)