Skip to contentSkip to conversation

x86/bitops: Drop include of cpufeatureset

PATCH In review Andrew Cooper 2 participants 3 messages May 4, 2023

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/bitops: Drop include of cpufeatureset

Nothing in x86/bitops uses anything from x86/cpufeatureset, and it is creating problems when trying to untangle other aspects of feature handling.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>

---
 xen/arch/x86/include/asm/bitops.h | 1 -
 1 file changed, 1 deletion(-)
xen/arch/x86/include/asm/bitops.h +0 -1
index 5a71afbc89d5..aa8bd65b4565 100644
@@ -6,7 +6,6 @@
  */
 
 #include <asm/alternative.h>
-#include <asm/cpufeatureset.h>
 
 /*
  * We specify the memory operand as both input and output because the memory
Signature · 1 line
2.30.2
#1 lore raw
Quoted 17 lines · Andrew Cooper

Nothing in x86/bitops uses anything from x86/cpufeatureset, and it is creating problems when trying to untangle other aspects of feature handling.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>

---
 xen/arch/x86/include/asm/bitops.h | 1 -
 1 file changed, 1 deletion(-)
xen/arch/x86/include/asm/bitops.h +0 -0
index 5a71afbc89d5..aa8bd65b4565 100644

xen/arch/x86/include/asm/bitops.h line 9

Quoted 4 lines
xen/arch/x86/include/asm/bitops.h +0 -1
@@ -6,7 +6,6 @@
  */
 
 #include <asm/alternative.h>
-#include <asm/cpufeatureset.h>

Prior to your 44325775f724 ("x86/cpuid: Untangle the <asm/cpufeature.h> include hierachy") it was asm/cpufeature.h that was included here, presumably for the use of X86_FEATURE_BMI1 in __scanbit(). I guess that wants to be asm/cpufeatures.h now instead?

Jan

#2 lore raw
Quoted 20 lines · Jan Beulich
Quoted 19 lines · Andrew Cooper

Nothing in x86/bitops uses anything from x86/cpufeatureset, and it is creating problems when trying to untangle other aspects of feature handling.

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Wei Liu <[email protected]>

---
 xen/arch/x86/include/asm/bitops.h | 1 -
 1 file changed, 1 deletion(-)
xen/arch/x86/include/asm/bitops.h +0 -0
index 5a71afbc89d5..aa8bd65b4565 100644
@@ -6,7 +6,6 @@
  */
 
Quoted 6 lines

xen/arch/x86/include/asm/bitops.h line 9

Quoted 2 lines
xen/arch/x86/include/asm/bitops.h +0 -1
 #include <asm/alternative.h>
-#include <asm/cpufeatureset.h>

Prior to your 44325775f724 ("x86/cpuid: Untangle the <asm/cpufeature.h> include hierachy") it was asm/cpufeature.h that was included here, presumably for the use of X86_FEATURE_BMI1 in __scanbit(). I guess that wants to be asm/cpufeatures.h now instead?

Oh.  I missed that, but nothing fails to compile, which means that there's a prior path including cpufeatureset anyway.

I think I'll drop this and leave the header rearranging to a later point.  I ended up having to do the untangling differently anyway.

~Andrew