From 056b3d49b234f74e9bf148978cadd35332ef46b3 Mon Sep 17 00:00:00 2001 From: Haojian Zhuang <haojian.zhuang@linaro.org> Date: Fri, 2 Mar 2018 14:23:55 +0800 Subject: [PATCH] hikey960: fix build issue with CLANG plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c:290:20: error: unused function 'hisi_pdc_set_intmask' [-Werror,-Wunused-function] static inline void hisi_pdc_set_intmask(void *pdc_base_addr, ^ 1 error generated. Makefile:605: recipe for target 'build/hikey960/release/bl31/hisi_pwrc.o' failed make: *** [build/hikey960/release/bl31/hisi_pwrc.o] Error 1 Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> --- plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c b/plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c index 9fdc3e746..45fcd42b4 100644 --- a/plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c +++ b/plat/hisilicon/hikey960/drivers/pwrc/hisi_pwrc.c @@ -287,9 +287,9 @@ void hisi_enable_pdc(unsigned int cluster) mmio_write_32((uintptr_t)pdc_base_addr, 0x1); } -static inline void hisi_pdc_set_intmask(void *pdc_base_addr, - unsigned int core, - enum pdc_finish_int_mask intmask) +void hisi_pdc_set_intmask(void *pdc_base_addr, + unsigned int core, + enum pdc_finish_int_mask intmask) { unsigned int val; -- GitLab