ARM: OMAP2+: Fix compile if CONFIG_HAVE_ARM_SMCCC is not set
authorTony Lindgren <tony@atomide.com>
Fri, 21 Feb 2020 17:29:45 +0000 (09:29 -0800)
committerTony Lindgren <tony@atomide.com>
Wed, 26 Feb 2020 18:49:25 +0000 (10:49 -0800)
commit51c22d7b40dca8b39a33b2c3b03f13122a2a1af3
treeda349d0610a66cb41c8a52f430d2d7519b530fc0
parent5267244ddc62496f1537afffef70e6e2e7d5764c
ARM: OMAP2+: Fix compile if CONFIG_HAVE_ARM_SMCCC is not set

Recent omap changes added runtime checks to use omap_smccc_smc()
when optee is configured in dts. As the omap-secure code can be
built for ARMv6 only without ARMv7 and use custom smc calls, we
now get a build error:

omap-secure.c:(.text+0x94): undefined reference to `__arm_smccc_smc'

As there secure calls are not used for ARMv6, we should not build
secure-common, and not call omap_secure_init() for omap2.

Fixes: c37baa06f8a9 ("ARM: OMAP2+: Fix undefined reference to omap_secure_init")
Reported-by: kbuild test robot <lkp@intel.com>
Cc: Aaro Koskinen <aaro.koskinen@iki.fi>
Cc: Andrew F. Davis <afd@ti.com>
Cc: Arnd Bergmann <arnd@arndb.de>
Cc: Catalin Marinas <catalin.marinas@arm.com>
Cc: Marc Zyngier <maz@kernel.org>
Cc: Rob Herring <robh@kernel.org>
Cc: Russell King <rmk+kernel@arm.linux.org.uk>
Cc: Steven Price <steven.price@arm.com>
Cc: Will Deacon <will@kernel.org>
Signed-off-by: Tony Lindgren <tony@atomide.com>
arch/arm/mach-omap2/Makefile
arch/arm/mach-omap2/io.c