soc: rockchip: fixed compilation error
authorFrank Wang <frank.wang@rock-chips.com>
Thu, 6 Apr 2017 01:36:11 +0000 (09:36 +0800)
committerHuang, Tao <huangtao@rock-chips.com>
Thu, 6 Apr 2017 02:39:08 +0000 (10:39 +0800)
This adds fixed below errors when compiled rockchip_defconfig without
CONFIG_RK3368_SCPI_PROTOCOL select:

In file included from drivers/clk/rockchip/clk-ddr.c:23:0:
include/soc/rockchip/scpi.h:89:12: warning:
'scpi_sys_set_jtagmux_on_off' defined but not used [-Wunused-function]
error, forbidden warning: scpi.h:89
scripts/Makefile.build:258: recipe for target
'drivers/clk/rockchip/clk-ddr.o' failed
make[3]: *** [drivers/clk/rockchip/clk-ddr.o] Error 1

Change-Id: I5abc184554dcfc3697be82aede8dec27da2fcdd9
Signed-off-by: Frank Wang <frank.wang@rock-chips.com>
include/soc/rockchip/scpi.h

index a2fc901f9cd2fb1ac5204c233669a726f82b2916..784a9f694af12bc1917dd31e0e430329482dd63a 100644 (file)
@@ -86,7 +86,7 @@ static inline int scpi_get_sensor_value(u16 sensor, u32 *val)
        return -EPERM;
 }
 
        return -EPERM;
 }
 
-static int scpi_sys_set_jtagmux_on_off(u32 en)
+static inline int scpi_sys_set_jtagmux_on_off(u32 en)
 {
        return -EPERM;
 }
 {
        return -EPERM;
 }