]> xenbits.xensource.com Git - xen.git/commitdiff
x86/boot: Fix bootinfo.h to be standalone
authorAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Nov 2024 14:08:33 +0000 (14:08 +0000)
committerAndrew Cooper <andrew.cooper3@citrix.com>
Fri, 8 Nov 2024 20:31:10 +0000 (20:31 +0000)
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")
Reported-by: Krystian Hebel <krystian.hebel@3mdeb.com>
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
Reviewed-by: Jason Andryuk <jason.andryuk@amd.com>
Reviewed-by: Daniel P. Smith <dpsmith@apertussolutions.com>
xen/arch/x86/include/asm/bootinfo.h

index cc630563068377509183fb23edaa9ba0d5b2f613..b9c94b370d57736c18621c7f0dc9f8c0ee2314b8 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef X86_BOOTINFO_H
 #define X86_BOOTINFO_H
 
+#include <xen/init.h>
 #include <xen/multiboot.h>
 #include <xen/types.h>