]> Git Repo - linux.git/commit
mm/compaction: remove unused variable sysctl_compact_memory
authorPintu Kumar <[email protected]>
Wed, 5 May 2021 01:36:48 +0000 (18:36 -0700)
committerLinus Torvalds <[email protected]>
Wed, 5 May 2021 18:27:24 +0000 (11:27 -0700)
commitef4984384172e93cc95e0e8cd102536d67e8a787
tree18c27911a461da1554920da41bb3208c850ee08d
parent18bb473e5031213ebfa9a622c0b0f8cdcb8a5371
mm/compaction: remove unused variable sysctl_compact_memory

The sysctl_compact_memory is mostly unused in mm/compaction.c It just
acts as a place holder for sysctl to store .data.

But the .data itself is not needed here.

So we can get ride of this variable completely and make .data as NULL.
This will also eliminate the extern declaration from header file.  No
functionality is broken or changed this way.

Link: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Pintu Kumar <[email protected]>
Signed-off-by: Pintu Agarwal <[email protected]>
Reviewed-by: Vlastimil Babka <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
include/linux/compaction.h
kernel/sysctl.c
mm/compaction.c
This page took 0.07699 seconds and 4 git commands to generate.