]> xenbits.xensource.com Git - xen.git/commitdiff
xen/cpu: undefine MASK_DECLARE_ macros after their usage
authorXenia Ragiadakou <burzalodowa@gmail.com>
Tue, 9 Aug 2022 09:52:06 +0000 (11:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Tue, 9 Aug 2022 09:52:06 +0000 (11:52 +0200)
MASK_DECLARE_ macros have only a limited scope. Remove their definitions
immediately after their usage.

Suggested-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Xenia Ragiadakou <burzalodowa@gmail.com>
Acked-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Bertrand Marquis <bertrand.marquis@arm.com>
xen/common/cpu.c

index 4bdb017b0ea4b84268732af728e0cd00d5f5051f..778b6820b7546eea4bbd07c29a18dc16909a4d61 100644 (file)
@@ -40,6 +40,11 @@ const unsigned long cpu_bit_bitmap[BITS_PER_LONG+1][BITS_TO_LONGS(NR_CPUS)] = {
 #endif
 };
 
+#undef MASK_DECLARE_8
+#undef MASK_DECLARE_4
+#undef MASK_DECLARE_2
+#undef MASK_DECLARE_1
+
 static DEFINE_RWLOCK(cpu_add_remove_lock);
 
 bool get_cpu_maps(void)