From: Andy Shevchenko Date: Thu, 9 Dec 2021 12:30:08 +0000 (+0200) Subject: kernfs: Replace kernel.h with the necessary inclusions X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=79f1c7304295bbbc611bc53cfd5425b777b3e840;p=linux.git kernfs: Replace kernel.h with the necessary inclusions When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Acked-by: Tejun Heo Signed-off-by: Andy Shevchenko Link: https://lore.kernel.org/r/20211209123008.3391-1-andriy.shevchenko@linux.intel.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/include/linux/kernfs.h b/include/linux/kernfs.h index 9f650986a81b6..861c4f0f8a29f 100644 --- a/include/linux/kernfs.h +++ b/include/linux/kernfs.h @@ -6,7 +6,6 @@ #ifndef __LINUX_KERNFS_H #define __LINUX_KERNFS_H -#include #include #include #include @@ -14,6 +13,8 @@ #include #include #include +#include +#include #include #include #include @@ -23,6 +24,7 @@ struct dentry; struct iattr; struct seq_file; struct vm_area_struct; +struct vm_operations_struct; struct super_block; struct file_system_type; struct poll_table_struct;