]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
mm/thp: dead code cleanup in Kconfig
authorJulian Braha <julianbraha@gmail.com>
Tue, 31 Mar 2026 07:07:30 +0000 (08:07 +0100)
committerAndrew Morton <akpm@linux-foundation.org>
Fri, 29 May 2026 04:04:51 +0000 (21:04 -0700)
commitb9fe373e7d3c5a0814fe45d8cb41f649ed5e244d
tree4615e921e8ab098902831c368a11b9e23184bae2
parent1d05e1f6ac26263dc27cfb2796ef4e5e24e070f4
mm/thp: dead code cleanup in Kconfig

There is already an 'if TRANSPARENT_HUGEPAGE' condition wrapping several
config options e.g.  'READ_ONLY_THP_FOR_FS', making the 'depends on'
statement for each of these a duplicate dependency (dead code).

I propose leaving the outer 'if TRANSPARENT_HUGEPAGE...endif' and removing
the individual 'depends on TRANSPARENT_HUGEPAGE' statement from each
option.

This dead code was found by kconfirm, a static analysis tool for Kconfig.

Link: https://lore.kernel.org/20260331070730.33915-1-julianbraha@gmail.com
Signed-off-by: Julian Braha <julianbraha@gmail.com>
Reviewed-by: Lorenzo Stoakes <ljs@kernel.org>
Acked-by: David Hildenbrand (Arm) <david@kernel.org>
Reviewed-by: Anshuman Khandual <anshuman.khandual@arm.com>
Cc: Johannes Weiner <hannes@cmpxchg.org>
Cc: Liam Howlett <liam@infradead.org>
Cc: Michal Hocko <mhocko@suse.com>
Cc: Mike Rapoport <rppt@kernel.org>
Cc: Suren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
mm/Kconfig