diff options
author | AKASHI Takahiro <takahiro.akashi@linaro.org> | 2022-04-19 10:01:53 +0900 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-23 22:05:33 +0200 |
commit | 37168e396450f3a915c8a9ae9fa65caa3168920b (patch) | |
tree | 7cedd1838b46f498dbef8b556c14ecd0ed20569b /include/part.h | |
parent | fd3654df3699ef08a4da91aacfb9799341680806 (diff) | |
download | u-boot-37168e396450f3a915c8a9ae9fa65caa3168920b.tar.gz |
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 88ca8e26958b ("disk: Add an option for partitions in SPL")
Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Diffstat (limited to 'include/part.h')
-rw-r--r-- | include/part.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/part.h b/include/part.h index 1196220817e..9975fad9712 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 * |