From: Qi Zheng Date: Wed, 31 Aug 2022 03:19:47 +0000 (+0800) Subject: ksm: remove redundant declarations in ksm.h X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=79e1119b7e0099c6c9379ca3129ffb7aa2a1c249;p=linux.git ksm: remove redundant declarations in ksm.h Currently, for struct stable_node, no one uses it in both the include/linux/ksm.h file and the file that contains it. For struct mem_cgroup, it's also not used in ksm.h. So they're all redundant, just remove them. Link: https://lkml.kernel.org/r/20220831031951.43152-4-zhengqi.arch@bytedance.com Signed-off-by: Qi Zheng Cc: Johannes Weiner Cc: Matthew Wilcox Cc: Mike Rapoport Cc: Minchan Kim Cc: Vlastimil Babka Cc: Yang Shi Signed-off-by: Andrew Morton --- diff --git a/include/linux/ksm.h b/include/linux/ksm.h index 0b4f17418f64c..7e232ba59b865 100644 --- a/include/linux/ksm.h +++ b/include/linux/ksm.h @@ -15,9 +15,6 @@ #include #include -struct stable_node; -struct mem_cgroup; - #ifdef CONFIG_KSM int ksm_madvise(struct vm_area_struct *vma, unsigned long start, unsigned long end, int advice, unsigned long *vm_flags);