[PATCH v2] x86: fix missing declaration of init_fs

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



fs/fs_struct.c should include include/linux/init_task.h
 for declaration of init_fs. This fixes the sparse warning:

fs/fs_struct.c:163:18: warning: symbol 'init_fs' was not declared. Should it be static?

Signed-off-by: Zhang Kunbo <zhangkunbo@xxxxxxxxxx>
---
v2:
- fix some typos
 fs/fs_struct.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/fs/fs_struct.c b/fs/fs_struct.c
index 64c2d0814ed6..100bd3474476 100644
--- a/fs/fs_struct.c
+++ b/fs/fs_struct.c
@@ -6,6 +6,7 @@
 #include <linux/path.h>
 #include <linux/slab.h>
 #include <linux/fs_struct.h>
+#include <linux/init_task.h>
 #include "internal.h"
 
 /*
-- 
2.34.1





[Index of Archives]     [Linux Ext4 Filesystem]     [Union Filesystem]     [Filesystem Testing]     [Ceph Users]     [Ecryptfs]     [NTFS 3]     [AutoFS]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux Cachefs]     [Reiser Filesystem]     [Linux RAID]     [NTFS 3]     [Samba]     [Device Mapper]     [CEPH Development]

  Powered by Linux