vm_event: fix MISRA C 2012 Rule 8.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Mon, 18 Jul 2022 15:55:42 +0000 (17:55 +0200)
committerJan Beulich <jbeulich@suse.com>
Mon, 18 Jul 2022 15:55:42 +0000 (17:55 +0200)
commit4f67f1cbb66e96769557863e1734fa465b73b6db
tree4b9ce756b496eed37e1de33173f83b9678b3c8fe
parentc3cad613dd7ce095098437d9107e791a48db83a9
vm_event: fix MISRA C 2012 Rule 8.7 violation

The function vm_event_wake() is referenced only in vm_event.c.
Change the linkage of the function from external to internal by adding
the storage-class specifier static to the function definition.

Also, this patch aims to resolve indirectly a MISRA C 2012 Rule 8.4 violation
warning.

Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
xen/common/vm_event.c