[PATCH v2 1/7] disk: part_dos: Move header to the main include directory
Ilias Apalodimas
ilias.apalodimas at linaro.org
Fri Feb 13 09:37:20 CET 2026
On Thu, 12 Feb 2026 at 22:45, Javier Martinez Canillas
<javierm at redhat.com> wrote:
>
> 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 at redhat.com>
> Reviewed-by: Tom Rini <trini at konsulko.com>
> ---
Reviewed-by: Ilias Apalodimas <ilias.apalodimas at linaro.org>
>
> (no changes since v1)
>
> disk/part_dos.c | 2 +-
> {disk => include}/part_dos.h | 0
> 2 files changed, 1 insertion(+), 1 deletion(-)
> rename {disk => include}/part_dos.h (100%)
>
> diff --git a/disk/part_dos.c b/disk/part_dos.c
> index 18dd35c9b98e..2545cc6bf5d2 100644
> --- a/disk/part_dos.c
> +++ b/disk/part_dos.c
> @@ -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
> diff --git a/disk/part_dos.h b/include/part_dos.h
> similarity index 100%
> rename from disk/part_dos.h
> rename to include/part_dos.h
> --
> 2.53.0
>
More information about the U-Boot
mailing list