Files
linux/arch/x86/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
..
2009-01-29 14:16:51 +01:00
2008-10-22 22:55:23 -07:00
2015-01-13 14:00:33 -08:00
2014-12-11 11:35:02 +01:00
2008-10-22 22:55:23 -07:00
2014-11-11 22:23:11 +00:00
2014-05-02 11:34:17 -07:00
2012-03-28 18:11:12 +01:00
2014-03-04 21:47:51 +01:00
2011-04-18 09:26:48 -07:00
2014-05-08 08:15:34 +02:00
2013-08-05 06:35:33 -07:00
2013-02-03 18:16:27 -05:00
2009-08-27 00:35:56 +02:00
2010-10-26 16:52:08 -07:00
2012-06-25 13:48:30 +02:00
2014-09-22 13:35:52 +02:00
2009-06-13 15:37:30 +02:00
2014-12-18 09:39:51 +01:00
2011-07-22 14:39:50 +09:30
2013-04-22 15:45:03 +09:30
2010-06-09 11:12:36 +02:00
2008-10-22 22:55:23 -07:00
2014-02-27 08:07:39 -08:00
2014-11-18 00:58:54 +01:00
2008-10-22 22:55:23 -07:00
2014-09-01 10:15:31 +02:00
2014-10-28 10:47:56 +01:00
2011-03-15 15:34:15 -07:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:20 -07:00
2008-10-22 22:55:23 -07:00
2012-02-20 12:52:05 -08:00
2014-06-06 16:08:11 -07:00
2009-06-15 12:40:02 +02:00
2014-06-04 16:53:57 -07:00
2014-04-18 14:20:46 +02:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2008-10-22 22:55:23 -07:00
2012-03-28 18:11:12 +01:00
2014-12-05 13:57:33 +01:00
2008-10-22 22:55:20 -07:00