diff options
| author | Petr Pavlu <[email protected]> | 2025-03-06 13:13:54 +0000 |
|---|---|---|
| committer | Petr Pavlu <[email protected]> | 2025-05-18 11:56:22 +0000 |
| commit | 60b57b9cb002df575a54635da1c55f361533deb7 (patch) | |
| tree | b6831df29ea34318bee0fb0b839dabf30de3f868 /drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c | |
| parent | module: Add a separate function to mark sections as read-only after init (diff) | |
| download | kernel-60b57b9cb002df575a54635da1c55f361533deb7.tar.gz kernel-60b57b9cb002df575a54635da1c55f361533deb7.zip | |
module: Make .static_call_sites read-only after init
Section .static_call_sites holds data structures that need to be sorted and
processed only at module load time. This initial processing happens in
static_call_add_module(), which is invoked as a callback to the
MODULE_STATE_COMING notification from prepare_coming_module().
The section is never modified afterwards. Make it therefore read-only after
module initialization to avoid any (non-)accidental modifications.
Reviewed-by: Sami Tolvanen <[email protected]>
Reviewed-by: Luis Chamberlain <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Petr Pavlu <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_cs.c')
0 files changed, 0 insertions, 0 deletions
