Skip to contentSkip to conversation

arm64: Include missing <grub/types.h> header

PATCH In review Javier Martinez Canillas 2 participants 2 messages Nov 9, 2020 – Nov 20, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 arm64: Include missing <grub/types.h> header

This header uses types defined in <grub/types.h> but does not include it, which leads to lead compile errors like the following:

../include/grub/cpu/linux.h:27:3: error: unknown type name ‘grub_uint32_t’

   27 |   grub_uint32_t code0;  /* Executable code */
      |   ^~~~~~~~~~~~~

---

 include/grub/arm64/linux.h | 2 ++
 1 file changed, 2 insertions(+)
include/grub/arm64/linux.h +2 -0
index 4269adc6dae..7e22b4ab699 100644
@@ -19,6 +19,8 @@
 #ifndef GRUB_ARM64_LINUX_HEADER
 #define GRUB_ARM64_LINUX_HEADER 1
 
+#include <grub/types.h>
+
 #define GRUB_LINUX_ARM64_MAGIC_SIGNATURE 0x644d5241 /* 'ARM\x64' */
 
 /* From linux/Documentation/arm64/booting.txt */
Signature · 1 line
2.28.0