diff mbox series

[v2,3/7] ksm: remove redundant declarations in ksm.h

Message ID 20220831031951.43152-4-zhengqi.arch@bytedance.com (mailing list archive)
State New
Headers show
Series add common struct mm_slot and use it in THP and KSM | expand

Commit Message

Qi Zheng Aug. 31, 2022, 3:19 a.m. UTC
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.

Signed-off-by: Qi Zheng <zhengqi.arch@bytedance.com>
---
 include/linux/ksm.h | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/include/linux/ksm.h b/include/linux/ksm.h
index 0b4f17418f64..7e232ba59b86 100644
--- a/include/linux/ksm.h
+++ b/include/linux/ksm.h
@@ -15,9 +15,6 @@ 
 #include <linux/sched.h>
 #include <linux/sched/coredump.h>
 
-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);