Re: [PATCH v3 1/2] ACPI: bus: export the acpi_bus_type symbol

From: Rafael J. Wysocki

Date: Mon Apr 27 2026 - 15:27:55 EST


On Mon, Apr 27, 2026 at 2:19 PM Bartosz Golaszewski
<bartosz.golaszewski@xxxxxxxxxxxxxxxx> wrote:
>
> In order to allow loadable modules to access the ACPI bus type struct,
> export the relevant symbol.
>
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@xxxxxxxxxxxxxxxx>
> ---
> drivers/acpi/bus.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/drivers/acpi/bus.c b/drivers/acpi/bus.c
> index 2ec095e2009e40b0645f654fb051429e5679dc7c..d4da76607905473de2e25e50352450c10f598784 100644
> --- a/drivers/acpi/bus.c
> +++ b/drivers/acpi/bus.c
> @@ -1174,6 +1174,7 @@ const struct bus_type acpi_bus_type = {
> .remove = acpi_device_remove,
> .uevent = acpi_device_uevent,
> };
> +EXPORT_SYMBOL_GPL(acpi_bus_type);

Not really (and I've already said that I think).

Please find a different way.

> int acpi_bus_for_each_dev(int (*fn)(struct device *, void *), void *data)
> {
>
> --