提交 b016b585 编写于 作者: S Seung-Woo Kim 提交者: Jaehoon Chung

spl: spl_mmc: add __maybe_unused to mmc_load_image_raw_sector()

If there are no CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_PARTITION,
CONFIG_SYS_MMCSD_RAW_MODE_U_BOOT_USE_SECTOR and CONFIG_SPL_OS_BOOT,
there is unused-function build warning. Add __maybe_unused macro
to remove the warning.
Signed-off-by: NSeung-Woo Kim <sw0312.kim@samsung.com>
上级 9f13021f
...@@ -52,8 +52,9 @@ static ulong h_spl_load_read(struct spl_load_info *load, ulong sector, ...@@ -52,8 +52,9 @@ static ulong h_spl_load_read(struct spl_load_info *load, ulong sector,
return blk_dread(mmc_get_blk_desc(mmc), sector, count, buf); return blk_dread(mmc_get_blk_desc(mmc), sector, count, buf);
} }
static int mmc_load_image_raw_sector(struct spl_image_info *spl_image, static __maybe_unused
struct mmc *mmc, unsigned long sector) int mmc_load_image_raw_sector(struct spl_image_info *spl_image,
struct mmc *mmc, unsigned long sector)
{ {
unsigned long count; unsigned long count;
struct image_header *header; struct image_header *header;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册