acpi/pm-op: make do_pm_op() decl available in pm-op.c
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")
Signed-off-by Jan Beulich <[email protected]>
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>
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")Signed-off-by Jan Beulich <[email protected]>
Reviewed-by Nicola Vetrini <[email protected]>
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
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")Signed-off-by Jan Beulich <[email protected]>Reviewed-by Nicola Vetrini <[email protected]>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