linux-2.5.18: fs/hfs/inode.c: PATCH to fix compilation error

From: Steven Augart (steve@Augart.com)
Date: Wed May 29 2002 - 20:31:58 EST


Subject: Patch to fix compilation error in linux-2.5.18/fs/hfs/inode.c

This patch fixes a compilation error in linux-2.5.18/fs/hfs/inode.c,
where gcc 2.95.3 complains that it does not have a complete definition
for `struct page' in hfs_prepare_write(). The exact error message
given is:

  inode.c: In function `hfs_prepare_write':
  inode.c:242: dereferencing pointer to incomplete type

To give credit where due, after I fixed this bug I found that
suggested fixes have also been sent in by
Alexander Viro <viro@math.psu.edu>, by Christoph Hellwig
<hch@infradead.org>, and by Jan Harkes <jaharkes@cs.cmu.edu>

The compilation problem has already been reported by Brad Littlejohn
<tyketto@wizard.com> and John Weber <john.weber@linuxhq.com>.

Steven Augart
steve@augart.com

diff -ur linux-2.5.18/fs/hfs/inode.c linux-2.5.18+/fs/hfs/inode.c
--- linux-2.5.18/fs/hfs/inode.c Thu May 9 15:24:20 2002
+++ linux-2.5.18+/fs/hfs/inode.c Tue May 28 17:23:06 2002
@@ -21,6 +21,7 @@
 #include <linux/hfs_fs_i.h>
 #include <linux/hfs_fs.h>
 #include <linux/smp_lock.h>
+#include <linux/mm.h> /* for struct page */
 
 /*================ Variable-like macros ================*/
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri May 31 2002 - 22:00:27 EST