Re: [kbuild:kbuild 5/19] drivers/atm/eni.o: warning: objtool: eni_init_one()+0xe42: indirect call found in RETPOLINE build

From: Masahiro Yamada
Date: Tue Jul 16 2019 - 10:00:36 EST


On Tue, Jul 16, 2019 at 9:42 PM Seth Forshee <seth.forshee@xxxxxxxxxxxxx> wrote:
>
> On Tue, Jul 16, 2019 at 03:57:24PM +0900, Masahiro Yamada wrote:
> > (+ Josh Poimboeuf)
> >
> > On Tue, Jul 16, 2019 at 8:44 AM kbuild test robot <lkp@xxxxxxxxx> wrote:
> > >
> > > tree: https://kernel.googlesource.com/pub/scm/linux/kernel/git/masahiroy/linux-kbuild.git kbuild
> > > head: 0ff0c3753e06c0420c80dac1b0187a442b372acb
> > > commit: 2eaf4e87ba258cc3f27e486cdf32d5ba76303c6f [5/19] kbuild: add -fcf-protection=none to retpoline flags
> > > config: x86_64-randconfig-s2-07160214 (attached as .config)
> > > compiler: gcc-4.9 (Debian 4.9.4-2) 4.9.4
> > > reproduce:
> > > git checkout 2eaf4e87ba258cc3f27e486cdf32d5ba76303c6f
> > > # save the attached .config to linux build tree
> > > make ARCH=x86_64
> >
> > 0-day bot reports objtool warnings with the following applied:
> > https://patchwork.kernel.org/patch/11037379/
> >
> > I have no idea about objtool.
> >
> > Is it better to drop this patch for now?
>
> I'm surprised that the change would have any impact on a build with
> gcc-4.9, since -fcf-protection seems to have been introduced in gcc-8. I
> guess there's no full build log that would let us see the actual flags
> passed to the compiler.
>
> I'll try to reproduce this result. If you think the patch should be
> dropped in the meantime, that's fine.

Dropped now.

Thanks.

--
Best Regards
Masahiro Yamada