]> git.baikalelectronics.ru Git - kernel.git/commit
xtensa: fix __ffs result type
authorMax Filippov <jcmvbkbc@gmail.com>
Mon, 25 Apr 2016 01:06:37 +0000 (04:06 +0300)
committerMax Filippov <jcmvbkbc@gmail.com>
Sun, 24 Jul 2016 03:33:29 +0000 (06:33 +0300)
commitea91ebb6c07c7fe5b1d3c065bc7cd6700e43151c
treea2798f27da3f149c1eae27c66c1572bcfeb7fedb
parent2a0c393326c15a4aa5cffa4eb69a96424d4cfee2
xtensa: fix __ffs result type

Make __ffs result type unsigned long to match generic asm
implementation. This fixes the following build warning:

  mm/nobootmem.c: In function '__free_pages_memory':
  include/linux/kernel.h:742:17: warning: comparison of distinct pointer
                                          types lacks a cast
    (void) (&_min1 == &_min2);  \
    ^
  mm/nobootmem.c:100:11: note: in expansion of macro 'min'
     order = min(MAX_ORDER - 1UL, __ffs(start));

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/include/asm/bitops.h