public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] x86_64: Eliminate atleast 10684 sparse warnings
@ 2008-12-27  9:51 Jaswinder Singh Rajput
  2008-12-27  9:59 ` Ingo Molnar
  2008-12-27 10:07 ` Andrew Morton
  0 siblings, 2 replies; 4+ messages in thread
From: Jaswinder Singh Rajput @ 2008-12-27  9:51 UTC (permalink / raw)
  To: Ingo Molnar, x86 maintainers, Andrew Morton, Andi Kleen,
	randy.dunlap, LKML

Impact: cleanup, avoid 10000+ sparse warnings

Eliminate 1434 sparse warnings like:
include/linux/list.h:106:16: warning: constant 0xdead000000000000 is so big it is unsigned long

Eliminate 1434 sparse warnings like:
include/linux/list.h:107:16: warning: constant 0xdead000000000000 is so big it is unsigned long

Eliminate 1434 sparse warnings like:
include/linux/list.h:579:12: warning: constant 0xdead000000000000 is so big it is unsigned long

Eliminate 1434 sparse warnings like:
include/linux/list.h:580:13: warning: constant 0xdead000000000000 is so big it is unsigned long

Eliminate 1237 sparse warnings like:
include/linux/rculist.h:97:16: warning: constant 0xdead000000000000 is so big it is unsigned long

Eliminate 1237 sparse warnings like:
include/linux/rculist.h:143:14: warning: constant 0xdead000000000000 is so big it is unsigned long

Eliminate 1237 sparse warnings like:
include/linux/rculist.h:260:13: warning: constant 0xdead000000000000 is so big it is unsigned long

Eliminate 1237 sparse warnings like:
include/linux/rculist.h:280:15: warning: constant 0xdead000000000000 is so big it is unsigned long

Signed-off-by: Jaswinder Singh Rajput <jaswinderrajput@gmail.com>
---
 include/linux/poison.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/include/linux/poison.h b/include/linux/poison.h
index 603d3bd..f2de9a9 100644
--- a/include/linux/poison.h
+++ b/include/linux/poison.h
@@ -9,7 +9,7 @@
  * that is also not mappable by user-space exploits:
  */
 #ifdef CONFIG_ILLEGAL_POINTER_VALUE
-# define POISON_POINTER_DELTA CONFIG_ILLEGAL_POINTER_VALUE
+# define POISON_POINTER_DELTA _AC(CONFIG_ILLEGAL_POINTER_VALUE, UL)
 #else
 # define POISON_POINTER_DELTA 0
 #endif
-- 
1.5.5.1




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

* Re: [PATCH] x86_64: Eliminate atleast 10684 sparse warnings
  2008-12-27  9:51 [PATCH] x86_64: Eliminate atleast 10684 sparse warnings Jaswinder Singh Rajput
@ 2008-12-27  9:59 ` Ingo Molnar
  2008-12-27 10:07 ` Andrew Morton
  1 sibling, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-12-27  9:59 UTC (permalink / raw)
  To: Jaswinder Singh Rajput
  Cc: x86 maintainers, Andrew Morton, Andi Kleen, randy.dunlap, LKML


* Jaswinder Singh Rajput <jaswinder@infradead.org> wrote:

> Impact: cleanup, avoid 10000+ sparse warnings

:-)

>  include/linux/poison.h |    2 +-
>  1 files changed, 1 insertions(+), 1 deletions(-)

applied to tip/safe-poison-pointers, thanks Jaswinder!

	Ingo

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

* Re: [PATCH] x86_64: Eliminate atleast 10684 sparse warnings
  2008-12-27  9:51 [PATCH] x86_64: Eliminate atleast 10684 sparse warnings Jaswinder Singh Rajput
  2008-12-27  9:59 ` Ingo Molnar
@ 2008-12-27 10:07 ` Andrew Morton
  2008-12-27 10:20   ` Ingo Molnar
  1 sibling, 1 reply; 4+ messages in thread
From: Andrew Morton @ 2008-12-27 10:07 UTC (permalink / raw)
  To: Jaswinder Singh Rajput
  Cc: Ingo Molnar, x86 maintainers, Andi Kleen, randy.dunlap, LKML

On Sat, 27 Dec 2008 15:21:36 +0530 Jaswinder Singh Rajput <jaswinder@infradead.org> wrote:

>  #ifdef CONFIG_ILLEGAL_POINTER_VALUE
> -# define POISON_POINTER_DELTA CONFIG_ILLEGAL_POINTER_VALUE
> +# define POISON_POINTER_DELTA _AC(CONFIG_ILLEGAL_POINTER_VALUE, UL)
>  #else
>  # define POISON_POINTER_DELTA 0
>  #endif

So now

commit 948f984df52511bb0efa5c026813b0c34de43aa0
Author:     Avi Kivity <avi@qumranet.com>
AuthorDate: Tue May 20 14:39:25 2008 +0300
Commit:     Ingo Molnar <mingo@elte.hu>
CommitDate: Tue May 20 13:42:31 2008 +0200

    core, x86: make LIST_POISON less deadly

gets splattered across three commits (at least).  Sigh.

(how come that patch is 7 moonths old and still unmerged, btw?)

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

* Re: [PATCH] x86_64: Eliminate atleast 10684 sparse warnings
  2008-12-27 10:07 ` Andrew Morton
@ 2008-12-27 10:20   ` Ingo Molnar
  0 siblings, 0 replies; 4+ messages in thread
From: Ingo Molnar @ 2008-12-27 10:20 UTC (permalink / raw)
  To: Andrew Morton
  Cc: Jaswinder Singh Rajput, x86 maintainers, Andi Kleen, randy.dunlap,
	LKML


* Andrew Morton <akpm@linux-foundation.org> wrote:

> On Sat, 27 Dec 2008 15:21:36 +0530 Jaswinder Singh Rajput <jaswinder@infradead.org> wrote:
> 
> >  #ifdef CONFIG_ILLEGAL_POINTER_VALUE
> > -# define POISON_POINTER_DELTA CONFIG_ILLEGAL_POINTER_VALUE
> > +# define POISON_POINTER_DELTA _AC(CONFIG_ILLEGAL_POINTER_VALUE, UL)
> >  #else
> >  # define POISON_POINTER_DELTA 0
> >  #endif
> 
> So now
> 
> commit 948f984df52511bb0efa5c026813b0c34de43aa0
> Author:     Avi Kivity <avi@qumranet.com>
> AuthorDate: Tue May 20 14:39:25 2008 +0300
> Commit:     Ingo Molnar <mingo@elte.hu>
> CommitDate: Tue May 20 13:42:31 2008 +0200
> 
>     core, x86: make LIST_POISON less deadly
> 
> gets splattered across three commits (at least).  Sigh.

Can rebase, although that would hide the (deserved) credit that 
Jaswinder's patch deserves. And it does not appear to be a must-rebase 
example to me - it's not like one does sparse builds during bisection.

> (how come that patch is 7 moonths old and still unmerged, btw?)

Linus had reservations about the first version (which got fixed but which 
prevented it from going upstream in the first cycle) - and it's not an 
exactly critical change and other stuff interfered. All our previous merge 
windows were fully filled ;)

	Ingo

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

end of thread, other threads:[~2008-12-27 10:21 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-12-27  9:51 [PATCH] x86_64: Eliminate atleast 10684 sparse warnings Jaswinder Singh Rajput
2008-12-27  9:59 ` Ingo Molnar
2008-12-27 10:07 ` Andrew Morton
2008-12-27 10:20   ` Ingo Molnar

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox