[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87bnvbbu0h.fsf@rustcorp.com.au>
Date: Tue, 06 May 2014 10:31:02 +0930
From: Rusty Russell <rusty@...tcorp.com.au>
To: Brian W Hart <hartb@...ux.vnet.ibm.com>, tj@...nel.org,
linux-kernel@...r.kernel.org, trivial@...nel.org
Subject: Re: [PATCH v2] cpumask.h: silence warning with -Wsign-compare
Brian W Hart <hartb@...ux.vnet.ibm.com> writes:
> Silence the warning when building with -Wsign-compare when cpumask.h
> is included:
>
> include/linux/cpumask.h: In function ‘cpumask_parse’:
> include/linux/cpumask.h:603:26: warning: signed and unsigned type in conditional
> +expression [-Wsign-compare]
> int len = nl ? nl - buf : strlen(buf);
> ^
>
> V2: Rusty pointed out that unsigned should be used instead.
Thanks, applied.
Cheers,
Rusty.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists