ACPI: adjust decl of acpi_set_pdc_bits()
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")
Signed-off-by Jan Beulich <[email protected]>
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);
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")Signed-off-by Jan Beulich <[email protected]>
Reviewed-by Nicola Vetrini <[email protected]>
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