]> xenbits.xensource.com Git - xen.git/commitdiff
x86/mm: undo type change of partial_flags
authorJan Beulich <jbeulich@suse.com>
Thu, 12 Sep 2024 15:52:27 +0000 (17:52 +0200)
committerJan Beulich <jbeulich@suse.com>
Thu, 12 Sep 2024 15:52:27 +0000 (17:52 +0200)
Clang dislikes the boolean type combined with the field being set using
PTF_partial_set.

Fixes: 5ffe6d4a02e0 ("types: replace remaining uses of s16")
Signed-off-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Frediano Ziglio <frediano.ziglio@cloud.com>
Acked-by: Andrew Cooper <andrew.cooper3@citrix.com>
Acked-by: Roger Pau Monné <roger.pau@citrix.com>
xen/arch/x86/include/asm/mm.h

index 6b5855e94d85ffd39af6284d7fd48620121e0bc8..2a837f3d59ae830fd5c1ba916083993117e9fd5d 100644 (file)
@@ -286,7 +286,7 @@ struct page_info
         struct {
             u16 nr_validated_ptes:PAGETABLE_ORDER + 1;
             u16 :16 - PAGETABLE_ORDER - 1 - 1;
-            bool partial_flags:1;
+            uint16_t partial_flags:1;
             int16_t linear_pt_count;
         };