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

From
Jiri Pirko <jiri@resnulli.us>
Date
2025-03-18 14:19:47
Reply to
Greg KH, 2025-03-18
Tue, Mar 18, 2025 at 02:46:56PM +0100, gregkh@linuxfoundation.org wrote:
On Tue, Mar 18, 2025 at 01:47:04PM +0100, Jiri Pirko wrote:
quoted
--- 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.
True. Will split.
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