NTFS byte swapping

Geert Uytterhoeven (geert@linux-m68k.org)
Tue, 18 Mar 2003 15:49:43 +0100 (MET)


When compiling NTFS support in 2.5.65 on a big-endian machine (m68k), I get:

| fs/ntfs/compress.c:167: warning: passing arg 1 of `__swab16p' from incompatible pointer type
| fs/ntfs/compress.c:207: warning: passing arg 1 of `__swab16p' from incompatible pointer type
| fs/ntfs/compress.c:228: warning: passing arg 1 of `__swab16p' from incompatible pointer type
| fs/ntfs/compress.c:333: warning: passing arg 1 of `__swab16p' from incompatible pointer type

The offending code does `le16_to_cpup(cb)', with cb a pointer to a u8.

Gr{oetje,eeting}s,

Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But when I'm talking to journalists I just say "programmer" or something like that. -- Linus Torvalds

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