Skip to contentSkip to conversation

acpi/pm-op: make do_pm_op() decl available in pm-op.c

PATCH In review Jan Beulich 2 participants 3 messages Jul 9, 2025

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 acpi/pm-op: make do_pm_op() decl available in pm-op.c

This addresses a Misra rule 8.4 ("A compatible declaration shall be visible when an object or function with external linkage is defined") violation.

Fixes a16f2b3e0669 ("xen/pmstat: introduce CONFIG_PM_OP")
xen/drivers/acpi/pm-op.c +1 -0
@@ -5,6 +5,7 @@
 #include <xen/errno.h>
 #include <xen/guest_access.h>
 #include <xen/lib.h>
+#include <xen/pmstat.h>
 #include <xen/sched.h>
 
 #include <acpi/cpufreq/cpufreq.h>
Reviewed-by on v1 1/1
#1 lore raw
Quoted 7 lines · Jan Beulich

This addresses a Misra rule 8.4 ("A compatible declaration shall be visible when an object or function with external linkage is defined") violation.

Fixes a16f2b3e0669 ("xen/pmstat: introduce CONFIG_PM_OP")

Perhaps a comment with the offending function would have been helpful (do_pm_op).

Quoted 10 lines
xen/drivers/acpi/pm-op.c +1 -0
@@ -5,6 +5,7 @@
 #include <xen/errno.h>
 #include <xen/guest_access.h>
 #include <xen/lib.h>
+#include <xen/pmstat.h>
 #include <xen/sched.h>
 
 #include <acpi/cpufreq/cpufreq.h>
Signature · 4 lines
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253
#2 lore raw
Quoted 5 lines · Nicola Vetrini
Quoted 4 lines · Jan Beulich

This addresses a Misra rule 8.4 ("A compatible declaration shall be visible when an object or function with external linkage is defined") violation.

Quoted 9 lines
Quoted 3 lines
Fixes a16f2b3e0669 ("xen/pmstat: introduce CONFIG_PM_OP")

Perhaps a comment with the offending function would have been helpful (do_pm_op).

Oh, nevermind, I misread the patch title.

Quoted 10 lines
Quoted 10 lines
xen/drivers/acpi/pm-op.c +1 -0
@@ -5,6 +5,7 @@
 #include <xen/errno.h>
 #include <xen/guest_access.h>
 #include <xen/lib.h>
+#include <xen/pmstat.h>
 #include <xen/sched.h>
 
 #include <acpi/cpufreq/cpufreq.h>
Signature · 4 lines
Nicola Vetrini, B.Sc.
Software Engineer
BUGSENG (https://bugseng.com)
LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253