summaryrefslogtreecommitdiff
path: root/drivers/timer/stm32_timer.c
diff options
context:
space:
mode:
authorAKASHI Takahiro <takahiro.akashi@linaro.org>2020-11-19 09:37:19 +0900
committerTom Rini <trini@konsulko.com>2020-12-02 16:21:58 -0500
commit50efdf2c6ffe82a14cb7bf20a1abf55cff2ad135 (patch)
tree8b219948ed643e5fb48942f9b1e39a7ee4d2a449 /drivers/timer/stm32_timer.c
parentd211e0418fed8adf4ffa7c31f067e367fb26a081 (diff)
common: update: fix an "unused" warning against update_flash()
Since update_flash() is used only in update_tftp(), it should be guarded with appropriate config options. After the commit 3149e524fc1e, common/update.c will be built under either CONFIG_UDATE_TFTP, CONFIG_DFU_TFTP or CONFIG_UPDATE_FIT. Since CONFIG_UPDATE_FIT, hence fit_update(), doesn't rely on update_flash(), the compiler may cause an "unused" warning if CONFIG_UPDATE_FIT=y and CONFIG_UPDATE_TFTP=n and CONFIG_DFU_TFTP=n. This is, for example, the case for sandbox defconfig where EFI_CAPSULE_FIRMWARE_FIT is enabled for test purpose. Fixes: 3149e524fc1e ("common: update: add a generic interface for FIT image") Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Diffstat (limited to 'drivers/timer/stm32_timer.c')
0 files changed, 0 insertions, 0 deletions