f2fs: include seq_file.h for sysfs.c
Subsystems (2)
Jaegeuk Kim
maintainerPATCH 1/1 f2fs: include seq_file.h for sysfs.c
This patch includes seq_file.h to avoid compile error.
--- fs/f2fs/sysfs.c | 1 + 1 file changed, 1 insertion(+)
fs/f2fs/sysfs.c +1 -0
@@ -11,6 +11,7 @@*/ #include <linux/proc_fs.h> #include <linux/f2fs_fs.h> +#include <linux/seq_file.h> #include "f2fs.h" #include "segment.h"
Signature · 1 line
2.13.0.rc1.294.g07d810a77f-goog
Chao Yu
maintainerHi Jaegeuk,
Quoted 1 line · Jaegeuk Kim
This patch includes
seq_file.hto avoid compile error.
I didn't hit the error, I guess that's because we have included f2fs_fs.h in sysfs.c, the inclusion relation is like this:
- sysfs.c
- f2fs_fs.h
- pagemap.h
- fs.h
- struct seq_file
Thanks,
Quoted 20 lines
Signed-off-by Eric Biggers <[email protected]>Signed-off-by Jaegeuk Kim <[email protected]>--- fs/f2fs/sysfs.c | 1 + 1 file changed, 1 insertion(+)fs/f2fs/sysfs.c +1
-0@@ -11,6 +11,7 @@*/ #include <linux/proc_fs.h> #include <linux/f2fs_fs.h> +#include <linux/seq_file.h> #include "f2fs.h" #include "segment.h"
Jaegeuk Kim
maintainerQuoted 5 lines · Chao Yu
Hi Jaegeuk,
Quoted 1 line · Jaegeuk Kim
This patch includes
seq_file.hto avoid compile error.
Quoted 7 lines
I didn't hit the error, I guess that's because we have included
f2fs_fs.hinsysfs.c, the inclusion relation is like this:
-sysfs.c
-f2fs_fs.h
-pagemap.h
-fs.h
- structseq_file
What about seq ops such as seq_puts?
Thanks,
Quoted 23 lines
Thanks,
Quoted 20 lines
Signed-off-by Eric Biggers <[email protected]>Signed-off-by Jaegeuk Kim <[email protected]>--- fs/f2fs/sysfs.c | 1 + 1 file changed, 1 insertion(+)fs/f2fs/sysfs.c +1
-0@@ -11,6 +11,7 @@*/ #include <linux/proc_fs.h> #include <linux/f2fs_fs.h> +#include <linux/seq_file.h> #include "f2fs.h" #include "segment.h"
Chao Yu
Reviewed-byQuoted 14 lines · Jaegeuk Kim
Quoted 5 lines · Chao Yu
Hi Jaegeuk,
Quoted 1 line · Jaegeuk Kim
This patch includes
seq_file.hto avoid compile error.Quoted 7 lines
I didn't hit the error, I guess that's because we have included
f2fs_fs.hinsysfs.c, the inclusion relation is like this:
-sysfs.c
-f2fs_fs.h
-pagemap.h
-fs.h
- structseq_file
Quoted 1 line
What about seq ops such as
seq_puts?
- sysfs.c
- segment.h
- linux/backing-dev.h
- linux/writeback.h
#ifdef CONFIG_CGROUP_WRITEBACK
- linux/cgroup.h
- linux/seq_file.h
#endif
So it looks that there is no compiling error in my environment because of CONFIG_CGROUP_WRITEBACK was defined.
Anyway, please add:
Thanks,
Quoted 29 lines
Thanks,
Quoted 20 lines
Thanks,
Quoted 17 lines
Signed-off-by Eric Biggers <[email protected]>Signed-off-by Jaegeuk Kim <[email protected]>--- fs/f2fs/sysfs.c | 1 + 1 file changed, 1 insertion(+)fs/f2fs/sysfs.c +1
-0@@ -11,6 +11,7 @@*/ #include <linux/proc_fs.h> #include <linux/f2fs_fs.h> +#include <linux/seq_file.h> Quoted 3 lines
fs/f2fs/sysfs.c line 17
Quoted 3 lines
fs/f2fs/sysfs.c +0
-0#include "f2fs.h" #include "segment.h" .