Will Deacon
4e4ff23a35
arm64/mm: Define dummy pud_user_exec() when using 2-level page-table
...
With only two levels of page-table, the generic 'pud_*' macros are
implemented using dummy operations in pgtable-nopmd.h. Since commit
730a11f982 ("arm64/mm: add pud_user_exec() check in
pud_user_accessible_page()"), pud_user_accessible_page() unconditionally
calls pud_user_exec(), which is an arm64-specific helper and therefore
isn't defined by pgtable-nopmd.h. This results in a build failure for
configurations with only two levels of page table:
arch/arm64/include/asm/pgtable.h: In function 'pud_user_accessible_page':
>> arch/arm64/include/asm/pgtable.h:870:51: error: implicit declaration of function 'pud_user_exec'; did you mean 'pmd_user_exec'? [-Werror=implicit-function-declaration]
870 | return pud_leaf(pud) && (pud_user(pud) || pud_user_exec(pud));
| ^~~~~~~~~~~~~
| pmd_user_exec
Fix the problem by defining pud_user_exec() as pud_user() in this case.
Link: https://lore.kernel.org/r/202301080515.z6zEksU4-lkp@intel.com
Reported-by: kernel test robot <lkp@intel.com >
Signed-off-by: Will Deacon <will@kernel.org >
2023-01-09 15:47:25 +00:00
..
2022-09-09 12:30:08 +01:00
2022-09-09 12:27:25 +01:00
2022-06-06 08:54:33 +02:00
2019-06-19 17:09:55 +02:00
2021-09-23 20:39:36 +02:00
2022-11-07 15:59:14 +00:00
2020-11-09 21:49:34 +00:00
2022-03-08 13:32:48 +00:00
2022-05-15 16:38:25 +01:00
2021-10-19 10:56:20 +01:00
2022-11-18 02:18:10 +01:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:07 +02:00
2022-07-05 11:45:46 +01:00
2022-05-19 23:46:10 +02:00
2022-06-28 12:11:47 +01:00
2021-05-26 23:31:26 +01:00
2022-06-28 12:11:47 +01:00
2022-12-06 11:33:29 +00:00
2023-01-05 15:28:15 +00:00
2023-01-05 15:28:15 +00:00
2021-05-26 13:20:49 +02:00
2022-06-23 18:34:59 +01:00
2022-01-15 08:47:31 -08:00
2020-09-07 15:00:52 +01:00
2022-09-26 10:13:14 -07:00
2019-06-19 17:09:07 +02:00
2022-09-09 10:59:02 +01:00
2022-07-05 13:06:31 +01:00
2021-03-15 10:57:21 +00:00
2020-03-21 15:23:55 +01:00
2022-01-20 09:13:48 +00:00
2022-04-26 13:35:54 -07:00
2022-04-13 12:16:00 -07:00
2022-06-23 14:19:33 +01:00
2022-06-23 18:22:44 +01:00
2022-11-15 13:46:18 +00:00
2022-06-23 14:19:33 +01:00
2022-12-12 09:50:05 -08:00
2021-05-05 18:13:58 +01:00
2019-06-05 17:36:37 +02:00
2022-04-29 19:26:27 +01:00
2020-06-30 11:59:49 +02:00
2022-12-08 18:33:34 +01:00
2022-09-16 12:38:57 +01:00
2021-08-20 12:33:06 +02:00
2022-05-26 14:20:14 -07:00
2022-11-15 13:46:17 +00:00
2020-12-02 19:49:11 +00:00
2021-11-08 22:16:26 +01:00
2019-06-19 17:09:07 +02:00
2022-06-24 13:08:30 +01:00
2022-11-29 15:01:56 +00:00
2022-04-22 18:51:02 +01:00
2022-11-18 13:56:41 +00:00
2021-10-21 10:45:22 +01:00
2021-10-21 10:45:22 +01:00
2020-11-23 10:31:05 +01:00
2023-01-06 17:14:55 +00:00
2022-09-16 12:38:57 +01:00
2022-11-09 17:54:53 +00:00
2021-03-19 12:01:20 +00:00
2022-01-12 08:24:29 -06:00
2021-03-31 09:16:55 +01:00
2019-06-14 14:20:27 -06:00
2022-02-22 21:25:48 +00:00
2022-11-15 13:07:44 +00:00
2022-08-05 10:07:23 -07:00
2021-03-29 10:41:42 +01:00
2021-03-24 20:19:30 +00:00
2021-03-24 20:19:30 +00:00
2022-11-07 15:59:14 +00:00
2021-02-26 09:41:03 -08:00
2022-05-04 15:30:28 +01:00
2022-11-08 13:59:36 +00:00
2022-07-15 12:21:16 -04:00
2021-07-08 11:48:20 -07:00
2019-06-19 17:09:07 +02:00
2021-09-30 21:24:06 -04:00
2022-12-05 14:37:23 +00:00
2022-11-11 17:19:35 +00:00
2022-06-29 10:23:37 +01:00
2022-12-15 11:12:21 -08:00
2022-11-11 17:19:35 +00:00
2022-11-11 17:16:25 +00:00
2021-06-22 14:08:05 +01:00
2022-12-05 14:37:23 +00:00
2022-11-11 17:16:24 +00:00
2020-09-15 18:39:02 +01:00
2022-04-29 19:26:27 +01:00
2020-07-09 13:29:43 -04:00
2022-09-26 10:13:13 -07:00
2022-11-14 14:44:14 +00:00
2022-08-05 16:32:45 -07:00
2022-04-28 23:16:13 -07:00
2022-11-25 12:17:52 +00:00
2021-12-06 08:37:03 +00:00
Merge branches 'for-next/doc', 'for-next/sve', 'for-next/sysreg', 'for-next/gettimeofday', 'for-next/stacktrace', 'for-next/atomics', 'for-next/el1-exceptions', 'for-next/a510-erratum-2658417', 'for-next/defconfig', 'for-next/tpidr2_el0' and 'for-next/ftrace', remote-tracking branch 'arm64/for-next/perf' into for-next/core
2022-09-30 09:17:57 +01:00
2022-11-09 18:06:35 +00:00
2021-08-04 16:54:36 +00:00
2022-02-15 22:53:29 +00:00
2022-05-13 07:20:07 -07:00
2022-11-29 09:26:07 +00:00
2019-06-19 17:09:55 +02:00
2019-06-19 17:09:55 +02:00
2021-01-14 15:08:55 -08:00
2020-09-11 16:33:43 +01:00
2021-10-01 14:54:45 +01:00
2022-02-23 10:58:28 +01:00
2021-03-11 16:17:52 +01:00
2021-06-11 11:19:27 +01:00
2022-07-22 17:34:57 -05:00
2022-05-13 07:20:07 -07:00
2022-03-08 11:41:03 +00:00
2021-11-16 10:12:57 +00:00
2022-11-09 18:13:18 +00:00
2022-07-17 17:14:37 -07:00
2020-06-04 19:06:21 -07:00
2023-01-09 15:47:25 +00:00
2021-07-28 18:33:49 +01:00
2022-02-19 11:11:09 +01:00
2020-11-23 10:59:00 +00:00
2020-02-27 14:30:50 +00:00
2022-12-06 11:33:29 +00:00
2022-11-07 14:19:01 +00:00
2021-08-03 10:35:03 +01:00
2019-10-21 19:20:27 +01:00
2022-03-09 21:56:50 +00:00
2022-11-09 18:06:35 +00:00
2022-09-09 12:30:07 +01:00
2020-11-20 11:16:34 -08:00
2022-02-15 17:40:28 +00:00
2021-07-08 11:48:20 -07:00
2022-08-23 11:02:02 +01:00
2019-06-19 17:09:07 +02:00
2019-08-05 11:06:33 +01:00
2020-11-23 18:17:39 +00:00
2021-08-20 19:49:38 +01:00
2021-07-12 13:37:34 +01:00
2021-05-26 22:45:46 +01:00
2021-04-23 14:18:21 +01:00
2022-11-15 13:46:18 +00:00
2021-12-07 15:14:12 +01:00
2021-02-11 07:59:54 -05:00
2022-11-18 02:18:10 +01:00
2022-11-18 14:36:47 +00:00
2022-10-09 02:33:49 +01:00
2019-06-19 17:09:07 +02:00
2022-03-07 21:57:02 +00:00
2020-05-15 16:35:50 +01:00
2022-11-09 09:52:25 +00:00
2021-09-14 16:06:20 +02:00
2022-12-06 11:32:25 +00:00
2022-09-16 12:17:03 +01:00
2022-04-22 18:50:58 +01:00
2019-06-19 17:09:07 +02:00
2021-06-23 14:52:57 +01:00
2021-08-06 13:52:03 +01:00
2022-03-10 20:21:58 +01:00
2021-10-01 13:31:01 +01:00
2022-11-15 13:46:19 +00:00
2022-09-23 14:39:20 +01:00
2022-01-15 16:30:30 +02:00
2022-04-26 13:35:45 -07:00
2023-01-05 15:26:09 +00:00
2022-09-09 12:27:25 +01:00
2022-03-18 13:48:28 +00:00
2020-04-23 10:50:26 +09:00
2022-07-01 15:22:51 +01:00
2022-03-24 19:06:47 -07:00
2022-03-24 19:06:47 -07:00
2021-10-21 10:45:22 +01:00
2022-02-11 20:39:39 +11:00