* linux-2.5.18: fs/hfs/inode.c: PATCH to fix compilation error
@ 2002-05-30 1:31 Steven Augart
0 siblings, 0 replies; only message in thread
From: Steven Augart @ 2002-05-30 1:31 UTC (permalink / raw)
To: linux-kernel; +Cc: Brad Littlejohn, John Weber
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 ================*/
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-05-30 1:32 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-05-30 1:31 linux-2.5.18: fs/hfs/inode.c: PATCH to fix compilation error Steven Augart
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox