[PATCH v2 2/7] disk: part_dos: Align dos_partition_t with struct partition
Ilias Apalodimas
ilias.apalodimas at linaro.org
Fri Feb 13 09:41:08 CET 2026
Hi Javier
[...]
> unsigned char end_head; /* end head */
> unsigned char end_sector; /* end sector */
> unsigned char end_cyl; /* end cylinder */
> - unsigned char start4[4]; /* starting sector counting from 0 */
> - unsigned char size4[4]; /* nr of sectors in partition */
> -} dos_partition_t;
> + __le32 start_sect; /* starting sector counting from 0 */
> + __le32 nr_sects; /* nr of sectors in partition */
> +} __packed dos_partition_t;
This always has to be packed and the part_dos.h definition had this
wrong all along?
>
> #endif /* _DISK_PART_DOS_H */
> --
> 2.53.0
>
More information about the U-Boot
mailing list