2.4.19-pre8 compile fix

From: Meelis Roos (mroos@linux.ee)
Date: Tue May 28 2002 - 09:20:49 EST


2.4.19-pre8 from BK, x86 and sparc, all partition types enabled:

fs/fs.o: In function `riscix_partition':
fs/fs.o(.text+0x27eb4): undefined reference to `page_cache_release'
fs/fs.o: In function `linux_partition':
fs/fs.o(.text+0x28054): undefined reference to `page_cache_release'
fs/fs.o: In function `adfspart_check_ADFS':
fs/fs.o(.text+0x280e8): undefined reference to `page_cache_release'
fs/fs.o(.text+0x28138): undefined reference to `page_cache_release'
fs/fs.o: In function `adfspart_check_ICSLinux':
fs/fs.o(.text+0x28268): undefined reference to `page_cache_release'
fs/fs.o(.text+0x28440): more undefined references to `page_cache_release' follow

page_cache_release is used in check.c and check.h. check.h is included
in several other files (includeing check.c) and there the errors come.
The solution is to include linux/pagemap.h in check.h.

This is a resubmit by me, I'm not the original author of the patch but
the problem bites me since I compile in support for all partition types.

The patch:

--- fs/partitions/check.h.old Fri May 24 18:59:10 2002
+++ fs/partitions/check.h Fri May 24 18:59:36 2002
@@ -2,6 +2,9 @@
  * add_partition adds a partitions details to the devices partition
  * description.
  */
+
+#include <linux/pagemap.h>
+
 void add_gd_partition(struct gendisk *hd, int minor, int start, int size);

 typedef struct {struct page *v;} Sector;

-- 
Meelis Roos (mroos@linux.ee)

- 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:22 EST