Re: [PATCH net-next] net: remove unnecessary module_init/exit functions

From
Andrew Lunn <andrew@lunn.ch>
Date
2026-02-02 20:29:13
Also in
linux-can, linux-wireless
Reply to
Ethan Nelson-Moore, 2026-01-31
On Fri, Jan 30, 2026 at 04:42:56PM -0800, Ethan Nelson-Moore wrote:
Many network drivers have unnecessary empty module_init and module_exit
functions. Remove them (including some that just print a message). Note
that if a module_init function exists, a module_exit function must also
exist; otherwise, the module cannot be unloaded.
I could be missing it, but which module does not have an module_exit
function?

I ask, because maybe the author does not want to allow the module to
be unloaded. We should look at the history of that module.

   Andrew
Thread (11 messages) 11 messages, 8 authors, last reply 2026-02-03
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