Re: [PATCH 17/21] ceph: nfs re-export support
From: Stefan Richter
Date: Sat Jun 20 2009 - 17:22:30 EST
Sage Weil wrote:
I've done the same thing in a bunch of other places, too, the
big offender being decode.h, where e.g.
v = le64_to_cpu(*(__le64 *)*(p)); \
*(p) += sizeof(u64); \
should be
v = le64_to_cpu(get_unaligned((__le64 *)*(p))); \
*(p) += sizeof(u64); \
Endian conversion and unaligned access can be combined, e.g.
v = get_unaligned_le64(*p);
if p is a pointer to a pointer to an unaligned __le64. These too come
via <asm/unaligned.h> and are available since 2.6.26.
--
Stefan Richter
-=====-==--= -==- =-=--
http://arcgraph.de/sr/
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/