[PATCH v2 0/2] module: Tweak return and warning

From: Lucas De Marchi

Date: Mon Mar 30 2026 - 09:20:57 EST


Do not let userspace tools and end users confused on the return code and
log messages.

To: Luis Chamberlain <mcgrof@xxxxxxxxxx>
To: Daniel Gomez <da.gomez@xxxxxxxxxx>
To: Sami Tolvanen <samitolvanen@xxxxxxxxxx>
Cc: Greg Kroah-Hartman <gregkh@xxxxxxxxxxxxxxxxxxx>
Cc: Aaron Tomlin <atomlin@xxxxxxxxxxx>
Cc: Petr Pavlu <petr.pavlu@xxxxxxxx>
Cc: Daniel Gomez <da.gomez@xxxxxxxxxxx>
Cc: Phil Sutter <phil@xxxxxx>
Cc: Christophe Leroy <christophe.leroy@xxxxxxxxxx>
Cc: linux-modules@xxxxxxxxxxxxxxx
Cc: linux-kernel@xxxxxxxxxxxxxxx

XXX "from-thread": "20251013-module-warn-ret-v1-0-ab65b41af01f@xxxxxxxxx"

XXX "change-id": "20260324-module-warn-ret-7bde7d4851be",

---
Lucas De Marchi (2):
module: Override -EEXISTS module return
module: Simplify warning on positive returns from module_init()

kernel/module/main.c | 18 +++++++++++-------
1 file changed, 11 insertions(+), 7 deletions(-)
---
base-commit: c369299895a591d96745d6492d4888259b004a9e
change-id:

Best regards,
--
Lucas De Marchi <demarchi@xxxxxxxxxx>