diff options
author | Björn Töpel <[email protected]> | 2024-06-05 13:40:46 +0200 |
---|---|---|
committer | Palmer Dabbelt <[email protected]> | 2024-06-26 08:42:39 -0700 |
commit | fe122b89da670be155f3474c0cb28af2fbcd2ecc (patch) | |
tree | bde026f217031354923b793fa0f7e342f72bd464 /lib/test_fortify/write_overflow-strncpy-src.c | |
parent | 66673099f734fd6512055fee353b5c81dafec216 (diff) |
riscv: mm: Change attribute from __init to __meminit for page functions
Prepare for memory hotplugging support by changing from __init to
__meminit for the page table functions that are used by the upcoming
architecture specific callbacks.
Changing the __init attribute to __meminit, avoids that the functions
are removed after init. The __meminit attribute makes sure the
functions are kept in the kernel text post init, but only if memory
hotplugging is enabled for the build.
Reviewed-by: Alexandre Ghiti <[email protected]>
Reviewed-by: David Hildenbrand <[email protected]>
Reviewed-by: Oscar Salvador <[email protected]>
Signed-off-by: Björn Töpel <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Palmer Dabbelt <[email protected]>
Diffstat (limited to 'lib/test_fortify/write_overflow-strncpy-src.c')
0 files changed, 0 insertions, 0 deletions