Files
linux/arch/tile/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:45 +02:00
2014-04-18 14:20:45 +02:00
2014-04-18 14:20:45 +02:00
2014-04-18 14:20:45 +02:00
2014-04-18 14:20:45 +02:00
2014-04-18 14:20:45 +02:00
2013-09-03 14:53:29 -04:00
2014-01-23 16:36:54 -08:00
2013-08-30 10:20:13 -04:00
2013-11-13 20:21:46 +01:00
2012-03-20 21:48:30 +08:00
2013-09-03 14:53:29 -04:00
2014-05-16 14:05:21 +02:00
2014-08-26 13:45:54 -04:00
2013-08-30 11:55:53 -04:00
2012-05-25 12:48:25 -04:00
2013-09-03 14:51:26 -04:00
2012-07-24 15:27:32 +08:00
2013-08-30 11:55:53 -04:00
2014-08-26 13:45:54 -04:00
2013-08-13 16:26:21 -04:00
2013-09-13 11:15:24 -04:00
2013-08-12 14:46:18 -04:00
2013-09-03 14:53:29 -04:00
2012-03-28 18:30:03 +01:00
2013-09-03 14:53:29 -04:00
2013-08-13 16:26:05 -04:00
2013-02-14 09:21:15 -05:00
2014-10-02 13:56:07 -04:00