"Adam Sampson wrote:"
> I get this while compiling 2.4.2:
>
> msdos.c:403: `MINIX_PARTITION' undeclared (first use in this function)
> msdos.c:403: (Each undeclared identifier is reported only once
> msdos.c:403: for each function it appears in.)
> msdos.c:406: `MINIX_NR_SUBPARTITIONS' undeclared (first use in this function)
> msdos.c: In function `msdos_partition':
> msdos.c:571: `MINIX_PARTITION' undeclared (first use in this function)
> make[3]: *** [msdos.o] Error 1
>
> My config:
>
[...]
> CONFIG_MINIX_SUBPARTITION=y
It seems that Linus didn't fully merge some stuff from Alan patches.
Try the following patch:
diff -u --new-file --recursive --exclude-from /usr/src/exclude linux.vanilla/include/linux/genhd.h linux.ac/include/linux/genhd.h
--- linux-2.4.2/include/linux/genhd.h Thu Jan 4 22:50:47 2001
+++ linux/include/linux/genhd.h Tue Feb 20 20:46:28 2001
@@ -222,6 +222,11 @@
}; /* 408 */
#endif /* CONFIG_UNIXWARE_DISKLABEL */
+
+#ifdef CONFIG_MINIX_SUBPARTITION
+# define MINIX_PARTITION 0x81 /* Minix Partition ID */
+# define MINIX_NR_SUBPARTITIONS 4
+#endif /* CONFIG_MINIX_SUBPARTITION */
#ifdef __KERNEL__
extern struct gendisk *gendisk_head; /* linked list of disks */
-- ======================================================================= Andrzej M. Krzysztofowicz ankry@mif.pg.gda.pl phone (48)(58) 347 14 61 Faculty of Applied Phys. & Math., Technical University of Gdansk - 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 Feb 23 2001 - 21:00:27 EST