mm: move randomize_va_space into memory.c
authorJoel Granados <joel.granados@kernel.org>
Wed, 30 Apr 2025 12:42:13 +0000 (14:42 +0200)
committerJoel Granados <joel.granados@kernel.org>
Wed, 23 Jul 2025 09:52:47 +0000 (11:52 +0200)
commit851911aa7210ca27f007bd79553172e2e3ba8723
treee13d6376a22e519b2a014786c83c38fab9deffed
parentfff6703fc843569d7a2f78ca08e7a69a9be22b0f
mm: move randomize_va_space into memory.c

Move the randomize_va_space variable together with all its sysctl table
elements into memory.c. Register it to the "kernel" directory by
adding it to the subsys initialization calls

This is part of a greater effort to move ctl tables into their
respective subsystems which will reduce the merge conflicts in
kernel/sysctl.c.

Reviewed-by: Luis Chamberlain <mcgrof@kernel.org>
Reviewed-by: Kees Cook <kees@kernel.org>
Signed-off-by: Joel Granados <joel.granados@kernel.org>
kernel/sysctl.c
mm/memory.c