Re: [PATCH] sparse doesn't support indirect_branch attribute

From: Luc Van Oostenryck
Date: Tue Feb 27 2018 - 17:36:27 EST


On Tue, Feb 27, 2018 at 02:12:28PM -0800, Linus Torvalds wrote:
> On Tue, Feb 27, 2018 at 12:18 PM, Randy Dunlap <rdunlap@xxxxxxxxxxxxx> wrote:
> >
> > I don't mind the patch, but I did send a patch for this attribute on Feb. 13, 2018,
> > to the sparse mailing list.
>
> I think the sparse plan is to just stop warning about unknown
> attributes, because it doesn't really help users (at most it's a note
> to a sparse developer).
>
> But sparse doesn't have the same regular releases the kernel has. Oh well.

To compensate this, I sent a patch to use '-Wno-unknown-attribute' for kernel
builds. Masahiro Yamada has already taken it to the linux-kbuild tree.
I'm not sure if it's planned for the next -rc or for 4.17, though.

-- Luc Van Oostenryck