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
..
2011-03-31 11:26:23 -03:00
2011-03-31 11:26:23 -03:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2011-03-31 11:26:23 -03:00
2009-04-17 10:05:01 +09:00
2009-05-02 22:38:21 +09:00
2014-10-03 06:06:23 +02:00
2014-01-12 10:37:15 +01:00
2014-04-18 14:20:36 +02:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-11-26 09:16:19 +01:00
2009-04-17 10:05:01 +09:00
2012-03-28 18:30:02 +01:00
2009-04-17 10:05:01 +09:00
2012-03-28 18:30:02 +01:00
2011-07-22 18:46:24 +02:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2013-02-26 02:46:08 -05:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-05-29 08:40:02 -07:00
2009-04-17 10:50:23 +09:00
2009-04-17 10:05:01 +09:00
2013-11-13 20:21:46 +01:00
2009-04-17 10:05:01 +09:00
2014-10-20 18:49:17 +01:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2010-10-07 14:08:55 +01:00
2014-12-10 15:17:46 -05:00
2009-04-17 10:05:01 +09:00
2009-06-16 19:47:51 -07:00
2009-04-17 10:05:01 +09:00
2010-06-09 11:12:36 +02:00
2012-03-28 18:30:02 +01:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2013-10-14 15:38:33 +02:00
2009-04-17 10:05:01 +09:00
2011-06-27 14:13:09 -07:00
2009-04-17 10:05:01 +09:00
2009-09-23 00:29:38 +09:00
2009-06-11 21:02:22 +02:00
2009-04-17 10:05:01 +09:00
2013-11-15 09:32:17 +09:00
2015-02-10 14:30:32 -08:00
2015-02-11 17:06:03 -08:00
2014-07-17 12:32:47 +02:00
2012-12-20 18:05:28 -08:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2012-12-19 16:07:18 +00:00
2009-04-17 10:05:01 +09:00
2013-02-03 15:09:22 -05:00
2012-06-05 17:32:30 +02:00
2009-12-14 23:55:32 +01:00
2012-03-28 18:30:02 +01:00
2009-04-17 10:05:01 +09:00
2012-03-28 18:30:02 +01:00
2009-04-17 10:05:01 +09:00
2012-12-19 16:07:18 +00:00
2013-11-13 20:21:47 +01:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2010-02-20 16:41:46 +00:00
2009-04-17 10:05:01 +09:00
2012-12-19 16:07:18 +00:00
2013-05-28 09:41:07 +02:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2013-03-03 22:55:19 -05:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00
2009-04-17 10:05:01 +09:00