SH: error: implicit declaration of function 'init_cache_node_node'

From: Randy Dunlap
Date: Sat Nov 13 2021 - 20:17:38 EST


on arch/sh/,
CONFIG_SMP is not defined,
CONFIG_NUMA=y,
CONFIG_MEMORY_HOTPLUG is not defined:

../mm/slab.c: In function 'slab_memory_callback':
../mm/slab.c:1143:23: error: implicit declaration of function 'init_cache_node_node'; did you mean 'drain_cache_node_node'? [-Werror=implicit-function-declaration]
1143 | ret = init_cache_node_node(nid);


commit 76af6a054da4
Author: Dave Hansen <dave.hansen@xxxxxxxxxxxxxxx>
Date: Mon Oct 18 15:15:32 2021 -0700

mm/migrate: add CPU hotplug to demotion #ifdef


How should we handle this config?

--
~Randy