Christophe Leroy
86d0c16427
mm/ioremap: fix iomap_max_page_shift
...
iomap_max_page_shift is expected to contain a page shift, so it can't be a
'bool', has to be an 'unsigned int'
And fix the default values: P4D_SHIFT is when huge iomap is allowed.
However, on some architectures (eg: powerpc book3s/64), P4D_SHIFT is not a
constant so it can't be used to initialise a static variable. So,
initialise iomap_max_page_shift with a maximum shift supported by the
architecture, it is gated by P4D_SHIFT in vmap_try_huge_p4d() anyway.
Link: https://lkml.kernel.org/r/ad2d366015794a9f21320dcbdd0a8eb98979e9df.1620898113.git.christophe.leroy@csgroup.eu
Fixes: bbc180a5adb0 ("mm: HUGE_VMAP arch support cleanup")
Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Reviewed-by: Nicholas Piggin <npiggin@gmail.com>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
2021-05-14 19:41:32 -07:00
..
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2021-02-26 09:41:01 -08:00
2021-05-07 00:26:35 -07:00
2019-07-12 12:24:03 -07:00
2021-05-05 11:27:21 -07:00
2021-05-05 11:27:24 -07:00
2021-05-05 11:27:24 -07:00
2021-05-05 11:27:24 -07:00
2021-05-07 00:26:35 -07:00
2017-11-02 11:10:55 +01:00
2021-04-30 11:20:40 -07:00
2021-02-24 13:38:27 -08:00
2021-04-30 11:20:39 -07:00
2021-02-26 09:41:02 -08:00
2020-10-13 18:38:29 -07:00
2019-07-12 11:05:43 -07:00
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:27 -07:00
2021-05-05 11:27:26 -07:00
2021-05-05 11:27:26 -07:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2020-08-12 10:58:02 -07:00
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:22 -07:00
2021-05-14 19:41:32 -07:00
2020-10-16 11:11:16 -07:00
2020-12-15 12:13:39 -08:00
2021-05-07 00:26:35 -07:00
2021-04-30 11:20:38 -07:00
2021-04-30 11:20:39 -07:00
2021-05-14 19:41:32 -07:00
2021-05-05 11:27:26 -07:00
2020-12-15 12:13:46 -08:00
2021-05-07 00:26:35 -07:00
2021-04-30 11:20:36 -07:00
2021-05-14 19:41:32 -07:00
2021-05-05 11:27:23 -07:00
2020-08-12 10:57:59 -07:00
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:27 -07:00
2021-04-16 16:10:37 -07:00
2021-02-22 13:01:23 -08:00
2021-05-07 00:26:35 -07:00
2019-09-24 15:54:08 -07:00
2021-05-05 11:27:27 -07:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:27 -07:00
2021-04-30 11:20:37 -07:00
2017-11-02 11:10:55 +01:00
2021-05-07 00:26:35 -07:00
2021-01-24 14:27:16 +01:00
2021-05-05 11:27:27 -07:00
2021-04-30 11:20:42 -07:00
2020-12-15 12:13:41 -08:00
2021-05-07 00:26:35 -07:00
2021-04-16 16:10:36 -07:00
2021-03-25 09:22:55 -07:00
2020-12-15 14:48:04 -08:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2021-04-30 11:20:37 -07:00
2021-05-07 00:26:34 -07:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2021-04-30 11:20:38 -07:00
2020-12-15 22:46:19 -08:00
2020-12-15 14:48:03 -08:00
2021-03-02 17:25:46 -07:00
2020-12-15 12:13:45 -08:00
2021-05-07 00:26:35 -07:00
2021-04-30 11:20:36 -07:00
2021-02-24 13:38:30 -08:00
2020-06-09 09:39:13 -07:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2020-06-09 09:39:14 -07:00
2021-05-07 00:26:35 -07:00
2020-08-12 10:57:55 -07:00
2021-04-09 13:58:38 +00:00
2021-04-30 11:20:40 -07:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2021-02-24 13:38:30 -08:00
2021-05-05 11:27:27 -07:00
2021-04-16 16:10:37 -07:00
2021-04-23 10:14:29 +01:00
2021-05-07 00:26:33 -07:00
2020-08-21 09:52:53 -07:00
2021-05-14 19:41:32 -07:00
2021-04-16 16:10:36 -07:00
2020-08-07 11:33:29 -07:00
2021-05-14 19:41:32 -07:00
2021-05-07 00:26:35 -07:00
2021-04-30 11:20:41 -07:00
2021-03-08 14:18:46 -08:00
2021-05-14 19:41:32 -07:00
2020-08-07 11:33:27 -07:00
2021-05-05 11:27:27 -07:00
2020-06-03 20:09:48 -07:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:33 -07:00
2021-05-07 00:26:33 -07:00
2021-05-05 11:27:27 -07:00
2021-05-05 11:27:19 -07:00
2020-08-12 10:57:58 -07:00
2021-05-05 11:27:22 -07:00
2021-05-05 11:27:25 -07:00
2020-06-10 19:14:18 -07:00
2021-05-07 00:26:35 -07:00
2020-04-02 09:35:31 -07:00
2021-05-05 11:27:27 -07:00
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:19 -07:00
2021-05-07 00:26:33 -07:00
2021-02-26 09:41:01 -08:00
2021-05-07 00:26:35 -07:00
2021-05-07 00:26:35 -07:00
2021-05-05 11:27:27 -07:00