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

From: Jan-Benedict Glaw (jbglaw@lug-owl.de)
Date: Thu Aug 09 2001 - 12:25:31 EST


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/



This archive was generated by hypermail 2b29 : Wed Aug 15 2001 - 21:00:27 EST