Skip to contentSkip to conversation

ACPICA: Update the format of Arg3 of _DSM

PATCH New Rafael J. Wysocki 1 participant 1 message Mar 17

Subsystems (2)
lore
Share & tools
lore

Rafael J. Wysocki

author maintainer
#0 lore raw

PATCH 1/1 ACPICA: Update the format of Arg3 of _DSM

From: Saket Dumbre <[email protected]>

To get rid of type incompatibility warnings in Linux.

Fixes 81f92cff6d42 ("ACPICA: ACPI_TYPE_ANY does not include the package type")
---
 drivers/acpi/acpica/acpredef.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/acpi/acpica/acpredef.h +1 -1
index 6c9b5bf7d392..07d5790d09f8 100644
@@ -451,7 +451,7 @@ const union acpi_predefined_info acpi_gbl_predefined_methods[] = {
 
 	{{"_DSM",
 	  METHOD_4ARGS(ACPI_TYPE_BUFFER, ACPI_TYPE_INTEGER, ACPI_TYPE_INTEGER,
-		       ACPI_TYPE_ANY | ACPI_TYPE_PACKAGE) |
+		       ACPI_TYPE_PACKAGE | ACPI_TYPE_ANY) |
 		       ARG_COUNT_IS_MINIMUM,
 	  METHOD_RETURNS(ACPI_RTYPE_ALL)}},	/* Must return a value, but it can be of any type */
 
Signature · 1 line
2.51.0