[PATCH v2 2/4] cmd: gpt: use UUID accessor more consistently

Simon Glass sjg at chromium.org
Mon Sep 4 18:48:52 CEST 2023


On Sat, 2 Sept 2023 at 01:34, Heinrich Schuchardt
<heinrich.schuchardt at canonical.com> wrote:
>
> disk_partition_uuid() and disk_partition_set_uuid() were introduced to let
> us avoid the usage of #ifdef when dealing with the field uuid of
> struct disk_partition.
>
> In allocate_disk_part() commit c5f1d005f517 ("part: Add accessors for
> struct disk_partition uuid") missed to use the setter.
>
> print_gpt_info() and create_gpt_partitions_list() are further functions
> where we should use the getter.
>
> Fixes: c5f1d005f517 ("part: Add accessors for struct disk_partition uuid")
> Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt at canonical.com>
> ---
> v2:
>         new patch
> ---
>  cmd/gpt.c | 23 ++++++++++++-----------
>  1 file changed, 12 insertions(+), 11 deletions(-)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list