Skip to contentSkip to conversation

ACPI: adjust decl of acpi_set_pdc_bits()

PATCH In review Jan Beulich 2 participants 2 messages Jun 11, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ACPI: adjust decl of acpi_set_pdc_bits()

The commit referenced below changed the type of the first parameter. Misra C:2012 Rule 8.3 requires the declaration to follow suit.

Fixes bf0cd071db2a ("xen/pmstat: consolidate code into pmstat.c")
xen/include/xen/acpi.h +1 -1
@@ -186,7 +186,7 @@ static inline void acpi_set_csubstate_li
 #endif
 
 #ifdef XEN_GUEST_HANDLE
-int acpi_set_pdc_bits(uint32_t acpi_id, XEN_GUEST_HANDLE(uint32));
+int acpi_set_pdc_bits(unsigned int acpi_id, XEN_GUEST_HANDLE(uint32));
 #endif
 int arch_acpi_set_pdc_bits(u32 acpi_id, u32 *, u32 mask);
 
Reviewed-by on v1 1/1
#1 lore raw
Quoted 6 lines · Jan Beulich

The commit referenced below changed the type of the first parameter. Misra C:2012 Rule 8.3 requires the declaration to follow suit.

Fixes bf0cd071db2a ("xen/pmstat: consolidate code into pmstat.c")
Quoted 10 lines
xen/include/xen/acpi.h +1 -1
@@ -186,7 +186,7 @@ static inline void acpi_set_csubstate_li
 #endif
 
 #ifdef XEN_GUEST_HANDLE
-int acpi_set_pdc_bits(uint32_t acpi_id, XEN_GUEST_HANDLE(uint32));
+int acpi_set_pdc_bits(unsigned int acpi_id, XEN_GUEST_HANDLE(uint32));
 #endif
 int arch_acpi_set_pdc_bits(u32 acpi_id, u32 *, u32 mask);
Signature · 4 lines
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253