Received: by 10.213.65.68 with SMTP id h4csp423646imn; Tue, 13 Mar 2018 08:36:44 -0700 (PDT) X-Google-Smtp-Source: AG47ELti+1ItATOgbw7InureikNuVFTH8V3+dNB9aoBU1ImZNbSQnhi0XH8zbldAVdqhQu+yBpPv X-Received: by 2002:a17:902:5a5:: with SMTP id f34-v6mr966591plf.288.1520955404766; Tue, 13 Mar 2018 08:36:44 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520955404; cv=none; d=google.com; s=arc-20160816; b=SelxPKjlh5o67TPFVWoOjBI1T88ExQU9vq8KBhoFcyccVo30uZKXe5MMP9wcjuexZJ HRQLywXY224VGERzQ1v0v59DUrkP/yVuCRp3Ir6hLIo9ZJOJjDHMaU5rbQ4GhTqVEk8k estNTncE0+OThUcPcMI6H0Nm/C22P/JwAAkdP4E42WqqgkB8KxMBjKWlPLA/e9TMCwVV iOahLMuplBMif5onnJcHeeNHqfAw9604JDyFBV42785bDoFgvSujRkaSu5HLy11WFixT g8TmMOfX/wzTxEEedjNyJxqgAA0i8mgSAAT0w34Wxw2t2bImV7dRVMt4PwJatetLHAhC jbBw== 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=SLoM55vpuxBg+fd0AHGeriYXjv1LKCr/lfAVgG+YwJI=; b=IjffH+5G+rUjK99IyfpyPqEQZ3zcvRReRi3VzedgbX16Nw6Sw6xYUGwA0S8ULQVdQu JtgfNT/VLdf4I7HaBsc9qURKgfX554xlTY8llik3rVogMk34eFLuXIxVneOEUStejqde dVsnOZkpL2SmripYUVeE55pNy9GyDXdGiJQ+p4Ji7BVgn87X/HaioTNsM+mR5kUAAYsu 5Gmd81GOfK9uOxUzdDfRnpgHz5oVpMS/VYiSY4Xg6Y049QrI6Rb27MxbYXliqlIr3ht2 KwKBodgr/IcF4ET+U0p1BOJUIEPwhDFaQv0bWRvVqPc58yv33iezicuGuI04wH4G6lda f3Zw== 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 e30si262441pgn.261.2018.03.13.08.36.30; Tue, 13 Mar 2018 08:36:44 -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 S933940AbeCMPfO (ORCPT + 99 others); Tue, 13 Mar 2018 11:35:14 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:33068 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933921AbeCMPfK (ORCPT ); Tue, 13 Mar 2018 11:35:10 -0400 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 55DF710CE; Tue, 13 Mar 2018 15:35:09 +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.14 006/140] ARM: omap2: hide omap3_save_secure_ram on non-OMAP3 builds Date: Tue, 13 Mar 2018 16:23:29 +0100 Message-Id: <20180313152458.583753794@linuxfoundation.org> X-Mailer: git-send-email 2.16.2 In-Reply-To: <20180313152458.201155692@linuxfoundation.org> References: <20180313152458.201155692@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.14-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