forked from pool/grub2
40 lines
1.3 KiB
Diff
40 lines
1.3 KiB
Diff
|
From f756ab3eac93346c3945eeb254773436ea3e1607 Mon Sep 17 00:00:00 2001
|
|||
|
From: Javier Martinez Canillas <javierm@redhat.com>
|
|||
|
Date: Thu, 3 Dec 2020 16:01:43 +0100
|
|||
|
Subject: [PATCH 01/46] include/grub/i386/linux.h: Include missing
|
|||
|
<grub/types.h> header
|
|||
|
MIME-Version: 1.0
|
|||
|
Content-Type: text/plain; charset=UTF-8
|
|||
|
Content-Transfer-Encoding: 8bit
|
|||
|
|
|||
|
This header uses types defined in <grub/types.h> but does not include it,
|
|||
|
which leads to compile errors like the following:
|
|||
|
|
|||
|
In file included from ../include/grub/cpu/linux.h:19,
|
|||
|
from kern/efi/sb.c:21:
|
|||
|
../include/grub/i386/linux.h:80:3: error: unknown type name ‘grub_uint64_t’
|
|||
|
80 | grub_uint64_t addr;
|
|||
|
|
|||
|
Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
|
|||
|
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
|
|||
|
---
|
|||
|
include/grub/i386/linux.h | 2 ++
|
|||
|
1 file changed, 2 insertions(+)
|
|||
|
|
|||
|
diff --git a/include/grub/i386/linux.h b/include/grub/i386/linux.h
|
|||
|
index ce30e7fb0..6da5f030f 100644
|
|||
|
--- a/include/grub/i386/linux.h
|
|||
|
+++ b/include/grub/i386/linux.h
|
|||
|
@@ -19,6 +19,8 @@
|
|||
|
#ifndef GRUB_I386_LINUX_HEADER
|
|||
|
#define GRUB_I386_LINUX_HEADER 1
|
|||
|
|
|||
|
+#include <grub/types.h>
|
|||
|
+
|
|||
|
#define GRUB_LINUX_I386_MAGIC_SIGNATURE 0x53726448 /* "HdrS" */
|
|||
|
#define GRUB_LINUX_DEFAULT_SETUP_SECTS 4
|
|||
|
#define GRUB_LINUX_INITRD_MAX_ADDRESS 0x37FFFFFF
|
|||
|
--
|
|||
|
2.26.2
|
|||
|
|