Re: [PATCH net-next RFC 1/3] faux: extend the creation function for module namespace

From
Greg KH <gregkh@linuxfoundation.org>
Date
2025-03-18 13:48:14
Reply to
Jiri Pirko, 2025-03-18
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
Thread (18 messages) 18 messages, 4 authors, last reply 2025-03-19
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help