[PATCH] ./fs/partitions/ldm.h

Jan-Benedict Glaw (jbglaw@lug-owl.de)
Thu, 9 Aug 2001 19:25:31 +0200


Hi!

The following patch is a compile fix for missing braces around
#define parameters...

MfG, JBG

--- linux/fs/partitions/ldm.h.orig Thu Aug 9 19:20:33 2001
+++ linux/fs/partitions/ldm.h Thu Aug 9 19:19:17 2001
@@ -81,7 +81,7 @@
#define TOC_BITMAP2 "log" /* bitmaps in the TOCBLOCK. */

/* Borrowed from msdos.c */
-#define SYS_IND(p) (get_unaligned(&p->sys_ind))
+#define SYS_IND(p) (get_unaligned(&(p)->sys_ind))
#define NR_SECTS(p) ({ __typeof__(p->nr_sects) __a = \
get_unaligned(&p->nr_sects); \
le32_to_cpu(__a); \
-
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/