From patchwork Fri Sep 6 15:46:55 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 173266 Delivered-To: patch@linaro.org Received: by 2002:a05:6e02:ce:0:0:0:0 with SMTP id r14csp892049ilq; Fri, 6 Sep 2019 08:47:23 -0700 (PDT) X-Google-Smtp-Source: APXvYqy5Xvqhhm0agSho5BkSAVJdzV7n1ezP93VpytDGsHFqZRNQLCSEbi9laYOVaLtS/cMkveaw X-Received: by 2002:a17:902:8d82:: with SMTP id v2mr9730024plo.24.1567784843527; Fri, 06 Sep 2019 08:47:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567784843; cv=none; d=google.com; s=arc-20160816; b=W6WAth5DSRqTevLJaRNOnFY9jFXsxEqtzbDvkThyKR6KRpaCwWlcyIRYGcgMMhT/kw tKrS9nMA+v2+O8tN9elWtyLC23JnJGdRqHbfWlBkoTk/PWXzjdoal5yZRCV8Id5alifj WX1MQweEBcqYz4OFwW5C1b2mueD6U/iyN6h3ZqlI5d2dVWZbAO7sIaoMyOISL0Fr1Ptv Pik4+IlLS8aYDJIGCjjDgdbysd7/8oGOm6L4+BEFQ3hEScSifDgvuvSmpqH3rdUgwxWe afKyRn0dcixrnDGqfGHLVYr5J8KSWb72IqcTgZ2mLt42NzYYuXH1Ltk4H3a9mCp1h9Xw eJVg== 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 cp11si2949823plb.405.2019.09.06.08.47.23; Fri, 06 Sep 2019 08:47: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 S2405857AbfIFPrW (ORCPT + 28 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 X-Provags-ID: V03:K1:KxXBdm+ZdB2njEOuHI0sI2x2LTlMTwa/9hKBgBDFyvjWMqurBar 1eeQnRx0c2Ox7iIBg3bLDT3e+A5wv8//Hw8vhKUVdHCQTetfQSdrjrsU4gUPPAVUYMq8iZT KWgNizZG8M5JX8N3+1xp6Vcd4jLYGRQ83Jo27tXlyvYsVLbkW7W6om1aPaGGEKSRE9rkBZj QoIsM81fh05SMxn2RkQuw== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1; V03:K0:vdoyMlLfLcU=:2DVor/2vufbs+2xiNNaRoY fWU05+ahmmEOb9gMmRI4XWFn9VIEylv0+DmficJNI3Krbstw87f3wOIrlEFkWOCdWdG/YRvnS EfZPjYBJQAsFo5UkRNXPQDFrwKcCOcZGJI56UApZdhCAysBgKjHEHx6mFAagdxE4/0MprqVsr rKFOPTuBJO2JtHEXCAHRQg8X2Ihiy7pvRV9AvOgm3OhbCzC87ZVsqJdqCVaQdxheA5hBRvSA6 EGZuy18hFF2+RyjHnFKf0Gj65cAdfGMbkh9S83qBMI26tBaEV0UmjELm3sgXfv0t2D7aiA0xH HjwNLRQATNkk+YjodkxGlK4Jez+3kgbFtFHXLEkl4u0+zZFouJJ7K8gBrvaNXTVQUeYes5nQs vxi6Pn5vXCsFjGbL/Syj9H+9jI548oYiMo4IGvb7TwV5CjKQnJ473bKpWcXxEGhfm5I1wdOEq fe+G5UgO+xo7nfXQymwg+GugThSksgQKEp6nScmJq7dwoGb2yYASvI3IxRPLu3NMshjgpFan8 6RqnYGncFrUL0qfG/sdsAbuCnt2h+XwfSHIrotMJGF7XBex2CmX9x9oXFQH832A8U7RQc30sY DiWK9WZn2kQsl6Vw8NTd9bADyW6qob4mDnQtJkrHSbMO8qxY4TPYCgLk9TA1fHggPxk6C5FJR 1blQiqgk244xS49SOFkqL94iruf3zffktlDkzjDwKq5jP3KBQlf8ZvXDLt5BXO2gQKqhdaM0n zNCKzIdwQvS3SDWlGgbtA9XQuvo7yXs2lXMToBNNodcqmUfc0uQfgfCZ5EapqjXq8YVFCWxiV +JNrPBbpP6nuUpksqgzACYDRugBpQ== Sender: linux-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(-) -- 2.20.0 Reviewed-by: Masahiro Yamada Tested-by: Geert Uytterhoeven 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);