x86/mm: undo type change of partial_flags
PATCH 1/1 x86/mm: undo type change of partial_flags
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 <[email protected]>
xen/arch/x86/include/asm/mm.h +1 -1
@@ -286,7 +286,7 @@ struct page_infostruct {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; };
Quoted 11 lines · Jan Beulich
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 <[email protected]>
xen/arch/x86/include/asm/mm.h struct page_info · line 292
Quoted 8 lines
xen/arch/x86/include/asm/mm.h +1
-1@@ -286,7 +286,7 @@ struct page_infostruct {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; };
I knew MS compiler does not like too, but I only tested with GCC, and it was fine with it
Reviewed-by Frediano Ziglio <[email protected]>
Frediano
Quoted 5 lines · Jan Beulich
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 <[email protected]>
Acked-by Andrew Cooper <[email protected]>
Quoted 5 lines · Jan Beulich
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 <[email protected]>
Acked-by Roger Pau Monné <[email protected]>
Thanks, Roger.