Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp1710556ybe; Sat, 7 Sep 2019 01:07:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqzSgmNlPk931QLrmkYJ/umwOA7yqUO+I8NkYGtTQohtaTeB/vOamrON/jLkLLEiVzm3hwz7 X-Received: by 2002:a17:902:7c15:: with SMTP id x21mr7208885pll.181.1567843643638; Sat, 07 Sep 2019 01:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567843643; cv=none; d=google.com; s=arc-20160816; b=Ti5uEejiD2zjVzju3mQPBG7QfbWTi8M66Mqe2KKNpYabXRIapK/31/7vrhW0obWrng Aun5mQNZei37zGEP+ln6zM7f8WejGi0ELkNL25rDXxaZQfuNZgKiMD4SHh0HDlgB5n3l o9LxnE3NnC5UHv8WNna27ULe9YZDSHVs+o36WXODn4FU7eIIUG4jpujj/o+taF5+ijNS rkRPQQTErglF6uHTE9vfsMRxu3GmobuQuqi2FfeT2Hrm9ZzMorWOl6pGnAwYTxAG2N+m Sxg81vAxZkjdjqr2OhGMY2NyHLxcUKv4FoH2c7v08vCVbq75r3gbGLyrMz4GshTytZDE kdqQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=1E+LG/FNfWE9OnHIpMdldUiXqGXSULg9sQSkATlqQFs=; b=YWY1VmFkc62YydIrIFXZffd9Jin1iOgyOivoK9gCMz5RQXMxaFsZWVfBLSrQVArHXq mHv54aDzX8v8kMjuqDZ1sD8AAiAvzYyryodyWfJ6LCorP28iVyILimBK8sjgwcMm46vD jqw7SYYquBIz7Fyiyf/vIVTZaHmr8FH7du+Cr1FXlCBWHfBRxw37WjL77fpElf0Tlwic Md//94SBAyzFAwc8hQi+0ZcpL6evzTMVDqtGMT6K57ROKZLWBYlq9iQzVEs+TBHp2uVA 9mxvyZHwJD/314lpP9vv7Nz8LOT9/TORSoWzOrN1fQsz0rXnRf8kBSQRVAeh5H+vTm7u XwMA== 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 g24si6560329pgh.416.2019.09.07.01.07.07; Sat, 07 Sep 2019 01:07:23 -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 S2405853AbfIFPrW (ORCPT + 99 others); Fri, 6 Sep 2019 11:47:22 -0400 Received: from mout.kundenserver.de ([212.227.126.134]:38231 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2405844AbfIFPrV (ORCPT ); Fri, 6 Sep 2019 11:47:21 -0400 Received: from threadripper.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue010 [212.227.15.129]) with ESMTPA (Nemesis) id 1MiaLn-1ic0673Twl-00fnCZ; Fri, 06 Sep 2019 17:47:08 +0200 From: Arnd Bergmann To: Russell King Cc: Arnd Bergmann , Thomas Gleixner , Enrico Weigelt , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: don't export unused return_address() Date: Fri, 6 Sep 2019 17:46:55 +0200 Message-Id: <20190906154706.2449696-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:KxXBdm+ZdB2njEOuHI0sI2x2LTlMTwa/9hKBgBDFyvjWMqurBar 1eeQ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-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Without the frame pointer enabled, return_address() is an inline function and does not need to be exported, as shown by this warning: WARNING: "return_address" [vmlinux] is a static EXPORT_SYMBOL_GPL Move the EXPORT_SYMBOL_GPL() into the #ifdef as well. Signed-off-by: Arnd Bergmann --- arch/arm/kernel/return_address.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/arm/kernel/return_address.c b/arch/arm/kernel/return_address.c index b0d2f1fe891d..fb0fc1910102 100644 --- a/arch/arm/kernel/return_address.c +++ b/arch/arm/kernel/return_address.c @@ -53,6 +53,7 @@ void *return_address(unsigned int level) return NULL; } +EXPORT_SYMBOL_GPL(return_address); + #endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) */ -EXPORT_SYMBOL_GPL(return_address); -- 2.20.0