Re: [PATCH 1/2] mcb: Add missing modpost build support

From: Andy Shevchenko

Date: Thu Nov 27 2025 - 11:11:10 EST


On Thu, Nov 27, 2025 at 5:56 PM Jose Javier Rodriguez Barbarin
<dev-josejavier.rodriguez@xxxxxxxxxx> wrote:
>
> mcb bus is not prepared to autoload client drivers with the data defined on
> the drivers' MODULE_DEVICE_TABLE. modpost cannot access to mcb_table_id
> inside MODULE_DEVICE_TABLE so the data declared inside is ignored.
>
> Add modpost build support for accessing to the mcb_table_id coded on device
> drivers' MODULE_DEVICE_TABLE.

...

> static const struct devtable devtable[] = {

> {"cpu", SIZE_cpu_feature, do_cpu_entry},
> {"mei", SIZE_mei_cl_device_id, do_mei_entry},
> {"rapidio", SIZE_rio_device_id, do_rio_entry},
> + {"mcb", SIZE_mcb_device_id, do_mcb_entry},

Perhaps squeeze it to be more ordered (yes, I know that the table is
not so ordered, but given context suggests to put it after "mei").

> {"ulpi", SIZE_ulpi_device_id, do_ulpi_entry},
> {"hdaudio", SIZE_hda_device_id, do_hda_entry},
> {"sdw", SIZE_sdw_device_id, do_sdw_entry},



--
With Best Regards,
Andy Shevchenko