Skip to contentSkip to conversation

x86/boot: Fix bootinfo.h to be standalone

PATCH In review Andrew Cooper 3 participants 3 messages Nov 8, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 x86/boot: Fix bootinfo.h to be standalone

Work to rebase the Trenchboot patch series has encountered:

In file included from ./arch/x86/include/asm/tpm.h:4,

                   from arch/x86/boot/../tpm.c:23:
  ./arch/x86/include/asm/bootinfo.h:88:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'next_boot_module_index'
     88 | static inline unsigned int __init next_boot_module_index(
        |

Fix this by including the necessary header.

Fixes 74af2d98276d ("x86/boot: eliminate module_map")

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Daniel P. Smith <[email protected]>
CC: Krystian Hebel <[email protected]>

---
 xen/arch/x86/include/asm/bootinfo.h | 1 +
 1 file changed, 1 insertion(+)
xen/arch/x86/include/asm/bootinfo.h +1 -0
index cc6305630683..b9c94b370d57 100644
@@ -8,6 +8,7 @@
 #ifndef X86_BOOTINFO_H
 #define X86_BOOTINFO_H
 
+#include <xen/init.h>
 #include <xen/multiboot.h>
 #include <xen/types.h>
 

base-commit: 75035c386eeb8bd5dbed1831dbb96a35b31521f6

Signature · 1 line
2.39.5
Reviewed-by on v1 1/1
#1 lore raw
Quoted 8 lines · Andrew Cooper

Work to rebase the Trenchboot patch series has encountered:

   In file included from ./arch/x86/include/asm/tpm.h:4,
                    from arch/x86/boot/../tpm.c:23:
   ./arch/x86/include/asm/bootinfo.h:88:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'next_boot_module_index'
      88 | static inline unsigned int __init next_boot_module_index(
         |
Quoted 5 lines

Fix this by including the necessary header.

Fixes 74af2d98276d ("x86/boot: eliminate module_map")
Reviewed-by on v1 1/1
#2 lore raw
In reply to Andrew Cooper
Quoted 13 lines · Andrew Cooper

Work to rebase the Trenchboot patch series has encountered:

   In file included from ./arch/x86/include/asm/tpm.h:4,
                    from arch/x86/boot/../tpm.c:23:
   ./arch/x86/include/asm/bootinfo.h:88:35: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'next_boot_module_index'
      88 | static inline unsigned int __init next_boot_module_index(
         |

Fix this by including the necessary header.

Fixes 74af2d98276d ("x86/boot: eliminate module_map")
Quoted 6 lines

---
CC: Jan Beulich <[email protected]>
CC: Roger Pau Monné <[email protected]>
CC: Daniel P. Smith <[email protected]>
CC: Krystian Hebel <[email protected]>
---