]> git.neil.brown.name Git - history.git/commitdiff
[PATCH] fix fs/proc/task_nommu.c compile
authorAndrew Morton <akpm@osdl.org>
Mon, 26 Apr 2004 16:03:36 +0000 (09:03 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Mon, 26 Apr 2004 16:03:36 +0000 (09:03 -0700)
From: Christoph Hellwig <hch@lst.de>

this file has been broken for ages, but it seems few !CONFIG_MMU users use
mainline at all.

fs/proc/task_nommu.c

index 53dd89a45352aadcc11dd0cdb96be53e39fab69a..126db9797262cfd1ff96f48452a96091fbde1ac5 100644 (file)
@@ -1,6 +1,7 @@
 
 #include <linux/mm.h>
 #include <linux/file.h>
+#include <linux/seq_file.h>
 
 /*
  * Logic: we've got two memory sums for each process, "shared", and
@@ -101,8 +102,24 @@ int task_statm(struct mm_struct *mm, int *shared, int *text,
  * Albert D. Cahalan suggested to fake entries for the traditional
  * sections here.  This might be worth investigating.
  */
-ssize_t proc_pid_read_maps(struct task_struct *task, struct file *file,
-                          char *buf, size_t count, loff_t *ppos)
+static int show_map(struct seq_file *m, void *v)
 {
        return 0;
 }
+static void *m_start(struct seq_file *m, loff_t *pos)
+{
+       return NULL;
+}
+static void m_stop(struct seq_file *m, void *v)
+{
+}
+static void *m_next(struct seq_file *m, void *v, loff_t *pos)
+{
+       return NULL;
+}
+struct seq_operations proc_pid_maps_op = {
+       .start  = m_start,
+       .next   = m_next,
+       .stop   = m_stop,
+       .show   = show_map
+};