ARM: omap: fix missing declaration warnings
authorArnd Bergmann <arnd@arndb.de>
Thu, 28 Apr 2022 09:11:35 +0000 (11:11 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 29 Apr 2022 07:53:28 +0000 (09:53 +0200)
commite514f1fd09b6f966f5f55220fdc4fb8a2efc0d6a
tree9f826b72b567b158421c986cc27bf50b1daa0d6c
parentdeb44711675efa923ee8cebc0c5730d6f5905b32
ARM: omap: fix missing declaration warnings

Moving the plat-omap files triggered a sparse warning for omap1 and
omap2 that is now in a different file from before. Found some more sparse
warnings here that I address by making sure the declaration is visible
to both the caller and the callee, or they are static

mach-omap1/fb.c:33:17: warning: symbol 'omap_fb_resources' was not declared. Should it be static?
mach-omap1/timer32k.c:215:12: warning: symbol 'omap_init_clocksource_32k' was not declared. Should it be static?
mach-omap1/i2c.c:36:12: warning: symbol 'omap_i2c_add_bus' was not declared. Should it be static?
mach-omap1/i2c.c:115:12: warning: symbol 'omap_register_i2c_bus_cmdline' was not declared. Should it be static?
mach-omap1/i2c.c:140:12: warning: symbol 'omap_register_i2c_bus' was not declared. Should it be static?
mach-omap2/dma.c:180:34: warning: symbol 'dma_plat_info' was not declared. Should it be static?
mach-omap2/omap4-common.c:116:6: warning: symbol 'omap_interconnect_sync' was not declared. Should it be static?
mach-omap2/omap-iommu.c:113:5: warning: symbol 'omap_iommu_set_pwrdm_constraint' was not declared. Should it be static?

Reported-by: kernel test robot <lkp@intel.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Tested-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/mach-omap1/fb.c
arch/arm/mach-omap1/i2c.c
arch/arm/mach-omap1/timer32k.c
arch/arm/mach-omap2/common.h
arch/arm/mach-omap2/dma.c
arch/arm/mach-omap2/omap-iommu.c
arch/arm/mach-omap2/pdata-quirks.c