disk: Tidy up #ifdefs in part_efi
authorSimon Glass <sjg@chromium.org>
Fri, 2 Jul 2021 18:36:14 +0000 (12:36 -0600)
committerTom Rini <trini@konsulko.com>
Wed, 28 Jul 2021 18:27:54 +0000 (14:27 -0400)
commita594b41f86d516cff80b335a0d0b72a2647a7829
tree59c5a6f830768d728cce3ea83d7bdcff3227eef9
parentc72c7d9db5ff9e5e88de6d23a2ec0a745707f6fe
disk: Tidy up #ifdefs in part_efi

This file does not correctly handle the various cases, sometimes
producing warnings about partition_basic_data_guid being defined but not
used. Fix it.

There was some discussion about adjusting Kconfig or making
HAVE_BLOCK_DEVICE a prerequisite for PARTITIONS, but apparently this is
not feasible. Such changes can be undertaken separate from the goal of
this series.

Signed-off-by: Simon Glass <sjg@chromium.org>
disk/part_efi.c