x86: address Misra C:2012 rule 8.4
PATCH 1/1 x86: address Misra C:2012 rule 8.4
... ("A compatible declaration shall be visible when an object or function with external linkage is defined"). Three variables lack asmlinkage annotations.
Signed-off-by Jan Beulich <[email protected]>
---
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14351897188
(covering more than just this)
xen/arch/x86/guest/xen/pvh-boot.c +1 -1
@@ -22,7 +22,7 @@/* Initialised in head.S, before .bss is zeroed. */ bool __initdata pvh_boot; -uint32_t __initdata pvh_start_info_pa; +uint32_t asmlinkage __initdata pvh_start_info_pa;static multiboot_info_t __initdata pvh_mbi;static module_t __initdata pvh_mbi_mods[8 ];
xen/arch/x86/guest/xen/xen.c +1 -1
@@ -40,7 +40,7 @@ DEFINE_PER_CPU(struct vcpu_info *, vcpu_* 0 vmcall * > 0 vmmcall */ -int8_t __initdata early_hypercall_insn =-1 ; +int8_t asmlinkage __initdata early_hypercall_insn = -1;/* * Called once during the first hypercall to figure out which instruction to
xen/arch/x86/pv/hypercall.c +1 -1
@@ -180,7 +180,7 @@ void pv_ring1_init_hypercall_page(void * } } -void do_entry_int82 (struct cpu_user_regs *regs) +void asmlinkage do_entry_int82(struct cpu_user_regs *regs) {if (unlikely (untrusted_msi) )check_for_unexpected_msi ((uint8_t )regs->entry_vector);
Quoted 5 lines · Jan Beulich
... ("A compatible declaration shall be visible when an object or function with external linkage is defined"). Three variables lack asmlinkage annotations.
Signed-off-by Jan Beulich <[email protected]>
Reviewed-by Nicola Vetrini <[email protected]>
Quoted 38 lines
---
https://gitlab.com/xen-project/hardware/xen-staging/-/jobs/14351897188
(covering more than just this)xen/arch/x86/guest/xen/pvh-boot.c +1
-1@@ -22,7 +22,7 @@/* Initialised in head.S, before .bss is zeroed. */ bool __initdata pvh_boot; -uint32_t __initdata pvh_start_info_pa; +uint32_t asmlinkage __initdata pvh_start_info_pa;static multiboot_info_t __initdata pvh_mbi;static module_t __initdata pvh_mbi_mods[8 ];xen/arch/x86/guest/xen/xen.c +1
-1@@ -40,7 +40,7 @@ DEFINE_PER_CPU(struct vcpu_info *, vcpu_* 0 vmcall * > 0 vmmcall */ -int8_t __initdata early_hypercall_insn =-1 ; +int8_t asmlinkage __initdata early_hypercall_insn = -1;/* * Called once during the first hypercall to figure out which instruction to
xen/arch/x86/pv/hypercall.c +1
-1@@ -180,7 +180,7 @@ void pv_ring1_init_hypercall_page(void * } } -void do_entry_int82 (struct cpu_user_regs *regs) +void asmlinkage do_entry_int82(struct cpu_user_regs *regs) {if (unlikely (untrusted_msi) )check_for_unexpected_msi ((uint8_t )regs->entry_vector);
Signature · 4 lines
Nicola Vetrini, B.Sc. Software Engineer BUGSENG (https://bugseng.com) LinkedIn: https://www.linkedin.com/in/nicola-vetrini-a42471253