From: Simon Glass <simon.glass@canonical.com>
Move seq_file operation stubs and declarations from ext4_uboot.h to
include/linux/seq_file.h where they belong.
This includes:
- seq_open(), seq_release() stubs
- seq_read(), seq_lseek() declarations
Co-developed-by: Claude (Anthropic)
Signed-off-by: Simon Glass <simon.glass@canonical.com>
---
fs/ext4l/ext4_uboot.h | 9 ---------
include/linux/seq_file.h | 8 ++++++++
2 files changed, 8 insertions(+), 9 deletions(-)
@@ -616,17 +616,8 @@ struct disk_partition *ext4l_get_partition(void);
/* JBD2 journal.c stubs */
int bmap(struct inode *inode, sector_t *block);
-/* seq_file operations for /proc - stubs */
-#define seq_open(f, ops) ({ (void)(f); (void)(ops); 0; })
-#define seq_release(i, f) ({ (void)(i); (void)(f); 0; })
-
-/* proc_ops - use linux/proc_fs.h */
#include <linux/proc_fs.h>
-/* seq_read and seq_lseek declarations (defined in stub.c) */
-ssize_t seq_read(struct file *f, char *b, size_t s, loff_t *p);
-loff_t seq_lseek(struct file *f, loff_t o, int w);
-
/* Block device operations for journal.c */
#define truncate_inode_pages_range(m, s, e) \
do { (void)(m); (void)(s); (void)(e); } while (0)
@@ -29,4 +29,12 @@ struct seq_operations {
#define seq_puts(m, s) do { (void)(m); (void)(s); } while (0)
#define seq_putc(m, c) do { (void)(m); (void)(c); } while (0)
+/* seq_file operations - stubs */
+#define seq_open(f, ops) ({ (void)(f); (void)(ops); 0; })
+#define seq_release(i, f) ({ (void)(i); (void)(f); 0; })
+
+/* seq_read and seq_lseek - implemented in ext4l/stub.c */
+ssize_t seq_read(struct file *f, char *b, size_t s, loff_t *p);
+loff_t seq_lseek(struct file *f, loff_t o, int w);
+
#endif /* _LINUX_SEQ_FILE_H */