diff options
| author | Ritesh Harjani (IBM) <[email protected]> | 2025-07-17 23:25:13 +0000 |
|---|---|---|
| committer | Kees Cook <[email protected]> | 2025-07-22 04:42:21 +0000 |
| commit | 645d1b666498ef0d2c44c434a609b5560e9dc401 (patch) | |
| tree | ed6a5b964712cd3628941f342580bf0b03ce0c8a /drivers/pwm/pwm-stm32.c | |
| parent | configs/hardening: Enable CONFIG_INIT_ON_FREE_DEFAULT_ON (diff) | |
| download | kernel-645d1b666498ef0d2c44c434a609b5560e9dc401.tar.gz kernel-645d1b666498ef0d2c44c434a609b5560e9dc401.zip | |
powerpc/mm/book3s64: Move kfence and debug_pagealloc related calls to __init section
Move a few kfence and debug_pagealloc related functions in hash_utils.c
and radix_pgtable.c to __init sections since these are only invoked once
by an __init function during system initialization.
i.e.
- hash_debug_pagealloc_alloc_slots()
- hash_kfence_alloc_pool()
- hash_kfence_map_pool()
The above 3 functions only gets called by __init htab_initialize().
- alloc_kfence_pool()
- map_kfence_pool()
The above 2 functions only gets called by __init radix_init_pgtable()
This should also help fix warning msgs like:
>> WARNING: modpost: vmlinux: section mismatch in reference:
hash_debug_pagealloc_alloc_slots+0xb0 (section: .text) ->
memblock_alloc_try_nid (section: .init.text)
Reported-by: kernel test robot <[email protected]>
Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/
Signed-off-by: Ritesh Harjani (IBM) <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Kees Cook <[email protected]>
Diffstat (limited to 'drivers/pwm/pwm-stm32.c')
0 files changed, 0 insertions, 0 deletions
