]> xenbits.xensource.com Git - people/andrewcoop/xen.git/commit
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)
commit6c88e35fa196defd56f709e7c596d4bedc071e54
tree8935e19a5ee8437ef616c569a9e2abfe3197eb46
parentc62eed3ee6269de2725cdf9cf23d8055568bcd5a
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")
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