]> git.hungrycats.org Git - linux/commitdiff
o kernel/ksyms.c: move relevant EXPORT_SYMBOLs to fs/seq_file.c
authorArnaldo Carvalho de Melo <acme@parisc.kerneljanitors.org>
Wed, 1 Oct 2003 17:26:23 +0000 (14:26 -0300)
committerLinus Torvalds <torvalds@home.osdl.org>
Wed, 1 Oct 2003 17:26:23 +0000 (14:26 -0300)
fs/seq_file.c
kernel/ksyms.c

index 7a9bcab37d496f91dfd515087382046da3212229..678c2725a38a90ecc5c24e3778752d2bf4b8e801 100644 (file)
@@ -6,6 +6,7 @@
  */
 
 #include <linux/fs.h>
+#include <linux/module.h>
 #include <linux/seq_file.h>
 #include <linux/slab.h>
 
@@ -37,6 +38,8 @@ int seq_open(struct file *file, struct seq_operations *op)
        return 0;
 }
 
+EXPORT_SYMBOL(seq_open);
+
 /**
  *     seq_read -      ->read() method for sequential files.
  *     @file, @buf, @size, @ppos: see file_operations method
@@ -144,6 +147,8 @@ Efault:
        goto Done;
 }
 
+EXPORT_SYMBOL(seq_read);
+
 static int traverse(struct seq_file *m, loff_t offset)
 {
        loff_t pos = 0;
@@ -228,6 +233,8 @@ loff_t seq_lseek(struct file *file, loff_t offset, int origin)
        return retval;
 }
 
+EXPORT_SYMBOL(seq_lseek);
+
 /**
  *     seq_release -   free the structures associated with sequential file.
  *     @file: file in question
@@ -244,6 +251,8 @@ int seq_release(struct inode *inode, struct file *file)
        return 0;
 }
 
+EXPORT_SYMBOL(seq_release);
+
 /**
  *     seq_escape -    print string into buffer, escaping some characters
  *     @m:     target buffer
@@ -279,6 +288,8 @@ int seq_escape(struct seq_file *m, const char *s, const char *esc)
         return 0;
 }
 
+EXPORT_SYMBOL(seq_escape);
+
 int seq_printf(struct seq_file *m, const char *f, ...)
 {
        va_list args;
@@ -297,9 +308,11 @@ int seq_printf(struct seq_file *m, const char *f, ...)
        return -1;
 }
 
+EXPORT_SYMBOL(seq_printf);
+
 int seq_path(struct seq_file *m,
-               struct vfsmount *mnt, struct dentry *dentry,
-               char *esc)
+            struct vfsmount *mnt, struct dentry *dentry,
+            char *esc)
 {
        if (m->count < m->size) {
                char *s = m->buf + m->count;
@@ -328,6 +341,8 @@ int seq_path(struct seq_file *m,
        return -1;
 }
 
+EXPORT_SYMBOL(seq_path);
+
 static void *single_start(struct seq_file *p, loff_t *pos)
 {
        return NULL + (*pos == 0);
@@ -343,7 +358,8 @@ static void single_stop(struct seq_file *p, void *v)
 {
 }
 
-int single_open(struct file *file, int (*show)(struct seq_file *, void*), void *data)
+int single_open(struct file *file, int (*show)(struct seq_file *, void *),
+               void *data)
 {
        struct seq_operations *op = kmalloc(sizeof(*op), GFP_KERNEL);
        int res = -ENOMEM;
@@ -362,6 +378,8 @@ int single_open(struct file *file, int (*show)(struct seq_file *, void*), void *
        return res;
 }
 
+EXPORT_SYMBOL(single_open);
+
 int single_release(struct inode *inode, struct file *file)
 {
        struct seq_operations *op = ((struct seq_file *)file->private_data)->op;
@@ -370,6 +388,8 @@ int single_release(struct inode *inode, struct file *file)
        return res;
 }
 
+EXPORT_SYMBOL(single_release);
+
 int seq_release_private(struct inode *inode, struct file *file)
 {
        struct seq_file *seq = file->private_data;
@@ -379,3 +399,4 @@ int seq_release_private(struct inode *inode, struct file *file)
        return seq_release(inode, file);
 }
 
+EXPORT_SYMBOL(seq_release_private);
index f5e1186dc82d0382bbd6f51c845f256d0979800a..a583b0e0ab63a15114d78b9f0e3d17ca1066886c 100644 (file)
@@ -45,7 +45,6 @@
 #include <linux/uio.h>
 #include <linux/tty.h>
 #include <linux/in6.h>
-#include <linux/seq_file.h>
 #include <linux/binfmts.h>
 #include <linux/namei.h>
 #include <linux/buffer_head.h>
@@ -313,16 +312,6 @@ EXPORT_SYMBOL(securebits);
 EXPORT_SYMBOL(cap_bset);
 EXPORT_SYMBOL(daemonize);
 EXPORT_SYMBOL(csum_partial); /* for networking and md */
-EXPORT_SYMBOL(seq_escape);
-EXPORT_SYMBOL(seq_printf);
-EXPORT_SYMBOL(seq_path);
-EXPORT_SYMBOL(seq_open);
-EXPORT_SYMBOL(seq_release);
-EXPORT_SYMBOL(seq_read);
-EXPORT_SYMBOL(seq_lseek);
-EXPORT_SYMBOL(single_open);
-EXPORT_SYMBOL(single_release);
-EXPORT_SYMBOL(seq_release_private);
 
 /* Miscellaneous access points */
 EXPORT_SYMBOL(si_meminfo);