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-06-04 22:50:41 +02:00
2013-02-01 10:00:22 +01:00
2015-01-19 13:09:52 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-07-01 15:10:58 +02:00
2014-11-24 07:45:28 +01:00
2014-01-24 22:39:56 +01:00
2014-11-24 22:47:31 +01:00
2014-11-24 07:45:08 +01:00
2014-11-24 22:47:31 +01:00
2014-11-24 07:45:13 +01:00
2014-09-22 13:35:46 +02:00
2013-02-01 10:00:22 +01:00
2014-03-26 23:09:21 +01:00
2013-10-29 21:24:46 +01:00
2013-02-01 10:00:22 +01:00
2014-11-24 22:47:31 +01:00
2014-05-23 15:10:59 +02:00
2013-10-29 21:24:40 +01:00
2014-08-26 02:18:58 +02:00
2013-10-29 21:24:40 +01:00
2014-01-24 22:39:56 +01:00
2014-04-23 12:18:44 +01:00
2014-11-24 07:45:18 +01:00
2013-02-01 10:00:22 +01:00
2014-11-24 07:45:01 +01:00
2014-11-24 07:45:09 +01:00
2014-11-24 07:44:56 +01:00
2014-08-26 02:18:55 +02:00
2014-06-02 12:34:20 +02:00
2014-11-24 07:45:36 +01:00
2013-02-01 10:00:22 +01:00
2014-11-24 07:45:24 +01:00
2013-02-01 10:00:22 +01:00
2012-12-13 18:15:30 +01:00
2014-11-24 07:44:56 +01:00
2013-02-01 10:00:22 +01:00
2014-11-24 22:47:31 +01:00
2014-11-24 22:47:31 +01:00
2012-12-13 18:15:30 +01:00
2014-11-24 07:44:59 +01:00
2014-05-30 16:51:02 +02:00
2014-11-24 07:45:36 +01:00
2013-02-01 10:00:22 +01:00
2014-06-04 22:50:42 +02:00
2013-02-01 10:00:22 +01:00
2013-05-08 03:51:58 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-06-21 18:07:00 +02:00
2014-08-06 13:03:08 +02:00
2014-07-30 21:46:19 +02:00
2014-01-22 20:19:02 +01:00
2014-03-26 23:09:12 +01:00
2014-03-31 18:17:12 +02:00
2014-11-07 15:07:36 +01:00
2014-01-13 23:40:56 +01:00
2014-11-07 15:07:36 +01:00
2014-11-24 07:45:37 +01:00
2014-12-11 21:15:06 -05:00
2013-02-01 10:00:22 +01:00
2014-11-24 07:45:36 +01:00
2014-11-24 07:45:11 +01:00
2014-11-24 22:47:31 +01:00
2014-05-23 15:12:37 +02:00
2013-02-20 18:24:24 +01:00
2014-05-28 16:20:14 +01:00
2014-01-15 14:19:42 +07:00
2014-03-26 23:09:17 +01:00
2013-12-04 17:19:44 +01:00
2014-11-24 07:45:37 +01:00
2014-05-27 11:06:42 +02:00
2014-11-24 07:45:36 +01:00
2013-02-01 10:00:22 +01:00
2013-03-02 07:44:16 -08:00
2014-11-24 07:45:36 +01:00
2014-10-23 19:58:13 +02:00
2014-11-24 07:45:06 +01:00
2014-09-22 13:35:53 +02:00
2014-05-30 21:01:11 +02:00
2014-11-24 07:45:12 +01:00
2012-10-16 22:20:03 +02:00
2014-01-22 20:43:10 +01:00
2014-03-31 18:17:12 +02:00
2013-02-01 10:00:22 +01:00
2013-01-24 13:20:09 +01:00
2014-11-24 07:45:36 +01:00
2014-11-24 07:45:07 +01:00
2012-10-09 09:47:14 +01:00
2014-08-26 02:18:56 +02:00
2012-03-28 18:30:02 +01:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2014-11-07 15:07:36 +01:00
2014-08-26 13:45:51 -04:00
2015-01-13 15:53:08 +01:00
2014-10-24 02:38:33 +02:00
2014-11-24 07:45:36 +01:00
2014-06-04 22:50:42 +02:00
2013-02-01 10:00:22 +01:00
2013-04-11 15:39:51 +02:00
2014-01-24 22:39:56 +01:00
2014-11-24 07:45:02 +01:00
2013-04-29 15:54:33 -07:00
2014-11-12 21:17:27 +01:00
2013-05-09 17:55:20 +02:00
2014-11-24 22:47:31 +01:00
2014-11-24 07:44:52 +01:00
2014-11-24 07:44:49 +01:00
2014-05-24 00:07:01 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-11-19 18:22:09 +01:00
2014-12-10 15:17:46 -05:00
2012-12-13 16:46:47 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-08-29 16:35:55 +02:00
2014-05-30 21:01:11 +02:00
2013-03-03 22:55:19 -05:00
2014-03-31 18:17:12 +02:00
2013-02-01 10:00:22 +01:00
2014-08-02 00:06:46 +02:00
2013-02-01 10:00:22 +01:00
2013-05-08 01:19:07 +02:00
2014-05-24 00:07:01 +02:00
2015-01-13 15:53:09 +01:00
2014-11-24 22:47:31 +01:00
2014-05-28 16:20:22 +01:00
2015-01-30 23:04:59 +01:00
2014-08-02 00:06:39 +02:00
2014-05-24 00:07:01 +02:00
2014-08-02 00:06:44 +02:00
2013-02-01 10:00:22 +01:00
2014-06-02 16:34:41 +02:00
2014-11-24 07:45:36 +01:00
2014-11-24 22:46:44 +01:00
2014-11-24 22:47:31 +01:00
2013-11-15 09:32:18 +09:00
2015-02-11 17:06:03 -08:00
2015-02-10 14:30:32 -08:00
2015-02-10 14:30:32 -08:00
2015-02-10 14:30:32 -08:00
2014-05-28 16:20:31 +01:00
2014-05-29 15:08:23 +02:00
2014-09-24 14:47:05 +02:00
2014-11-24 07:45:12 +01:00
2014-08-02 00:06:37 +02:00
2012-08-17 10:57:28 +02:00
2014-12-11 17:56:37 -08:00
2014-08-02 00:06:38 +02:00
2013-02-01 10:00:22 +01:00
2014-01-22 20:19:02 +01:00
2013-02-01 10:00:22 +01:00
2013-10-29 21:24:36 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-06-26 10:48:18 +01:00
2012-10-09 09:47:14 +01:00
2013-03-19 19:15:52 +01:00
2013-02-03 18:33:02 -05:00
2014-07-30 20:47:39 +02:00
2014-05-27 11:06:42 +02:00
2014-08-27 13:44:44 +02:00
2013-02-01 10:00:22 +01:00
2012-10-09 09:47:14 +01:00
2014-07-30 21:46:19 +02:00
2013-02-01 10:00:22 +01:00
2014-11-24 07:45:36 +01:00
2014-05-24 00:07:01 +02:00
2013-07-01 15:10:48 +02:00
2013-02-01 10:00:22 +01:00
2014-08-26 02:18:59 +02:00
2015-02-04 16:40:09 +01:00
2012-10-09 09:47:14 +01:00
2015-02-04 16:40:09 +01:00
2014-11-24 07:45:16 +01:00
2014-05-30 18:21:30 +02:00
2014-01-22 20:18:59 +01:00
2014-08-27 13:44:44 +02:00
2013-02-01 10:00:22 +01:00
2013-02-01 10:00:22 +01:00
2014-11-24 22:47:31 +01:00
2014-11-24 07:45:33 +01:00
2014-11-24 22:47:31 +01:00
2014-06-04 16:54:14 -07:00
2013-09-18 17:13:58 +02:00
2014-01-30 17:20:32 -08:00
2013-02-01 10:00:22 +01:00