]> xenbits.xensource.com Git - xen.git/commit
page_alloc: fix MISRA C 2012 Rule 8.7 violation
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 28 Jun 2022 15:06:37 +0000 (17:06 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 28 Jun 2022 15:06:37 +0000 (17:06 +0200)
commit56ff13f640b400f5e68e0450b7b24f6deae13b63
tree688102b16f40e722eff41ffe4d0572e36be0238b
parent53e5d2166ac2a05ab8ce4a2fe650277b3fa168b2
page_alloc: fix MISRA C 2012 Rule 8.7 violation

The variables page_offlined_list and page_broken_list are referenced only
in page_alloc.c.
Change their linkage from external to internal by adding the storage-class
specifier static to their definitions.

This patch also 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>
xen/common/page_alloc.c