lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20251201160720.28580-1-dev-josejavier.rodriguez@duagon.com>
Date: Mon, 1 Dec 2025 17:07:19 +0100
From: Jose Javier Rodriguez Barbarin <dev-josejavier.rodriguez@...gon.com>
To: andy@...nel.org,
	krzk@...nel.org,
	linus.walleij@...aro.org,
	nathan@...nel.org,
	nsc@...nel.org,
	gregkh@...uxfoundation.org,
	bleung@...omium.org,
	heikki.krogerus@...ux.intel.com,
	abhishekpandit@...omium.org,
	masahiroy@...nel.org,
	legion@...nel.org,
	hughd@...gle.com
CC: linux-kbuild@...r.kernel.org,
	linux-kernel@...r.kernel.org,
	Jose Javier Rodriguez Barbarin <dev-josejavier.rodriguez@...gon.com>
Subject: [PATCH v2 0/1] mcb: Add modpost support for processing MODULE_DEVICE_TABLE

During the process of update of one of the device drivers that are part of
mcb bus (gpio-menz127.c), Krzysztof from GPIO subsystem asked me
why I was adding new MODULE_ALIAS when I also added the same new
information on MODULE_DEVICE_TABLE.

You can find the messages here:

https://lore.kernel.org/linux-gpio/80a20b13-7c6a-4483-9741-568424f957ef@kernel.org/

After a deeper analysis, I came across that the mcb_table_id defined inside
MODULE_DEVICE_TABLE on all device drivers was being ignored as modpost was
not processing the mcb MODULE_DEVICE_TABLE entries. For this reason, former
contributors were using MODULE_ALIAS for enabling mcb to autoload the
device drivers.

My proposal with these changes is to complete the mcb bus by adding
modpost support for processing mcb MODULE_DEVICE_TABLE.

Once this patch is merged, I will send patches one by one for removing
MODULE_ALIAS from all device drivers as they are no longer needed
(as Andy Shevchenko suggested in v1 review).

---
Changes in v2:

- Place "mcb" before "mei" to follow the order.
- Send changes for mcb drivers in a per-driver basis.

Jose Javier Rodriguez Barbarin (1):
  mcb: Add missing modpost build support

 scripts/mod/devicetable-offsets.c | 3 +++
 scripts/mod/file2alias.c          | 9 +++++++++
 2 files changed, 12 insertions(+)

-- 
2.51.1

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ