mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Randy Dunlap <rdunlap@infradead.org>
To: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Steven Rostedt <rostedt@goodmis.org>,
	LKML <linux-kernel@vger.kernel.org>,
	Ingo Molnar <mingo@kernel.org>,
	Andrew Morton <akpm@linux-foundation.org>,
	Daniel Bristot de Oliveira <bristot@kernel.org>,
	Lukas Bulwahn <lukas.bulwahn@gmail.com>,
	Masami Hiramatsu <mhiramat@kernel.org>
Subject: Re: [GIT PULL] tracing: Fixes and clean ups for v5.14
Date: Thu, 12 Aug 2021 13:47:23 -0700	[thread overview]
Message-ID: <2f39ab4d-695f-c5ed-5991-82a3aeacdba0@infradead.org> (raw)
In-Reply-To: <a294a454-89c8-d32c-3b0a-1c53480a8ab6@infradead.org>

On 8/12/21 11:57 AM, Randy Dunlap wrote:
> On 8/12/21 11:17 AM, Linus Torvalds wrote:
>> On Thu, Aug 12, 2021 at 8:04 AM Randy Dunlap <rdunlap@infradead.org> wrote:
>>>
>>> I just used some default settings. I didn't choose to use -Wmain.
>>
>> What broken distro, what broken gcc version?
> 
> openSUSE 15.3
> gcc (SUSE Linux) 7.5.0
> 
>> We can certainly add a -Wno-main for this case. We already do that for
>> a lot of other idiotic warnings like -Wno-pointer-sign.
> 
> That's what my first patch did, but Steven didn't like it.
> 
>> But when we do so, I want the exact tool and distro version named and
>> shamed. Because I sure don't see that warning, and from what I can
>> tell, most other people don't see it either.
>>
>> So it's almost certainly your distro that has configured the gcc
>> install incorrectly - or some new gcc version that makes new insane
>> defaults. The commit message should talk about those kinds of details,
>> exactly so that people like me get an explanation for why we'd need
>> that odd '-Wno-main' flag.
>>
>> Maybe even the line in the Makefile should have it. Like that
>> -Wno-pointer-sign thing does:
>>
>>    # disable pointer signed / unsigned warnings in gcc 4.0
>>    KBUILD_CFLAGS += -Wno-pointer-sign
>>
>> just because unexplained random compiler flags are a bad thing (the
>> same way unexplained random code changes due to them are bad)

I probably misread that a bit. To be clear, my patch only set -Wno-main
for this one source file, not for the entire kernel tree, whereas Steven
wanted it to be set to the full kernel tree.


-- 
~Randy


  reply	other threads:[~2021-08-12 20:47 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-08-12 15:29 Steven Rostedt
2021-08-12 17:18 ` Linus Torvalds
2021-08-12 17:33   ` Steven Rostedt
2021-08-12 17:54     ` Linus Torvalds
2021-08-12 18:04       ` Randy Dunlap
2021-08-12 18:17         ` Linus Torvalds
2021-08-12 18:57           ` Randy Dunlap
2021-08-12 20:47             ` Randy Dunlap [this message]
2021-08-13  2:06               ` Linus Torvalds

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=2f39ab4d-695f-c5ed-5991-82a3aeacdba0@infradead.org \
    --to=rdunlap@infradead.org \
    --cc=akpm@linux-foundation.org \
    --cc=bristot@kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=lukas.bulwahn@gmail.com \
    --cc=mhiramat@kernel.org \
    --cc=mingo@kernel.org \
    --cc=rostedt@goodmis.org \
    --cc=torvalds@linux-foundation.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®