Received: by 10.213.65.68 with SMTP id h4csp510836imn; Fri, 16 Mar 2018 09:59:04 -0700 (PDT) X-Google-Smtp-Source: AG47ELvWfnbDIOejcGzwE5vGRKJ8H6b455c81u/gnqkaNwvimoq1CdrBAGJXKsC3i4Pvb3BggHbT X-Received: by 10.98.94.132 with SMTP id s126mr1405758pfb.191.1521219544277; Fri, 16 Mar 2018 09:59:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1521219544; cv=none; d=google.com; s=arc-20160816; b=CpyNP0ARxYF+Q/3NHOyfrxnUYIhXz5wzzDB93bTf0TYM4mZEgo85z4u4tbY66GWK05 J4WCy4mYGXbugOO4aFKR7+Lw6/gbJPh11am5Qb85PcQBJLsnpOq16oyL1XjRx7XSrCLn ck1ZUzx3/xzwAQ0Lm8E3K3NGF0+nUsqDsMl1mDPQxkbG2LPwV2ql2wy3FTjHUqHBe/lx H2Rn2OAPwTJZwbwpfIOBucDrDgoSVHeKl8Ddl/y7dfvVhshLXv8ieF9yE7nxXMHcjNfr qDBePrzb4qNGJSEwsbb17cEoUldx+F18aY17xv7GsuHkLW7uJVdUNNBY4xjj7X8sk1pO /aBg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=jy4fgDvvLtdCtv9aetXcS3R4+668ZiL7Bb6aEZqLUDI=; b=MNdMv83e0E7knAUysLNJWdNmZgPXHxbCJwUHhJbCLe1oo0FntI2s88tnefDb+lovla inqrRrF7zRtJ3wNvvWkIzSUlvBE3kj/kqE68v98vPInHN+jeBLvc1j3PWsVSjPLpqYgM AU2cXg3LFliwdWh1gOhRpHfD1j0y/OMm27bnIlN8uiDv+5RAewIvjH4in6UnVgh5sQoX 5AVpNd272+3X+netClbhjtSbsgTXpV9lVWFSonEZlsjfHUIJUmAPaXRbi4u4pg25CQG2 uVWsHUbWtDWuBBnuvdzMjHpfBRbzSBLpaIJ+EedGuMWYwyow2D3XKC7D3j+fqP4tcU68 VWUA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a100-v6si6497171pli.483.2018.03.16.09.58.50; Fri, 16 Mar 2018 09:59:04 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753283AbeCPQ4y (ORCPT + 99 others); Fri, 16 Mar 2018 12:56:54 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:39052 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933419AbeCPPdh (ORCPT ); Fri, 16 Mar 2018 11:33:37 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 03496D4F; Fri, 16 Mar 2018 15:33:36 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Tony Lindgren , Dan Murphy , Arnd Bergmann Subject: [PATCH 4.9 51/86] ARM: omap2: hide omap3_save_secure_ram on non-OMAP3 builds Date: Fri, 16 Mar 2018 16:23:14 +0100 Message-Id: <20180316152320.856535974@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180316152317.167709497@linuxfoundation.org> References: <20180316152317.167709497@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Arnd Bergmann commit 863204cfdae98626a92535ac928ad79f4d6b74ff upstream. In configurations without CONFIG_OMAP3 but with secure RAM support, we now run into a link failure: arch/arm/mach-omap2/omap-secure.o: In function `omap3_save_secure_ram': omap-secure.c:(.text+0x130): undefined reference to `save_secure_ram_context' The omap3_save_secure_ram() function is only called from the OMAP34xx power management code, so we can simply hide that function in the appropriate #ifdef. Fixes: d09220a887f7 ("ARM: OMAP2+: Fix SRAM virt to phys translation for save_secure_ram_context") Acked-by: Tony Lindgren Tested-by: Dan Murphy Signed-off-by: Arnd Bergmann Signed-off-by: Greg Kroah-Hartman --- arch/arm/mach-omap2/omap-secure.c | 2 ++ 1 file changed, 2 insertions(+) --- a/arch/arm/mach-omap2/omap-secure.c +++ b/arch/arm/mach-omap2/omap-secure.c @@ -73,6 +73,7 @@ phys_addr_t omap_secure_ram_mempool_base return omap_secure_memblock_base; } +#if defined(CONFIG_ARCH_OMAP3) && defined(CONFIG_PM) u32 omap3_save_secure_ram(void __iomem *addr, int size) { u32 ret; @@ -91,6 +92,7 @@ u32 omap3_save_secure_ram(void __iomem * return ret; } +#endif /** * rx51_secure_dispatcher: Routine to dispatch secure PPA API calls