]> git.baikalelectronics.ru Git - kernel.git/commit
cpumask.h: silence warning with -Wsign-compare
authorBrian W Hart <hartb@linux.vnet.ibm.com>
Wed, 14 May 2014 01:03:45 +0000 (10:33 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 14 May 2014 01:20:06 +0000 (10:50 +0930)
commit84b78104bba71aac1fd4802976573ee221ed2eb3
treeab975eb72db9571ab550d3816a0e591722bc243b
parentfe79012e080dc01274e74ce351e46d75184be5be
cpumask.h: silence warning with -Wsign-compare

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.

Signed-off-by: Brian W Hart <hartb@linux.vnet.ibm.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
include/linux/cpumask.h