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)
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

index 000ae6b9725e18400dcec727d04687e920e34f75..fe0e15429af3683ce237d640e6e4104313244f91 100644 (file)
@@ -235,9 +235,9 @@ static unsigned int dma_bitsize;
 integer_param("dma_bits", dma_bitsize);
 
 /* Offlined page list, protected by heap_lock. */
-PAGE_LIST_HEAD(page_offlined_list);
+static PAGE_LIST_HEAD(page_offlined_list);
 /* Broken page list, protected by heap_lock. */
-PAGE_LIST_HEAD(page_broken_list);
+static PAGE_LIST_HEAD(page_broken_list);
 
 /*************************
  * BOOT-TIME ALLOCATOR