diff options
| author | Rafael J. Wysocki <[email protected]> | 2023-12-08 21:34:58 +0100 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2023-12-08 21:34:58 +0100 |
| commit | 3814876467e7557ccb1eecc28cf7f68d029f445e (patch) | |
| tree | 9955c500b9bd0aadc6bd97129aea19c6dd066e7d /include/linux | |
| parent | 8f0b960a42badda7a2781e8a33564624200debc9 (diff) | |
| parent | 38dd7b72ef8046a3009ef384b711d4509de3d427 (diff) | |
Merge back earlier acpi-utils material for v6.8.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/acpi.h | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/include/linux/acpi.h b/include/linux/acpi.h index 4db54e928b36..75274585656c 100644 --- a/include/linux/acpi.h +++ b/include/linux/acpi.h @@ -756,6 +756,10 @@ const char *acpi_get_subsystem_id(acpi_handle handle); #define ACPI_HANDLE(dev) (NULL) #define ACPI_HANDLE_FWNODE(fwnode) (NULL) +/* Get rid of the -Wunused-variable for adev */ +#define acpi_dev_uid_match(adev, uid2) (adev && false) +#define acpi_dev_hid_uid_match(adev, hid2, uid2) (adev && false) + #include <acpi/acpi_numa.h> struct fwnode_handle; @@ -772,17 +776,6 @@ static inline bool acpi_dev_present(const char *hid, const char *uid, s64 hrv) struct acpi_device; -static inline bool acpi_dev_uid_match(struct acpi_device *adev, const char *uid2) -{ - return false; -} - -static inline bool -acpi_dev_hid_uid_match(struct acpi_device *adev, const char *hid2, const char *uid2) -{ - return false; -} - static inline int acpi_dev_uid_to_integer(struct acpi_device *adev, u64 *integer) { return -ENODEV; |