]> git.dujemihanovic.xyz Git - u-boot.git/commit
arm64: zynqmp: xil_io.h: declare functions as static
authorLuca Ceresoli <luca@lucaceresoli.net>
Fri, 24 May 2019 13:40:01 +0000 (15:40 +0200)
committerMichal Simek <michal.simek@xilinx.com>
Tue, 30 Jul 2019 08:20:06 +0000 (10:20 +0200)
commit04d2b0c7c2e518c1d44a1347e709af004708dce4
tree422472ba610099849ee4aae2a278bcfb0eb29dc1
parent4f4b56205ec0ad76f001fef19709e9e1014b2e5f
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>
board/xilinx/zynqmp/xil_io.h