[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <CAK7LNARMjaCe8spDPMAKdViUN+uUycYL9LSCXumcR8DNDNKaPA@mail.gmail.com>
Date: Wed, 20 Nov 2019 18:42:52 +0900
From: Masahiro Yamada <yamada.masahiro@...ionext.com>
To: Russell King - ARM Linux admin <linux@...linux.org.uk>
Cc: Arnd Bergmann <arnd@...db.de>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Geert Uytterhoeven <geert@...ux-m68k.org>,
Thomas Gleixner <tglx@...utronix.de>,
Enrico Weigelt <info@...ux.net>,
Linux ARM <linux-arm-kernel@...ts.infradead.org>
Subject: Re: [PATCH] ARM: don't export unused return_address()
Hi Russell,
On Wed, Nov 20, 2019 at 6:07 PM Russell King - ARM Linux admin
<linux@...linux.org.uk> wrote:
>
> On Wed, Nov 20, 2019 at 06:02:13PM +0900, Masahiro Yamada wrote:
> > Hi Arnd,
> >
> >
> >
> > On Thu, Nov 14, 2019 at 2:01 AM Russell King - ARM Linux admin
> > <linux@...linux.org.uk> wrote:
> > >
> > > On Wed, Nov 13, 2019 at 02:15:00PM +0100, Geert Uytterhoeven wrote:
> > > > Hi Russell,
> > > >
> > > > On Wed, Nov 13, 2019 at 12:45 PM Russell King - ARM Linux admin
> > > > <linux@...linux.org.uk> wrote:
> > > > > On Wed, Nov 13, 2019 at 08:40:39PM +0900, Masahiro Yamada wrote:
> > > > > > On Tue, Oct 1, 2019 at 11:31 PM Geert Uytterhoeven <geert@...ux-m68k.org> wrote:
> > > > > > > On Fri, Sep 6, 2019 at 5:47 PM Arnd Bergmann <arnd@...db.de> 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 <arnd@...db.de>
> > > > > > >
> > > > > > > Thanks for your patch!
> > > > > > >
> > > > > > > Tested-by: Geert Uytterhoeven <geert+renesas@...der.be>
> > > > > > >
> > > > > > > > --- 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);
> > > >
> > > > > > 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.
> > > >
> > > > I believe that was not Arnd's patch, but Ben Dooks' alternative solution[*]?
> > >
> > > I don't keep track of who did what, sorry.
> >
> >
> > Arnd,
> >
> > I believe this patch is the correct fix.
> > Could you please put it into Russell's patch tracker?
> > (patches@....linux.org.uk)
>
> Is there something wrong with:
>
> fb033c95c94c ARM: 8918/2: only build return_address() if needed
>
> I haven't seen any build issues with that.
Sorry, I had not checked Ben's patch because you said
"Simple - it got merged, it caused build regressions, it got dropped."
Yup, I've checked it right now,
and it looks good to me.
But, I do not see that commit in the latest linux-next
(next-20191120).
Could you really apply it if you have not.
Thanks!
--
Best Regards
Masahiro Yamada
Powered by blists - more mailing lists