Files
linux/arch/xtensa/include/asm
Kirill A. Shutemov d016bf7ece mm: make FIRST_USER_ADDRESS unsigned long on all archs
LKP has triggered a compiler warning after my recent patch "mm: account
pmd page tables to the process":

    mm/mmap.c: In function 'exit_mmap':
 >> mm/mmap.c:2857:2: warning: right shift count >= width of type [enabled by default]

The code:

 > 2857                WARN_ON(mm_nr_pmds(mm) >
   2858                                round_up(FIRST_USER_ADDRESS, PUD_SIZE) >> PUD_SHIFT);

In this, on tile, we have FIRST_USER_ADDRESS defined as 0.  round_up() has
the same type -- int.  PUD_SHIFT.

I think the best way to fix it is to define FIRST_USER_ADDRESS as unsigned
long.  On every arch for consistency.

Signed-off-by: Kirill A. Shutemov <kirill.shutemov@linux.intel.com>
Reported-by: Wu Fengguang <fengguang.wu@intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2015-02-11 17:06:03 -08:00
..
2014-04-18 14:20:47 +02:00
2014-04-18 14:20:47 +02:00
2014-01-15 00:28:11 +04:00
2011-03-31 11:26:23 -03:00
2013-02-23 19:35:57 -08:00
2009-04-02 23:41:29 -07:00
2014-12-09 03:22:57 +03:00
2014-01-14 10:19:59 -08:00
2014-01-14 10:19:58 -08:00
2014-01-14 10:19:58 -08:00
2014-10-21 13:28:58 +04:00
2014-01-15 00:27:03 +04:00
2014-01-14 10:19:58 -08:00
2014-01-14 10:19:59 -08:00
2013-05-09 01:07:10 -07:00
2013-02-23 19:22:31 -08:00
2014-01-14 10:19:58 -08:00
2014-12-15 20:14:26 -08:00