On Tue, Mar 18, 2025 at 01:47:04PM +0100, Jiri Pirko wrote:
quoted hunk ↗ jump to hunk
--- a/include/linux/module.h
+++ b/include/linux/module.h
@@ -744,7 +744,7 @@ static inline void __module_get(struct module *module)
/* This is a #define so the string doesn't get put in every .o file */
#define module_name(mod) \
({ \
- struct module *__mod = (mod); \
+ const struct module *__mod = (mod); \
__mod ? __mod->name : "kernel"; \
})
This feels like it should be a separate change, right? Doesn't have to
do with this patch.
greg k-h