lkml.org 
[lkml]   [2008]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    Date
    From
    Subject[PATCH -tip] rcuclassic: fix compiler warning
    From: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>

    CC kernel/rcuclassic.o
    kernel/rcuclassic.c: In function 'rcu_init_percpu_data':
    kernel/rcuclassic.c:705: warning: comparison of distinct pointer types lacks a cast
    kernel/rcuclassic.c:713: warning: comparison of distinct pointer types lacks a cast

    flags should be unsigned long.

    Signed-off-by: Hiroshi Shimamoto <h-shimamoto@ct.jp.nec.com>
    ---
    kernel/rcuclassic.c | 2 +-
    1 files changed, 1 insertions(+), 1 deletions(-)

    diff --git a/kernel/rcuclassic.c b/kernel/rcuclassic.c
    index fb1f1cc..86ff6d6 100644
    --- a/kernel/rcuclassic.c
    +++ b/kernel/rcuclassic.c
    @@ -700,7 +700,7 @@ void rcu_check_callbacks(int cpu, int user)
    static void rcu_init_percpu_data(int cpu, struct rcu_ctrlblk *rcp,
    struct rcu_data *rdp)
    {
    - long flags;
    + unsigned long flags;

    spin_lock_irqsave(&rcp->lock, flags);
    memset(rdp, 0, sizeof(*rdp));
    --
    1.5.6


    \
     
     \ /
      Last update: 2008-08-18 23:43    [W:2.515 / U:0.964 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site