Skip to content

Commit e04efd3

Browse files
ribaldarafaeljw
authored andcommitted
ACPI: bus: implement for_each_acpi_dev_match when !ACPI
Provide an implementation of for_each_acpi_dev_match that can be used when CONFIG_ACPI is not set. The condition `false && hid && uid && hrv` is used to avoid "variable not used" warnings. Reviewed-by: Sakari Ailus <sakari.ailus@linux.intel.com> Acked-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org> Signed-off-by: Ricardo Ribalda <ribalda@chromium.org> Link: https://patch.msgid.link/20241216-fix-ipu-v5-2-3d6b35ddce7b@chromium.org Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
1 parent 79f237b commit e04efd3

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/acpi/acpi_bus.h

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1003,6 +1003,9 @@ static inline int unregister_acpi_bus_type(void *bus) { return 0; }
10031003

10041004
static inline int acpi_wait_for_acpi_ipmi(void) { return 0; }
10051005

1006+
#define for_each_acpi_dev_match(adev, hid, uid, hrv) \
1007+
for (adev = NULL; false && (hid) && (uid) && (hrv); )
1008+
10061009
#endif /* CONFIG_ACPI */
10071010

10081011
#endif /*__ACPI_BUS_H__*/

0 commit comments

Comments
 (0)