Files
linux/arch/arc/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
..
2013-01-28 12:34:21 +05:30
2013-02-11 20:00:30 +05:30
2013-09-05 10:31:12 +05:30
2013-02-15 23:15:54 +05:30
2013-02-15 23:16:00 +05:30
2013-11-06 10:41:45 +05:30
2013-11-06 10:41:45 +05:30
2013-02-15 23:16:02 +05:30
2013-11-15 09:32:16 +09:00
2014-10-13 14:46:21 +05:30
2013-02-11 20:00:31 +05:30
2014-10-13 14:46:17 +05:30
2013-06-22 19:23:26 +05:30
2013-02-11 20:00:39 +05:30
2013-06-22 13:46:42 +05:30
2013-06-22 13:46:42 +05:30
2013-11-06 10:41:45 +05:30