lkml.org 
[lkml]   [2008]   [Dec]   [27]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Subject[PATCH] x86_64: Eliminate atleast 10684 sparse warnings
    From
    Date
    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




    \
     
     \ /
      Last update: 2008-12-27 10:57    [W:0.023 / U:4.228 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site