public inbox for linux-acpi@vger.kernel.org
 help / color / mirror / Atom feed
From: Borislav Petkov <bp@alien8.de>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: Alan Cox <alan@lxorguk.ukuu.org.uk>,
	Andrew Morton <akpm@linux-foundation.org>,
	Andreas Mohr <andi@lisas.de>,
	linux-kernel@vger.kernel.org, Li Shaohua <shaohua.li@intel.com>,
	linux-acpi@vger.kernel.org
Subject: Re: Look Ma, da kernel is b0rken
Date: Wed, 5 Dec 2012 22:12:45 +0100	[thread overview]
Message-ID: <20121205211244.GA6239@liondog.tnic> (raw)
In-Reply-To: <20121206075721.18c0c05aa767b330f47d77eb@canb.auug.org.au>

On Thu, Dec 06, 2012 at 07:57:21AM +1100, Stephen Rothwell wrote:
> On Wed, 5 Dec 2012 15:47:49 +0000 Alan Cox <alan@lxorguk.ukuu.org.uk> wrote:
> > And yes btw we should turn this option on in -next, and get these sort of
> > things out of the tree for good. More importantly it'll mean anyone
> > adding another one gets a whine on the spot.
> 
> While I appreciate your confidence, I don't notice quite a few new
> warnings (because there are so many of them already :-().  Is there some
> reason to not turn this on in our "normal" builds?  Does it produce many
> false positives?

Yes, it produces a huge number of warnings which need weeding out (some
of them are false positives and some of them are simply unfixable due to
design decisions in the kernel, etc, etc):

$ make W=123 drivers/pnp/pnpacpi/core.o 2> w.log
make[1]: Nothing to be done for `all'.
  CHK     include/generated/uapi/linux/version.h
  CHK     include/generated/utsrelease.h
make[1]: Nothing to be done for `relocs'.
  CALL    scripts/checksyscalls.sh
  CC      drivers/pnp/pnpacpi/core.o
$ wc w.log
  2305  11202 168011 w.log

This is 2305 lines only for one compilation unit.

So if one enables all additional warning levels (this is what "W=123"
does) your build logs will be huge.

> What compiler version is required?

Works on all compilers by checking for supported -W options - see
scripts/Makefile.build.

> I also currently don't carry patches that only ever appear in
> linux-next (well, not intentionally anyway). I assume it would require
> a patch to the Makefile(s) to turn this on.

See above.

So ideally it would be if someone would build with "W=123" and track all
new warnings appearing with each new patch in linux-next and nag the
patch author to fix it before it hits mainline. This would require a
moderate level of scripting and experimenting though. The advantage is
that with something like that we'll be able to use all -W code checking
methods implemented gcc on our code and let the compiler possibly catch
more stuff.

We simply need someone not lazy enough to write that tracking and
nagging bit :).

Thanks.

-- 
Regards/Gruss,
    Boris.

  reply	other threads:[~2012-12-05 21:12 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-12-05  7:09 Look Ma, da kernel is b0rken Andreas Mohr
2012-12-05 14:29 ` Borislav Petkov
2012-12-05 15:27   ` Alan Cox
2012-12-05 15:31     ` Borislav Petkov
2012-12-05 15:47       ` Alan Cox
2012-12-05 15:59         ` Borislav Petkov
2012-12-05 17:04           ` Geert Uytterhoeven
2012-12-05 17:37             ` Borislav Petkov
2012-12-05 20:57         ` Stephen Rothwell
2012-12-05 21:12           ` Borislav Petkov [this message]
2012-12-05 21:41             ` Alan Cox
2012-12-05 21:46               ` Borislav Petkov
2012-12-05 21:39           ` Alan Cox
2012-12-05 21:38       ` Andrew Morton
2012-12-05 21:50         ` Borislav Petkov
2012-12-07 16:52         ` Andreas Mohr
2012-12-07 17:44           ` Borislav Petkov
2012-12-08  7:36             ` Andreas Mohr
2012-12-08 10:52               ` Borislav Petkov
2012-12-08 23:04                 ` Alan Cox
2012-12-05 16:39     ` Andreas Mohr
2012-12-05 16:44       ` Borislav Petkov
2012-12-05 17:09         ` Andreas Mohr
2012-12-05 17:34           ` Borislav Petkov
2012-12-05 23:38     ` Rafael J. Wysocki
2012-12-05 23:35       ` Borislav Petkov
2012-12-06 14:04       ` Alan Cox
2012-12-06 20:56         ` Rafael J. Wysocki
2012-12-06 20:59           ` Borislav Petkov
2012-12-06 21:21             ` Rafael J. Wysocki
2012-12-06 21:20               ` Borislav Petkov

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=20121205211244.GA6239@liondog.tnic \
    --to=bp@alien8.de \
    --cc=akpm@linux-foundation.org \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=andi@lisas.de \
    --cc=linux-acpi@vger.kernel.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sfr@canb.auug.org.au \
    --cc=shaohua.li@intel.com \
    /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