1. 29 Apr, 2022 5 commits
    • Arnd Bergmann's avatar
      ARM: omap: fix missing declaration warnings · e514f1fd
      Arnd Bergmann authored
      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: default avatarkernel test robot <lkp@intel.com>
      Reviewed-by: default avatarTony Lindgren <tony@atomide.com>
      Tested-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      e514f1fd
    • Arnd Bergmann's avatar
      ARM: omap: fix address space warnings from sparse · deb44711
      Arnd Bergmann authored
      Moving sram code from plat-omap got the attention of the kernel test robot.
      
      I found a few more places with related warnings because the sram
      references are a mix of kernel pointers and __iomem pointers:
      
      mach-omap1/sram-init.c:56:17: warning: cast removes address space '__iomem' of expression
      mach-omap1/board-ams-delta.c:667:9: warning: incorrect type in argument 1 (different base types)
      mach-omap2/sram.c:78:17: warning: cast removes address space '__iomem' of expression
      mach-omap2/omap4-common.c:142:27: warning: incorrect type in assignment (different address spaces)
      mach-omap2/omap4-common.c:142:27:    expected void [noderef] __iomem *static [toplevel] sram_sync
      mach-omap2/omap4-common.c:142:27:    got void *
      mach-omap2/pm34xx.c:113:45: warning: incorrect type in argument 1 (different address spaces)
      mach-omap2/pm34xx.c:113:45:    expected void [noderef] __iomem *save_regs
      mach-omap2/pm34xx.c:113:45:    got void *extern [addressable] [toplevel] omap3_secure_ram_storage
      
      There is no good solution here, as sram is a bit special in this
      regard. Change the annotations to at least shut up the warnings.
      Reported-by: default avatarkernel test robot <lkp@intel.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      deb44711
    • Arnd Bergmann's avatar
      ARM: spear: remove include/mach/ subdirectory · c164620a
      Arnd Bergmann authored
      Two of the remaining four headers are never used, the other
      two are only used inside of the platform code. Move them
      next to the files that include them and remove the
      Makefile trick that adds the include path.
      Acked-by: default avatarViresh Kumar <viresh.kumar@linaro.org>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      c164620a
    • Arnd Bergmann's avatar
      ARM: davinci: remove include/mach/ subdirectory · ca31807b
      Arnd Bergmann authored
      The files in include/mach are only used from mach/davinci,
      so they are no longer needed in the traditional location.
      
      Move them to arch/arm/mach-davinci/ and drop the logic for
      the special include path.
      
      The mach/uncompress.h file is not used at all and can just
      be removed.
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      ca31807b
    • Arnd Bergmann's avatar
      ARM: omap2: remove include/mach/ subdirectory · 6d9230ed
      Arnd Bergmann authored
      mach/serial.h is only included from arch/arm/mach-omap2/serial.h,
      and the other two files are unused and empty.
      
      Remove the directory by relocating the contents of mach/serial.h
      and dropping all other references.
      Reviewed-by: default avatarTony Lindgren <tony@atomide.com>
      Tested-by: default avatarTony Lindgren <tony@atomide.com>
      Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
      6d9230ed
  2. 22 Apr, 2022 21 commits
  3. 21 Apr, 2022 14 commits