Files
linux/arch/microblaze/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-01-27 11:24:55 +01:00
2014-01-23 16:36:54 -08:00
2013-01-03 12:47:20 +01:00
2009-03-27 14:25:35 +01:00
2010-06-09 11:12:36 +02:00
2011-07-26 16:49:47 -07:00
2013-10-09 20:04:08 -05:00
2010-10-21 15:51:25 +10:00
2010-04-01 08:38:24 +02:00
2015-01-08 08:37:25 +01:00
2015-01-05 12:36:40 +01:00
2010-08-04 10:22:35 +02:00