Received: by 2002:a25:7ec1:0:0:0:0:0 with SMTP id z184csp1747529ybc; Wed, 13 Nov 2019 03:47:12 -0800 (PST) X-Google-Smtp-Source: APXvYqzMm3CdZnNYVEqM+DYREufr/CfmiVopXQdV1tTEF5RR6ORQnofkTckiyLbhAr+JIBt4u+ew X-Received: by 2002:a17:907:1114:: with SMTP id qu20mr2342452ejb.42.1573645632009; Wed, 13 Nov 2019 03:47:12 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1573645632; cv=none; d=google.com; s=arc-20160816; b=iiAcv5aJadRC3DhDzKtXfjeJZ9cLvkvMfHmqSz7VKhzEGCGX/GndLMQ1YxE5jyGS/s Sc5j1JE0J19xOVo4UrIbL7iJ+qwy8rpxQqUg/DeWMrqqz83FduRz/JIee+JijNdFl0pK 5ffkcMOKVmzomsQmO1C3J917gAffI1RNtCyYQJz8saUZB1akczYpn9DDbo0KhrpjjS6N 2sHacRQZx9G1XPfErojkU9Z5jH/+K4lUHLWGS8iz/MmpemIrbPrBH1Lmf+rPAjmUD0M8 iBR59zy7V2BEW0wXvRNB2a2QgMnydPgGNpxMiseXCuJ33PWdDSNcbRR8dpdjxl3akGMO Z53g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=MRSKd3LXrq6EXkXxAZKL+S6+5ayk867BwDtWpuS9mz8=; b=LD9uJIoMyqZ5mVlv0niL3qLfkpjiyPzd1tbHFq9Og820kFVL3KZolB6ZedvuKwmGiE K6aqQ6h8Sk/N3KmeRD8zWTWG/9MYOJRZSq2kci6g3K5cUrzGbQ/YAR7V1MVO5JKnXjui KW7+gVwNJuvnOybD4QJD+iqL50uafwLtYsUN1UZur6g2gd12t3QfUsh3+5yIn/bZjTBl Y5Jh8GZepnh2dXZ7Ojt20TnDNIN80JksJ1t9BGTsyjQZyAapBhPHgOtaxtex49i2WaVd 3HAHHFK0Y6+8lbZs5kBf1w8bugSXFFFvpcJn8OFLSw6JZu5TU20aF9NRcoFxzuvP9ePK d0tg== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=zwqfCn0v; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p7si979944edq.227.2019.11.13.03.46.46; Wed, 13 Nov 2019 03:47:11 -0800 (PST) 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; dkim=fail (test mode) header.i=@armlinux.org.uk header.s=pandora-2019 header.b=zwqfCn0v; 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; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=armlinux.org.uk Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727935AbfKMLpb (ORCPT + 99 others); Wed, 13 Nov 2019 06:45:31 -0500 Received: from pandora.armlinux.org.uk ([78.32.30.218]:39990 "EHLO pandora.armlinux.org.uk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727772AbfKMLpa (ORCPT ); Wed, 13 Nov 2019 06:45:30 -0500 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=armlinux.org.uk; s=pandora-2019; h=Sender:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=MRSKd3LXrq6EXkXxAZKL+S6+5ayk867BwDtWpuS9mz8=; b=zwqfCn0vRZA0CM6CtyrLz/+9V +lWhkic3YRH6CABAvhwerSJ/cOAVIoJTjcRSgMPry6XwiPMJjdyuVBNZs4vm7kXOJRUQM4EQtBrZw Pj/kdLrJgwrzFgKw/KkBeya9XRHim4+a8pnxwJtfFbzuQ+El5/VOhGYLur05jBBgQJ0oLxDhHLgaE 4cnVSithXvAqeuBnqKjk1NHMnknYWe7QBooMn6Pcf4cRwn9ouCwBe3lw7LiQwMThCJL4pWvAzaIEv 693n/MWTjJZ12t5RN7DNaNYM5SkmSdJXS7cJoSln/vCAqNOCRG/xSKU6oa7GdxI9oZxr5RrTYwbJy bEVQ++kHw==; Received: from shell.armlinux.org.uk ([2001:4d48:ad52:3201:5054:ff:fe00:4ec]:55652) by pandora.armlinux.org.uk with esmtpsa (TLSv1.2:ECDHE-RSA-AES256-GCM-SHA384:256) (Exim 4.90_1) (envelope-from ) id 1iUr5L-0003xa-6p; Wed, 13 Nov 2019 11:45:19 +0000 Received: from linux by shell.armlinux.org.uk with local (Exim 4.92) (envelope-from ) id 1iUr5K-0002Qk-0R; Wed, 13 Nov 2019 11:45:18 +0000 Date: Wed, 13 Nov 2019 11:45:17 +0000 From: Russell King - ARM Linux admin To: Masahiro Yamada Cc: Arnd Bergmann , Thomas Gleixner , Enrico Weigelt , Linux ARM , Linux Kernel Mailing List , Geert Uytterhoeven Subject: Re: [PATCH] ARM: don't export unused return_address() Message-ID: <20191113114517.GO25745@shell.armlinux.org.uk> References: <20190906154706.2449696-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.10.1 (2018-07-13) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 13, 2019 at 08:40:39PM +0900, Masahiro Yamada wrote: > On Tue, Oct 1, 2019 at 11:31 PM Geert Uytterhoeven wrote: > > > > Hi Arnd, > > > > On Fri, Sep 6, 2019 at 5:47 PM Arnd Bergmann wrote: > > > 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 > > > > Thanks for your patch! > > > > Tested-by: Geert Uytterhoeven > > > > > --- 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; > > > } > > > > > > > Checkpatch doesn't like the empty line above: > > > > WARNING: EXPORT_SYMBOL(foo); should immediately follow its function/variable > > > > > +EXPORT_SYMBOL_GPL(return_address); > > > + > > > #endif /* if defined(CONFIG_FRAME_POINTER) && !defined(CONFIG_ARM_UNWIND) */ > > > > > > -EXPORT_SYMBOL_GPL(return_address); > > > > Gr{oetje,eeting}s, > > > > Geert > > > > -- > > Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org > > > > In personal conversations with technical people, I call myself a hacker. But > > when I'm talking to journalists I just say "programmer" or something like that. > > -- Linus Torvalds > > > > What has happened to this patch? > > I still see this warning. Simple - it got merged, it caused build regressions, it got dropped. A new version is pending me doing another round of patch merging. -- RMK's Patch system: https://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line in suburbia: sync at 12.1Mbps down 622kbps up According to speedtest.net: 11.9Mbps down 500kbps up