summaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorCan Peng <pengcan@kylinos.cn>2025-12-08 16:05:25 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2026-01-16 18:35:34 +0300
commit38a5a54f6d8560d349d76a3fb9bc51499a9d0cda (patch)
tree59f0e1719028af37e8f59460d49848f2a786d983 /include/linux
parent578d62a2e51614ea117ccf05fce6aaa6257dfd60 (diff)
downloadlinux-38a5a54f6d8560d349d76a3fb9bc51499a9d0cda.tar.xz
kgdbts: mark kgdbts_option_setup() with __init to free init memory
The kgdbts_option_setup() function is invoked only once early in boot via the __setup("kgdbts=", ...) mechanism to parse the kernel command-line option.After init is complete, it is never called again. Annotating it with __init places the function in the .init.text section, enabling the kernel to free its code memory during the init memory cleanup phase (free_initmem()). This reduces the kernel’s runtime memory footprint with no functional side effects. Signed-off-by: Can Peng <pengcan@kylinos.cn> Link: https://patch.msgid.link/20251208130525.2775885-1-pengcan@kylinos.cn Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux')
0 files changed, 0 insertions, 0 deletions