From patchwork Wed Dec 6 21:48:04 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 120907 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp7585449qgn; Wed, 6 Dec 2017 13:49:50 -0800 (PST) X-Google-Smtp-Source: AGs4zMbGF+5ngGYGz8TQCnVr9UP8YKYR0I3vloz0oqY2rQEZ7E0EwN57UnKSD5/VWrfixBxP7c/Z X-Received: by 10.101.96.138 with SMTP id t10mr22950379pgu.335.1512596990011; Wed, 06 Dec 2017 13:49:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512596990; cv=none; d=google.com; s=arc-20160816; b=bGg0Svu3YgrnsKVrKB44pOD32PThQouoMgeiMSW9THJtb9F53Dw6QfuWDSxX+uEbJu 058bYOdzObXzbR7QF9D90NmDUGjjXPlqtY70SafUwxty7necSCjaV6hFrisjjy0+p7BZ oPpiCLtFg+S7m1LrWOmky0eknda0jUiqncu4gIeD1RStOqasnrmX3lSm2xydWlkq7Z+1 4Wef+IRvcPTQJa4qUgusP8PLSXiVTqSo3l/vlb3NVWTGaGm36kCkF44iFJrWiNr9zo2W 4lBnHO9MyFT6LF+lQtm2v334uRB4d/Z77Ycnz9q057IRnjIVCAIy8cQH0T58XcHG/SNk jAKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:message-id:date:subject:cc:to:from :arc-authentication-results; bh=vyXYMcPvnVZ8EogXkbzxFbKNhOYvjW59A0cGMkr1+7s=; b=reYoHGaTKZ8KlUqr14fibUlKzTb07wa8GWyz412XcZ3Z1K8SXSUU2S6JTr9g+fY0Qa XezDwB2F5g1QbPXN7njaB4hpojkEUXewNSvYdUjbs6hJuftLkj0toDRWPTONZjAsEUXQ eaaM4ih9YVHwikJUKmMyRsovyVy9c7PRwxyJLeFrtjFLoAR4w2dqmmIrnjv+uFC7TWpw Ob2ksPhgDIbSW/yORrMcovFSyRMPfeGJ9eYiYLy3ZSFGV8rBh2sa2o6LC1f+LLZRz+Bw 20unDTJ4rD36WU+wB2/EEvEFbDRumA/pNyZPds6aOcnDH6WtZrHghs03p3hQtC3r9CQP QVVw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-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 g2si2695822pli.212.2017.12.06.13.49.49; Wed, 06 Dec 2017 13:49:50 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-omap-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-omap-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-omap-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752599AbdLFVts (ORCPT + 4 others); Wed, 6 Dec 2017 16:49:48 -0500 Received: from mout.kundenserver.de ([212.227.17.10]:51563 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752598AbdLFVtr (ORCPT ); Wed, 6 Dec 2017 16:49:47 -0500 Received: from wuerfel.lan ([149.172.96.106]) by mrelayeu.kundenserver.de (mreue103 [212.227.15.145]) with ESMTPA (Nemesis) id 0Mfjsa-1ejkBm3FHI-00NCy1; Wed, 06 Dec 2017 22:49:18 +0100 From: Arnd Bergmann To: Tony Lindgren Cc: Arnd Bergmann , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH v2] ARM: omap2: hide omap3_save_secure_ram on non-OMAP3 builds Date: Wed, 6 Dec 2017 22:48:04 +0100 Message-Id: <20171206214916.2856657-1-arnd@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pIKah9Eg+7hWqbvFNQ== Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org 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") Signed-off-by: Arnd Bergmann --- v2: also check for CONFIG_PM arch/arm/mach-omap2/omap-secure.c | 2 ++ 1 file changed, 2 insertions(+) -- 2.9.0 -- To unsubscribe from this list: send the line "unsubscribe linux-omap" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/arch/arm/mach-omap2/omap-secure.c b/arch/arm/mach-omap2/omap-secure.c index f9303dc631e4..55b967758bb3 100644 --- a/arch/arm/mach-omap2/omap-secure.c +++ b/arch/arm/mach-omap2/omap-secure.c @@ -72,6 +72,7 @@ phys_addr_t omap_secure_ram_mempool_base(void) 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; @@ -90,6 +91,7 @@ u32 omap3_save_secure_ram(void __iomem *addr, int size) return ret; } +#endif /** * rx51_secure_dispatcher: Routine to dispatch secure PPA API calls