Arnd Bergmann
4b35dcb5e0
x86: fix build warnign with 32-bit PAE
...
I ran into a 4.9 build warning in randconfig testing, starting with the
KAISER patches:
arch/x86/kernel/ldt.c: In function 'alloc_ldt_struct':
arch/x86/include/asm/pgtable_types.h:208:24: error: large integer implicitly truncated to unsigned type [-Werror=overflow]
#define __PAGE_KERNEL (__PAGE_KERNEL_EXEC | _PAGE_NX)
^
arch/x86/kernel/ldt.c:81:6: note: in expansion of macro '__PAGE_KERNEL'
__PAGE_KERNEL);
^~~~~~~~~~~~~
I originally ran into this last year when the patches were part of linux-next,
and tried to work around it by using the proper 'pteval_t' types consistently,
but that caused additional problems.
This takes a much simpler approach, and makes the argument type of the dummy
helper always 64-bit, which is wide enough for any page table layout and
won't hurt since this call is just an empty stub anyway.
Fixes: 8f0baadf2b ("kaiser: merged update")
Signed-off-by: Arnd Bergmann <arnd@arndb.de >
Acked-by: Kees Cook <keescook@chromium.org >
Acked-by: Hugh Dickins <hughd@google.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-02-22 15:45:01 +01:00
..
2016-08-10 11:49:24 +02:00
2017-02-18 16:39:26 +01:00
2017-03-15 09:57:15 +08:00
2017-10-12 11:27:34 +02:00
2016-10-28 03:01:34 -04:00
2017-03-15 09:57:14 +08:00
2016-10-16 17:36:14 +02:00
2017-12-20 10:04:56 +01:00
2016-08-20 18:09:25 +02:00
2017-10-08 10:14:19 +02:00
2018-02-16 20:09:41 +01:00
2018-01-31 12:06:10 +01:00
2017-10-05 09:41:47 +02:00
2017-02-01 08:30:53 +01:00
2017-11-15 17:13:11 +01:00
2016-09-07 08:32:45 +02:00
2017-10-08 10:14:18 +02:00
2016-08-20 18:09:24 +02:00
2016-08-20 18:09:24 +02:00
2016-08-20 18:09:24 +02:00
2016-09-15 08:27:47 +02:00
2018-02-03 17:04:24 +01:00
2017-12-09 18:42:43 +01:00
2018-01-31 12:06:08 +01:00
2017-01-12 11:22:50 +01:00
2017-06-14 13:16:23 +02:00
2016-12-08 07:15:24 +01:00
2017-07-05 14:37:20 +02:00
2018-01-17 09:35:33 +01:00
2017-02-14 15:22:51 -08:00
2017-10-12 11:27:35 +02:00
2018-01-10 09:27:10 +01:00
2017-08-06 19:19:42 -07:00
2017-03-22 12:04:15 +01:00
2016-10-28 03:01:26 -04:00
2017-07-21 07:44:58 +02:00
2016-08-16 09:30:49 +02:00
2017-05-14 13:32:59 +02:00
2017-07-15 11:57:44 +02:00
2018-01-17 09:35:30 +01:00
2018-02-16 20:09:38 +01:00
2017-06-17 06:39:36 +02:00
2018-01-10 09:27:10 +01:00
2016-09-30 10:18:37 +02:00
2017-08-06 19:19:42 -07:00
2017-12-16 10:33:54 +01:00
2017-05-14 13:32:59 +02:00
2016-09-07 08:32:44 +02:00
2017-06-07 12:05:59 +02:00
2017-03-12 06:37:25 +01:00
2018-01-02 20:33:25 +01:00
2016-09-24 10:07:43 +02:00
2017-01-19 20:17:19 +01:00
2018-02-22 15:45:01 +01:00
2018-01-23 19:50:12 +01:00
2016-10-28 03:01:30 -04:00
2017-10-27 10:23:18 +02:00
2017-05-25 14:30:17 +02:00
2018-01-31 12:06:08 +01:00
2017-04-08 09:53:32 +02:00
2017-03-18 19:09:58 +08:00
2017-09-02 07:06:51 +02:00
2017-07-21 07:44:56 +02:00
2017-06-17 06:39:36 +02:00
2017-10-27 10:23:17 +02:00
2017-06-14 13:16:26 +02:00
2016-08-16 09:30:51 +02:00
2017-02-09 08:02:47 +01:00
2017-08-11 09:08:50 -07:00
2017-06-26 07:13:11 +02:00
2017-12-20 10:04:59 +01:00
2017-12-25 14:22:09 +01:00
2017-12-16 10:33:50 +01:00
2018-01-05 15:44:24 +01:00
2017-04-30 05:49:28 +02:00
2016-11-15 07:46:37 +01:00
2016-11-15 07:46:37 +01:00
2016-09-07 08:32:38 +02:00
2017-11-18 11:11:05 +01:00
2017-12-05 11:22:49 +01:00
2017-02-01 08:30:53 +01:00
2016-10-07 15:23:41 +02:00
2017-12-16 10:33:51 +01:00
2017-11-24 08:32:25 +01:00
2016-09-30 10:18:37 +02:00
2017-09-13 14:09:45 -07:00
2016-12-08 07:15:24 +01:00
2018-01-05 15:44:26 +01:00
2017-02-09 08:02:46 +01:00
2016-09-15 08:27:46 +02:00
2017-11-21 09:21:22 +01:00
2018-01-17 09:35:29 +01:00
2017-08-24 17:02:36 -07:00
2016-10-31 04:13:58 -06:00
2017-11-15 17:13:11 +01:00
2017-08-06 19:19:43 -07:00
2017-06-14 13:16:20 +02:00
2016-11-10 16:36:37 +01:00
2017-06-14 13:16:23 +02:00
2018-01-31 12:06:07 +01:00
2016-10-28 03:01:32 -04:00
2017-08-06 19:19:42 -07:00
2016-09-07 08:32:44 +02:00
2018-01-17 09:35:29 +01:00
2017-11-24 08:32:24 +01:00
2017-08-11 09:08:58 -07:00
2016-09-30 10:18:37 +02:00
2016-10-28 03:01:30 -04:00
2016-10-28 03:01:34 -04:00
2016-10-07 15:23:46 +02:00
2017-12-16 10:33:48 +01:00
2018-01-31 12:06:13 +01:00
2016-09-15 08:27:47 +02:00
2017-06-29 12:48:51 +02:00
2017-10-21 17:09:02 +02:00
2017-09-27 11:00:13 +02:00
2016-12-10 19:07:25 +01:00
2017-12-09 18:42:43 +01:00
2018-01-31 12:06:11 +01:00
2017-07-27 15:06:07 -07:00
2018-01-02 20:33:28 +01:00
2017-09-13 14:09:45 -07:00