From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id ; Wed, 29 May 2002 21:32:13 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id ; Wed, 29 May 2002 21:32:12 -0400 Received: from dsl0206.netquest.net ([206.117.109.206]:28620 "HELO arcadia.augart.com") by vger.kernel.org with SMTP id ; Wed, 29 May 2002 21:32:11 -0400 From: Steven Augart To: linux-kernel@vger.kernel.org Subject: linux-2.5.18: fs/hfs/inode.c: PATCH to fix compilation error Cc: Brad Littlejohn , John Weber Message-Id: <20020530013158.2DCBE3DF2@abruzzo.augart.com> Date: Wed, 29 May 2002 18:31:58 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org 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 , by Christoph Hellwig , and by Jan Harkes The compilation problem has already been reported by Brad Littlejohn and John Weber . 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 #include #include +#include /* for struct page */ /*================ Variable-like macros ================*/