Forum | Documentation | Website | Blog

Skip to content
Snippets Groups Projects
Commit 7b1fdf2b authored by Suren Baghdasaryan's avatar Suren Baghdasaryan Committed by Vlastimil Babka
Browse files

mm, slab: move prepare_slab_obj_exts_hook under CONFIG_MEM_ALLOC_PROFILING


The only place prepare_slab_obj_exts_hook() is currently being used is
from alloc_tagging_slab_alloc_hook() when CONFIG_MEM_ALLOC_PROFILING=y.
Move its definition under CONFIG_MEM_ALLOC_PROFILING to prevent unused
function warning for CONFIG_SLAB_OBJ_EXT=n case.

Reported-by: default avatarkernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202407050845.zNONqauD-lkp@intel.com/


Signed-off-by: default avatarSuren Baghdasaryan <surenb@google.com>
Cc: Vlastimil Babka <vbabka@suse.cz>
Reviewed-by: default avatarXiongwei Song <xiongwei.song@linux.dev>
Signed-off-by: default avatarVlastimil Babka <vbabka@suse.cz>
parent 302a3ea3
Branches
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment