diff options
author | Luca Ceresoli <luca@lucaceresoli.net> | 2019-05-24 15:40:01 +0200 |
---|---|---|
committer | Michal Simek <michal.simek@xilinx.com> | 2019-07-30 10:20:06 +0200 |
commit | 04d2b0c7c2e518c1d44a1347e709af004708dce4 (patch) | |
tree | 422472ba610099849ee4aae2a278bcfb0eb29dc1 | |
parent | 4f4b56205ec0ad76f001fef19709e9e1014b2e5f (diff) | |
download | u-boot-04d2b0c7c2e518c1d44a1347e709af004708dce4.tar.gz u-boot-04d2b0c7c2e518c1d44a1347e709af004708dce4.tar.xz u-boot-04d2b0c7c2e518c1d44a1347e709af004708dce4.zip |
arm64: zynqmp: xil_io.h: declare functions as static
Fixes sparse warnings when building zynqmp defconfigs:
./board/xilinx/zynqmp/xil_io.h:12:6: warning: symbol 'Xil_Out32' was not declared. Should it be static?
./board/xilinx/zynqmp/xil_io.h:17:5: warning: symbol 'Xil_In32' was not declared. Should it be static?
./board/xilinx/zynqmp/xil_io.h:22:6: warning: symbol 'usleep' was not declared. Should it be static?
Also add __maybe_unused to usleep() since it is not used by minimized
psu_init_gpl.c files, so it would warn as "defined but not used".
Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
-rw-r--r-- | board/xilinx/zynqmp/xil_io.h | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/board/xilinx/zynqmp/xil_io.h b/board/xilinx/zynqmp/xil_io.h index c476c902eb..1c1bf32ada 100644 --- a/board/xilinx/zynqmp/xil_io.h +++ b/board/xilinx/zynqmp/xil_io.h @@ -9,17 +9,17 @@ #define xil_printf(...) -void Xil_Out32(unsigned long addr, unsigned long val) +static void Xil_Out32(unsigned long addr, unsigned long val) { writel(val, addr); } -int Xil_In32(unsigned long addr) +static int Xil_In32(unsigned long addr) { return readl(addr); } -void usleep(u32 sleep) +static void __maybe_unused usleep(u32 sleep) { udelay(sleep); } |