Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 8614ec57 authored by Rohit Vaswani's avatar Rohit Vaswani
Browse files

qcom: scm-boot: Fix definitions when MSM_SCM is not defined



When config MSM_SCM is not defined the alternate definitions of the
functions cause a compile error if they are not static inlined.
This patch makes them static inline.

Change-Id: I8c6e615b950be9d12d922441519d0f3b1327ba2d
Signed-off-by: default avatarRohit Vaswani <rvaswani@codeaurora.org>
parent 6791a1be
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -44,13 +44,13 @@ static inline int scm_set_boot_addr(phys_addr_t addr, unsigned int flags)
	WARN_ONCE(1, "CONFIG_MSM_SCM disabled, SCM call will fail silently\n");
	return 0;
}
int scm_set_boot_addr_mc(phys_addr_t addr, u32 aff0,
static inline int scm_set_boot_addr_mc(phys_addr_t addr, u32 aff0,
		u32 aff1, u32 aff2, u32 flags)
{
	WARN_ONCE(1, "CONFIG_MSM_SCM disabled, SCM call will fail silently\n");
	return 0;
}
int scm_set_warm_boot_addr_mc_for_all(phys_addr_t addr)
static inline int scm_set_warm_boot_addr_mc_for_all(phys_addr_t addr)
{
	WARN_ONCE(1, "CONFIG_MSM_SCM disabled, SCM call will fail silently\n");
	return 0;