[PATCH v2 0/3] Remove obsolete __MODULE_STRING()

From: Petr Pavlu

Date: Fri Oct 02 2026 - 04:36:56 EST


__MODULE_STRING() has been an alias for __stringify() since "[PATCH]
MODULE_PARM support for older modules" [1] in 2002-12. That change also
moved it to the graveyard section at the end of linux/module.h

Replace the remaining uses of __MODULE_STRING() with __stringify() and
remove the macro.

Apologies for the wide distribution. Acked-bys are appreciated.

[1] https://git.kernel.org/tglx/history/c/136839a1b4

---
Changes in v2:
- Rebase on top of next-20260930.
- Drop 'watchdog: Replace __MODULE_STRING() with __stringify()' since it
has already been queued on watchdog-next.
- Split the hwmon changes into a separate patch.
- Link to v1: https://patch.msgid.link/20260922-module-string-v1-0-c18766690185@xxxxxxxx

---
Petr Pavlu (3):
hwmon: Replace __MODULE_STRING() with __stringify()
drivers: Replace __MODULE_STRING() with __stringify()
module: Remove obsolete __MODULE_STRING()

drivers/comedi/comedi_fops.c | 5 +++--
drivers/gpu/drm/drm_fb_helper.c | 3 ++-
drivers/hwmon/fschmd.c | 3 ++-
drivers/hwmon/nct7904.c | 5 +++--
drivers/hwmon/sch56xx-common.c | 3 ++-
drivers/hwmon/w83793.c | 5 +++--
drivers/i2c/busses/i2c-kempld.c | 3 ++-
drivers/net/ethernet/atheros/atl1e/atl1e_param.c | 9 +++++----
drivers/net/ethernet/atheros/atlx/atl1.c | 3 ++-
drivers/net/ethernet/atheros/atlx/atl2.c | 11 ++++++-----
drivers/net/ethernet/intel/e1000/e1000_param.c | 15 ++++++++-------
drivers/net/ethernet/intel/e1000e/param.c | 16 ++++++----------
drivers/net/ethernet/oki-semi/pch_gbe/pch_gbe_param.c | 7 ++++---
drivers/platform/cznic/turris-omnia-mcu-watchdog.c | 3 ++-
drivers/rtc/rtc-ds1374.c | 3 ++-
drivers/thunderbolt/tb.c | 3 ++-
drivers/thunderbolt/tunnel.c | 5 +++--
drivers/tty/serial/8250/8250_platform.c | 3 ++-
drivers/usb/atm/speedtch.c | 15 ++++++++-------
drivers/usb/atm/usbatm.c | 17 +++++++++--------
include/linux/module.h | 4 ----
21 files changed, 76 insertions(+), 65 deletions(-)
---
base-commit: 6c2cb8b8b843d216ab549b678a0d8831c43153e0
change-id: 20260919-module-string-d64816f203d9