diff options
author | Andrew Morton <[email protected]> | 2024-09-05 14:22:20 -0700 |
---|---|---|
committer | Andrew Morton <[email protected]> | 2024-09-09 16:39:15 -0700 |
commit | 6e94da943ba3ebd8c603872010ff6efcb682fe9c (patch) | |
tree | 05ecdba5eeffe278fa52543c3040e49b0408331e /lib/crypto/mpi/mpiutil.c | |
parent | cfc8193898ca4511e6c3cc20101ef3554eda8efb (diff) |
mm/page_alloc: fix build with CONFIG_UNACCEPTED_MEMORY=n
When has_unaccepted_memory() is unused, it prevents kernel builds
with clang, `make W=1` and CONFIG_WERROR=y:
mm/page_alloc.c:7036:20: error: unused function 'has_unaccepted_memory' [-Werror,-Wunused-function]
7036 | static inline bool has_unaccepted_memory(void)
| ^~~~~~~~~~~~~~~~~~~~~
Fix it by removeing the CONFIG_UNACCEPTED_MEMORY=n stub.
Link: https://lkml.kernel.org/r/[email protected]
Reported-by: Andy Shevchenko <[email protected]>
Closes: https://lkml.kernel.org/r/[email protected]
Signed-off-by: Andrew Morton <[email protected]>
Diffstat (limited to 'lib/crypto/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions