]> Git Repo - linux.git/commit
mm: remove unused stub for can_swapin_thp()
authorAndy Shevchenko <[email protected]>
Tue, 8 Oct 2024 19:13:29 +0000 (22:13 +0300)
committerAndrew Morton <[email protected]>
Thu, 17 Oct 2024 07:28:08 +0000 (00:28 -0700)
commita5e8eb25135a48d400e5a695ba9329bc632c3bb4
tree377f29b11c22081f9635ea98010a681d02dbc70d
parent3f4e74cb3f2d06c3128e5b22c603a0dd4ab6f540
mm: remove unused stub for can_swapin_thp()

When can_swapin_thp() is unused, it prevents kernel builds with clang,
`make W=1` and CONFIG_WERROR=y:

mm/memory.c:4184:20: error: unused function 'can_swapin_thp' [-Werror,-Wunused-function]

Fix this by removing the unused stub.

See also commit 6863f5643dd7 ("kbuild: allow Clang to find unused static
inline functions for W=1 build").

Link: https://lkml.kernel.org/r/[email protected]
Fixes: 242d12c98174 ("mm: support large folios swap-in for sync io devices")
Signed-off-by: Andy Shevchenko <[email protected]>
Acked-by: Barry Song <[email protected]>
Cc: Bill Wendling <[email protected]>
Cc: Chuanhua Han <[email protected]>
Cc: Justin Stitt <[email protected]>
Cc: Nathan Chancellor <[email protected]>
Cc: Nick Desaulniers <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
mm/memory.c
This page took 0.049348 seconds and 4 git commands to generate.