]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: omap1: fix build with no SoC selected
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Sep 2019 08:11:24 +0000 (10:11 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 22 Apr 2022 09:08:55 +0000 (11:08 +0200)
commitc4b14841901384cf11cd9a2bff01173a3474815f
tree7399dccca567bf099053501cfd58789a69237941
parentb67c3cf980bc93b72e4650444e5f705e7edf6427
ARM: omap1: fix build with no SoC selected

In a multiplatform randconfig kernel, one can have
CONFIG_ARCH_OMAP1 enabled, but none of the specific SoCs.
This leads to some build issues as the code is not
meant to deal with this configuration at the moment:

arch/arm/mach-omap1/io.c:86:20: error: unused function 'omap1_map_common_io' [-Werror,-Wunused-function]
arch/arm/mach-omap1/pm.h:113:2: error: "Power management for this processor not implemented yet" [-Werror,-W#warnings]

Use the same trick as on OMAP2 and guard the actual compilation
of platform code with another Makefile ifdef check based
on an option that depends on having at least one SoC enabled.

The io.c file still needs to get compiled to allow building
device drivers with a dependency on CONFIG_ARCH_OMAP1.

Acked-by: Tony Lindgren <tony@atomide.com>
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
arch/arm/Kconfig
arch/arm/mach-omap1/Kconfig
arch/arm/mach-omap1/Makefile
include/linux/soc/ti/omap1-io.h