[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20210816220557.2253bc10@oasis.local.home>
Date: Mon, 16 Aug 2021 22:05:57 -0400
From: Steven Rostedt <rostedt@...dmis.org>
To: Linus Torvalds <torvalds@...ux-foundation.org>
Cc: Randy Dunlap <rdunlap@...radead.org>,
Linux Kernel Mailing List <linux-kernel@...r.kernel.org>,
Daniel Bristot de Oliveira <bristot@...nel.org>,
Masahiro Yamada <masahiroy@...nel.org>,
Michal Marek <michal.lkml@...kovi.net>,
Linux Kbuild mailing list <linux-kbuild@...r.kernel.org>
Subject: Re: [PATCH] Makefile: use -Wno-main in the full kernel tree
On Mon, 16 Aug 2021 15:31:33 -1000
Linus Torvalds <torvalds@...ux-foundation.org> wrote:
> On Mon, Aug 16, 2021 at 3:01 PM Randy Dunlap <rdunlap@...radead.org> wrote:
> >
> > That sounds likely. We can just ignore this if you had rather go that way.
>
> I'm happy doing it, I don't think the Wmain warnings buy anything for
> the kernel. My main worry is just that some compiler version might not
> support it at all or similar, and it would cause problems that way.
>
> Which is really the only reason why I'd like to narrow it down as much
> as (trivially) possible.
>
> It doesn't sound worth trying to pinpoint exact gcc version, but
> making it gcc-only would at least narrow it down a _bit_.
Looks to me that -Wmain and -Wno-main have been in gcc for a long time.
If we limit it to just gcc, I believe it will not be an issue for any
compiler version the kernel supports.
https://gcc.gnu.org/onlinedocs/gcc/Option-Index.html
And perhaps you are correct, as this is not a new option (it's in all
the gcc versions I have (tested back to 4.2.4)), and it didn't trigger
for me, I too believe this was a bug in a particular version that Randy
used.
-- Steve
Powered by blists - more mailing lists