[PATCH] ACPI: Add stub for acpi_find_child_device()
Provide a NULL-returning stub when CONFIG_ACPI is disabled so callers can be compiled without ACPI support. Reported-by: Arnd Bergmann <arnd@arndb.de> Closes: https://lore.kernel.org/linux-sound/20260925131104.118993-1-arnd@kernel.org/ Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> --- Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Cc: Bard Liao <yung-chuan.liao@linux.intel.com> Cc: Daniel Baluta <daniel.baluta@nxp.com> Cc: Mark Brown <broonie@kernel.org> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.com> Cc: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev> Cc: sound-open-firmware@alsa-project.org --- include/linux/acpi.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/linux/acpi.h b/include/linux/acpi.h index ddacac8120947..710f38193d44c 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -843,6 +843,7 @@ extern bool cmos_rtc_platform_device_present; #define ACPI_COMPANION_SET(dev, adev) do { } while (0) #define ACPI_HANDLE(dev) (NULL) #define ACPI_HANDLE_FWNODE(fwnode) (NULL) +#define acpi_find_child_device(...) (NULL) /* Get rid of the -Wunused-variable for adev */ #define acpi_dev_uid_match(adev, uid2) (adev && false) -- 2.43.0
On Fri, Sep 25, 2026 at 3:20 PM Mario Limonciello <mario.limonciello@amd.com> wrote:
Provide a NULL-returning stub when CONFIG_ACPI is disabled so callers can be compiled without ACPI support.
Reported-by: Arnd Bergmann <arnd@arndb.de> Closes: https://lore.kernel.org/linux-sound/20260925131104.118993-1-arnd@kernel.org/ Suggested-by: Arnd Bergmann <arnd@arndb.de> Signed-off-by: Mario Limonciello <mario.limonciello@amd.com> --- Cc: Liam Girdwood <lgirdwood@gmail.com> Cc: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Cc: Bard Liao <yung-chuan.liao@linux.intel.com> Cc: Daniel Baluta <daniel.baluta@nxp.com> Cc: Mark Brown <broonie@kernel.org> Cc: Jaroslav Kysela <perex@perex.cz> Cc: Takashi Iwai <tiwai@suse.com> Cc: Vijendar Mukunda <Vijendar.Mukunda@amd.com> Cc: Kai Vehmanen <kai.vehmanen@linux.intel.com> Cc: Pierre-Louis Bossart <pierre-louis.bossart@linux.dev> Cc: sound-open-firmware@alsa-project.org --- include/linux/acpi.h | 1 + 1 file changed, 1 insertion(+)
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index ddacac8120947..710f38193d44c 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -843,6 +843,7 @@ extern bool cmos_rtc_platform_device_present; #define ACPI_COMPANION_SET(dev, adev) do { } while (0) #define ACPI_HANDLE(dev) (NULL) #define ACPI_HANDLE_FWNODE(fwnode) (NULL) +#define acpi_find_child_device(...) (NULL)
Can you please add it to acpi/acpi_bus.h, on top of the current linux-next? The function is originally declared in that file.
/* Get rid of the -Wunused-variable for adev */ #define acpi_dev_uid_match(adev, uid2) (adev && false) --
participants (2)
-
Mario Limonciello -
Rafael J. Wysocki (Intel)