]> git.ipfire.org Git - thirdparty/u-boot.git/commitdiff
disk: part_dos: Move header to the main include directory
authorJavier Martinez Canillas <javierm@redhat.com>
Thu, 12 Feb 2026 20:44:55 +0000 (21:44 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Sun, 15 Feb 2026 07:43:58 +0000 (08:43 +0100)
There are two different struct definitions for MBR partition table
entries: one in part_dos.h and a nearly identical one in part_efi.h.

To enable future consolidation of these two structures, move part_dos.h
to the main include directory. This makes it accessible from other parts
of the codebase, such as part_efi.h, and is the first step toward removing
the redundant definition.

Signed-off-by: Javier Martinez Canillas <javierm@redhat.com>
Reviewed-by: Tom Rini <trini@konsulko.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
disk/part_dos.c
include/part_dos.h [moved from disk/part_dos.h with 100% similarity]

index 18dd35c9b98e0095dc96583a9680a2fdc89fe31b..2545cc6bf5d2f8ea647d450a5ce9e480f6d4f1ac 100644 (file)
@@ -19,7 +19,7 @@
 #include <vsprintf.h>
 #include <asm/unaligned.h>
 #include <linux/compiler.h>
-#include "part_dos.h"
+#include <part_dos.h>
 #include <part.h>
 
 #define DOS_PART_DEFAULT_SECTOR 512
similarity index 100%
rename from disk/part_dos.h
rename to include/part_dos.h