From: Steven Augart <steve@Augart.com>
To: linux-kernel@vger.kernel.org
Cc: Brad Littlejohn <tyketto@wizard.com>,
John Weber <john.weber@linuxhq.com>
Subject: linux-2.5.18: fs/hfs/inode.c: PATCH to fix compilation error
Date: Wed, 29 May 2002 18:31:58 -0700 (PDT) [thread overview]
Message-ID: <20020530013158.2DCBE3DF2@abruzzo.augart.com> (raw)
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 ================*/
reply other threads:[~2002-05-30 1:32 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20020530013158.2DCBE3DF2@abruzzo.augart.com \
--to=steve@augart.com \
--cc=john.weber@linuxhq.com \
--cc=linux-kernel@vger.kernel.org \
--cc=tyketto@wizard.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).