On 2021/5/31 10:02, Matthew Wilcox wrote: >> Fix the warning: [-Wunused-function] >> mm/mmap_lock.c:157:20: warning: ‘get_mm_memcg_path’ defined but not used >> static const char *get_mm_memcg_path(struct mm_struct *mm) >> ^~~~~~~~~~~~~~~~~ > That seems like the wrong way to fix the warning. Why not put it > under an appropriate ifdef? It's better than me, I will send a new patch. Thanks Bixuan Cui >