Re: 2.4.8-pre6 - towards a clean kernel compile

Anton Altaparmakov (aia21@cus.cam.ac.uk)
Wed, 8 Aug 2001 11:08:45 +0100 (BST)


On Wed, 8 Aug 2001, Keith Owens wrote:

> Correct missing () in ldm.h.
>
> Some of these patches have already appeared on l-k but they are not in
> the latest pre-patch.
>
> Index: 8-pre6.1/fs/partitions/ldm.h
> --- 8-pre6.1/fs/partitions/ldm.h Sun, 05 Aug 2001 13:29:36 +1000 kaos (linux-2.4/I/e/44_ldm.h 1.2 644)
> +++ 8-pre6.1(w)/fs/partitions/ldm.h Wed, 08 Aug 2001 11:14:24 +1000 kaos (linux-2.4/I/e/44_ldm.h 1.2 644)
> @@ -81,13 +81,13 @@
> #define TOC_BITMAP2 "log" /* bitmaps in the TOCBLOCK. */
>
> /* Borrowed from msdos.c */
> -#define SYS_IND(p) (get_unaligned(&p->sys_ind))
> -#define NR_SECTS(p) ({ __typeof__(p->nr_sects) __a = \
> - get_unaligned(&p->nr_sects); \
> +#define SYS_IND(p) (get_unaligned(&(p)->sys_ind))
> +#define NR_SECTS(p) ({ __typeof__((p)->nr_sects) __a =3D \
^^^^^^
> + get_unaligned(&(p)->nr_sects); \
> le32_to_cpu(__a); \
> })
> -#define START_SECT(p) ({ __typeof__(p->start_sect) __a = \
> - get_unaligned(&p->start_sect); \
> +#define START_SECT(p) ({ __typeof__((p)->start_sect) __a =3D \
^^^^^^
> + get_unaligned(&(p)->start_sect);\
> le32_to_cpu(__a); \
> })

Something's gone wrong with this patch. What's this __a =3D stuff that
has appeared out of the blue in two places?

Best regards,

Anton

-- 
Anton Altaparmakov <aia21 at cam.ac.uk> (replace at with @)
Linux NTFS maintainer / WWW: http://linux-ntfs.sf.net/
ICQ: 8561279 / WWW: http://www-stu.christs.cam.ac.uk/~aia21/

- 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/