From: AKASHI Takahiro Date: Tue, 19 Apr 2022 01:01:53 +0000 (+0900) Subject: disk: enable function prototypes in part.h for SPL/TPL X-Git-Tag: baikal/mips/sdk5.9~3^2~84^2~18 X-Git-Url: https://git.baikalelectronics.ru/sdk/?a=commitdiff_plain;h=0df87df1049d6778d6a104af0c9227d5207cc419;p=uboot.git disk: enable function prototypes in part.h for SPL/TPL Since CONFIG_[SPL|TPL]_PARTITIONS were introduced, part.h has not been updated. Due to this, while the build won't fail, some functionality may possibly break as some partition-related functions are nullified even though some partition table types are enabled for SPL/TPL. Fixes: commit 62bcde047894 ("disk: Add an option for partitions in SPL") Signed-off-by: AKASHI Takahiro --- diff --git a/include/part.h b/include/part.h index 1196220817..9975fad971 100644 --- a/include/part.h +++ b/include/part.h @@ -87,7 +87,7 @@ struct disk_part { }; /* Misc _get_dev functions */ -#ifdef CONFIG_PARTITIONS +#if CONFIG_IS_ENABLED(PARTITIONS) /** * blk_get_dev() - get a pointer to a block device given its type and number * @@ -497,7 +497,7 @@ int layout_mbr_partitions(struct disk_partition *p, int count, #endif -#ifdef CONFIG_PARTITIONS +#if CONFIG_IS_ENABLED(PARTITIONS) /** * part_driver_get_count() - get partition driver count *