]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ACPI: bus: change the prototype for acpi_get_physical_device_location
authorRicardo Ribalda <ribalda@chromium.org>
Mon, 16 Dec 2024 21:17:15 +0000 (21:17 +0000)
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>
Thu, 19 Dec 2024 19:59:35 +0000 (20:59 +0100)
commit79f237bae910e1019f1f7617d7b0b900f717d209
tree608905030a7c703b4c537acb08312106bda1278a
parent7349678b84552d15866c1a118535663e9dbb6768
ACPI: bus: change the prototype for acpi_get_physical_device_location

It generally is not OK to use acpi_status and/or AE_ error codes
without CONFIG_ACPI and they really only should be used in
drivers/acpi/ (and not everywhere in there for that matter).

So acpi_get_physical_device_location() needs to be redefined to return
something different from acpi_status (preferably bool) in order to be
used in !CONFIG_ACPI code.

Suggested-by: Rafael J. Wysocki <rafael@kernel.org>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Link: https://patch.msgid.link/20241216-fix-ipu-v5-1-3d6b35ddce7b@chromium.org
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
drivers/acpi/mipi-disco-img.c
drivers/acpi/scan.c
drivers/acpi/utils.c
drivers/base/physical_location.c
drivers/media/pci/intel/ipu-bridge.c
drivers/usb/core/usb-acpi.c
include/acpi/acpi_bus.h