LKML Archive on lore.kernel.org
help / color / mirror / Atom feed
* whence CONFIG_PROVE_SPIN_LOCKING?
@ 2007-03-18 20:26 Robert P. J. Day
  2007-03-18 20:57 ` Jiri Kosina
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2007-03-18 20:26 UTC (permalink / raw)
  To: Linux Kernel Mailing List


$ grep -r PROVE_SPIN_LOCKING *
Documentation/irqflags-tracing.txt:CONFIG_TRACE_IRQFLAGS_SUPPORT is needed for CONFIG_PROVE_SPIN_LOCKING
kernel/spinlock.c:#ifdef CONFIG_PROVE_SPIN_LOCKING

rday
-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: whence CONFIG_PROVE_SPIN_LOCKING?
  2007-03-18 20:26 whence CONFIG_PROVE_SPIN_LOCKING? Robert P. J. Day
@ 2007-03-18 20:57 ` Jiri Kosina
  2007-03-18 21:06   ` Robert P. J. Day
  0 siblings, 1 reply; 4+ messages in thread
From: Jiri Kosina @ 2007-03-18 20:57 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Linux Kernel Mailing List, Ingo Molnar

On Sun, 18 Mar 2007, Robert P. J. Day wrote:

> $ grep -r PROVE_SPIN_LOCKING *
> Documentation/irqflags-tracing.txt:CONFIG_TRACE_IRQFLAGS_SUPPORT is needed for CONFIG_PROVE_SPIN_LOCKING
> kernel/spinlock.c:#ifdef CONFIG_PROVE_SPIN_LOCKING

This should almost certainly be CONFIG_PROVE_LOCKING ... ?

-- 
Jiri Kosina

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: whence CONFIG_PROVE_SPIN_LOCKING?
  2007-03-18 20:57 ` Jiri Kosina
@ 2007-03-18 21:06   ` Robert P. J. Day
  2007-03-18 21:42     ` Denis Vlasenko
  0 siblings, 1 reply; 4+ messages in thread
From: Robert P. J. Day @ 2007-03-18 21:06 UTC (permalink / raw)
  To: Jiri Kosina; +Cc: Linux Kernel Mailing List, Ingo Molnar

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1563 bytes --]

On Sun, 18 Mar 2007, Jiri Kosina wrote:

> On Sun, 18 Mar 2007, Robert P. J. Day wrote:
>
> > $ grep -r PROVE_SPIN_LOCKING *
> > Documentation/irqflags-tracing.txt:CONFIG_TRACE_IRQFLAGS_SUPPORT is needed for CONFIG_PROVE_SPIN_LOCKING
> > kernel/spinlock.c:#ifdef CONFIG_PROVE_SPIN_LOCKING
>
> This should almost certainly be CONFIG_PROVE_LOCKING ... ?

actually, no, i found this web page:

http://www.ussg.iu.edu/hypermail/linux/kernel/0606.0/0527.html

which refers to a number of related "PROVE" options.  what their
status is these days is not clear, but i'm just pointing out that
someone is testing the one above when it can't possibly be set
anywhere.

rday

p.s.  just FYI, i ran my "find dead CONFIG variables" script on the
entire tree and, as we speak, there are 316 preprocessor tests that
are testing variables of the form "CONFIG_whatever" for which that
option is not set anywhere in the tree.  (that is, 316 distinct
variables, not just 316 distinct tests.)  see the attached script and
feel free to run it from the top of the tree on your favourite
directory or sub-directory.

i'm not saying every one of those examples represents an error.  some
of those might be set in a makefile, etc.  but it's enlghtening to run
it anyway to see the output.

-- 
========================================================================
Robert P. J. Day
Linux Consulting, Training and Annoying Kernel Pedantry
Waterloo, Ontario, CANADA

http://fsdev.net/wiki/index.php?title=Main_Page
========================================================================

[-- Attachment #2: Type: APPLICATION/X-SH, Size: 502 bytes --]

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: whence CONFIG_PROVE_SPIN_LOCKING?
  2007-03-18 21:06   ` Robert P. J. Day
@ 2007-03-18 21:42     ` Denis Vlasenko
  0 siblings, 0 replies; 4+ messages in thread
From: Denis Vlasenko @ 2007-03-18 21:42 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: Jiri Kosina, Linux Kernel Mailing List, Ingo Molnar

Hi,

On Sunday 18 March 2007 22:06, Robert P. J. Day wrote:
> p.s.  just FYI, i ran my "find dead CONFIG variables" script on the
> entire tree and, as we speak, there are 316 preprocessor tests that
> are testing variables of the form "CONFIG_whatever" for which that
> option is not set anywhere in the tree.  (that is, 316 distinct
> variables, not just 316 distinct tests.)  see the attached script and
> feel free to run it from the top of the tree on your favourite
> directory or sub-directory.

In busybox project we adopted the usage of -Wundef
and we try to minimize usage of #ifdef CONFIG_xxx - each boolean
CONFIG_xxx option for busybox is accompanied with
ENABLE_xxx #define which is 1 or 0, never "undefined",
and we check it instead of CONFIG_xxx.

Because if -Wundef, gcc complains whenever we use #if
on undefined ENABLE_xxx.
--
vda

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2007-03-18 21:42 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-03-18 20:26 whence CONFIG_PROVE_SPIN_LOCKING? Robert P. J. Day
2007-03-18 20:57 ` Jiri Kosina
2007-03-18 21:06   ` Robert P. J. Day
2007-03-18 21:42     ` Denis Vlasenko

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).