* + unaligned-introduce-common-header.patch added to -mm tree
@ 2008-11-19 6:14 akpm
2008-11-19 8:21 ` Geert Uytterhoeven
2008-11-19 18:59 ` Harvey Harrison
0 siblings, 2 replies; 5+ messages in thread
From: akpm @ 2008-11-19 6:14 UTC (permalink / raw)
To: mm-commits
Cc: harvey.harrison, benh, bryan.wu, davem, dhowells, geert, gerg,
grundler, heiko.carstens, hskinnemoen, ink, kyle, lethal,
linux-arch, mingo, paulus, ralf, rmk, rth, schwidefsky, takata,
tglx, tony.luck, ysato, zankel, zippel
The patch titled
unaligned: introduce common header
has been added to the -mm tree. Its filename is
unaligned-introduce-common-header.patch
Before you just go and hit "reply", please:
a) Consider who else should be cc'ed
b) Prefer to cc a suitable mailing list as well
c) Ideally: find the original patch on the mailing list and do a
reply-to-all to that, adding suitable additional cc's
*** Remember to use Documentation/SubmitChecklist when testing your code ***
See http://userweb.kernel.org/~akpm/stuff/added-to-mm.txt to find
out what to do about this
The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/
------------------------------------------------------
Subject: unaligned: introduce common header
From: Harvey Harrison <harvey.harrison@gmail.com>
There are two common cases in the kernel, one where unaligned access is OK
for an arch and one where the arch uses a packed-struct for the native
endianness and opencoded C byteshifting for the other endianness.
Consolidate these two implementations in asm-generic/unaligned.h
Arches that require no special handling of unaligned access can define
_UNALIGNED_ACCESS_OK in their asm/unaligned.h before including the generic
version.
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Cc: Greg Ungerer <gerg@uclinux.org>
Cc: Paul Mackerras <paulus@samba.org>
Cc: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Cc: Martin Schwidefsky <schwidefsky@de.ibm.com>
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Ingo Molnar <mingo@elte.hu>
Cc: Thomas Gleixner <tglx@linutronix.de>
Cc: Geert Uytterhoeven <geert@linux-m68k.org>
Cc: Roman Zippel <zippel@linux-m68k.org>
Cc: Richard Henderson <rth@twiddle.net>
Cc: Ivan Kokshaysky <ink@jurassic.park.msu.ru>
Cc: Haavard Skinnemoen <hskinnemoen@atmel.com>
Cc: Bryan Wu <bryan.wu@analog.com>
Cc: "Luck, Tony" <tony.luck@intel.com>
Cc: Ralf Baechle <ralf@linux-mips.org>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Grant Grundler <grundler@parisc-linux.org>
Cc: Paul Mundt <lethal@linux-sh.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: Chris Zankel <zankel@tensilica.com>
Cc: David Howells <dhowells@redhat.com>
Cc: Yoshinori Sato <ysato@users.sourceforge.jp>
Cc: Russell King <rmk@arm.linux.org.uk>
Cc: Hirokazu Takata <takata@linux-m32r.org>
Cc: <linux-arch@vger.kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
---
include/asm-generic/unaligned.h | 323 ++++++++++++++++++++++++++++++
1 file changed, 323 insertions(+)
diff -puN /dev/null include/asm-generic/unaligned.h
--- /dev/null
+++ a/include/asm-generic/unaligned.h
@@ -0,0 +1,323 @@
+#ifndef _ASM_GENERIC_UNALIGNED_H
+#define _ASM_GENERIC_UNALIGNED_H
+
+#include <linux/types.h>
+#include <asm/byteorder.h>
+
+#ifdef _UNALIGNED_ACCESS_OK
+
+static inline u16 get_unaligned_le16(const void *p)
+{
+ return le16_to_cpup(p);
+}
+
+static inline u32 get_unaligned_le32(const void *p)
+{
+ return le32_to_cpup(p);
+}
+
+static inline u64 get_unaligned_le64(const void *p)
+{
+ return le64_to_cpup(p);
+}
+
+static inline u16 get_unaligned_be16(const void *p)
+{
+ return be16_to_cpup(p);
+}
+
+static inline u32 get_unaligned_be32(const void *p)
+{
+ return be32_to_cpup(p);
+}
+
+static inline u64 get_unaligned_be64(const void *p)
+{
+ return be64_to_cpup(p);
+}
+
+static inline void put_unaligned_le16(u16 val, void *p)
+{
+ *(__le16 *)p = cpu_to_le16(val);
+}
+
+static inline void put_unaligned_le32(u32 val, void *p)
+{
+ *(__le32 *)p = cpu_to_le32(val);
+}
+
+static inline void put_unaligned_le64(u64 val, void *p)
+{
+ *(__le64 *)p = cpu_to_le64(val);
+}
+
+static inline void put_unaligned_be16(u16 val, void *p)
+{
+ *(__be16 *)p = cpu_to_be16(val);
+}
+
+static inline void put_unaligned_be32(u32 val, void *p)
+{
+ *(__be32 *)p = cpu_to_be32(val);
+}
+
+static inline void put_unaligned_be64(u64 val, void *p)
+{
+ *(__be64 *)p = cpu_to_be64(val);
+}
+
+#else /* _UNALIGNED_ACCESS_OK */
+
+struct __una_u16 { u16 x __attribute__((packed)); };
+struct __una_u32 { u32 x __attribute__((packed)); };
+struct __una_u64 { u64 x __attribute__((packed)); };
+
+static inline u16 __get_le16_noalign(const u8 *p)
+{
+ return p[0] | p[1] << 8;
+}
+
+static inline u32 __get_le32_noalign(const u8 *p)
+{
+ return p[0] | p[1] << 8 | p[2] << 16 | p[3] << 24;
+}
+
+static inline u64 __get_le64_noalign(const u8 *p)
+{
+ return ((u64)__get_le32_noalign(p + 4) << 32) | __get_le32_noalign(p);
+}
+
+static inline u16 __get_be16_noalign(const u8 *p)
+{
+ return p[0] << 8 | p[1];
+}
+
+static inline u32 __get_be32_noalign(const u8 *p)
+{
+ return p[0] << 24 | p[1] << 16 | p[2] << 8 | p[3];
+}
+
+static inline u64 __get_be64_noalign(const u8 *p)
+{
+ return ((u64)__get_be32_noalign(p) << 32) | __get_be32_noalign(p + 4);
+}
+
+static inline u16 get_unaligned_le16(const void *p)
+{
+#ifdef __LITTLE_ENDIAN
+ return ((const struct __una_u16 *)p)->x;
+#else
+ return __get_le16_noalign(p);
+#endif
+}
+
+static inline u32 get_unaligned_le32(const void *p)
+{
+#ifdef __LITTLE_ENDIAN
+ return ((const struct __una_u32 *)p)->x;
+#else
+ return __get_le32_noalign(p);
+#endif
+}
+
+static inline u16 get_unaligned_le64(const void *p)
+{
+#ifdef __LITTLE_ENDIAN
+ return ((const struct __una_u64 *)p)->x;
+#else
+ return __get_le64_noalign(p);
+#endif
+}
+
+static inline u16 get_unaligned_be16(const void *p)
+{
+#ifdef __BIG_ENDIAN
+ return ((const struct __una_u16 *)p)->x;
+#else
+ return __get_be16_noalign(p);
+#endif
+}
+
+static inline u32 get_unaligned_be32(const void *p)
+{
+#ifdef __BIG_ENDIAN
+ return ((const struct __una_u32 *)p)->x;
+#else
+ return __get_be32_noalign(p);
+#endif
+}
+
+static inline u16 get_unaligned_be64(const void *p)
+{
+#ifdef __BIG_ENDIAN
+ return ((const struct __una_u64 *)p)->x;
+#else
+ return __get_be64_noalign(p);
+#endif
+}
+
+static inline void __put_le16_noalign(u8 *p, u16 val)
+{
+ *p++ = val;
+ *p++ = val >> 8;
+}
+
+static inline void __put_le32_noalign(u8 *p, u32 val)
+{
+ __put_le16_noalign(p + 2, val >> 16);
+ __put_le16_noalign(p, val);
+}
+
+static inline void __put_le64_noalign(u8 *p, u64 val)
+{
+ __put_le32_noalign(p + 4, val >> 32);
+ __put_le32_noalign(p, val);
+}
+
+static inline void __put_be16_noalign(u8 *p, u16 val)
+{
+ *p++ = val >> 8;
+ *p++ = val;
+}
+
+static inline void __put_be32_noalign(u8 *p, u32 val)
+{
+ __put_be16_noalign(p, val >> 16);
+ __put_be16_noalign(p + 2, val);
+}
+
+static inline void __put_be64_noalign(u8 *p, u64 val)
+{
+ __put_be32_noalign(p, val >> 32);
+ __put_be32_noalign(p + 4, val);
+}
+
+static inline void put_unaligned_le16(u16 val, void *p)
+{
+#ifdef __LITTLE_ENDIAN
+ ((struct __una_u16 *)p)->x = val;
+#else
+ __put_le16_noalign(p, val);
+#endif
+}
+
+static inline void put_unaligned_le32(u32 val, void *p)
+{
+#ifdef __LITTLE_ENDIAN
+ ((struct __una_u32 *)p)->x = val;
+#else
+ __put_le32_noalign(p, val);
+#endif
+}
+
+static inline void put_unaligned_le64(u64 val, void *p)
+{
+#ifdef __LITTLE_ENDIAN
+ ((struct __una_u64 *)p)->x = val;
+#else
+ __put_le64_noalign(p, val);
+#endif
+}
+
+static inline void put_unaligned_be16(u16 val, void *p)
+{
+#ifdef __BIG_ENDIAN
+ ((struct __una_u16 *)p)->x = val;
+#else
+ __put_be16_noalign(p, val);
+#endif
+}
+
+static inline void put_unaligned_be32(u32 val, void *p)
+{
+#ifdef __BIG_ENDIAN
+ ((struct __una_u32 *)p)->x = val;
+#else
+ __put_be32_noalign(p, val);
+#endif
+}
+
+static inline void put_unaligned_be64(u64 val, void *p)
+{
+#ifdef __BIG_ENDIAN
+ ((struct __una_u64 *)p)->x = val;
+#else
+ __put_be64_noalign(p, val);
+#endif
+}
+
+#endif /* _UNALIGNED_ACCESS_OK */
+
+/*
+ * Cause a link-time error if we try an unaligned access other than
+ * 1,2,4 or 8 bytes long
+ */
+extern void __bad_unaligned_access_size(void);
+
+#define __get_unaligned_le(ptr) ((__force typeof(*(ptr)))({ \
+ __builtin_choose_expr(sizeof(*(ptr)) == 1, *(ptr), \
+ __builtin_choose_expr(sizeof(*(ptr)) == 2, get_unaligned_le16((ptr)), \
+ __builtin_choose_expr(sizeof(*(ptr)) == 4, get_unaligned_le32((ptr)), \
+ __builtin_choose_expr(sizeof(*(ptr)) == 8, get_unaligned_le64((ptr)), \
+ __bad_unaligned_access_size())))); \
+ }))
+
+#define __get_unaligned_be(ptr) ((__force typeof(*(ptr)))({ \
+ __builtin_choose_expr(sizeof(*(ptr)) == 1, *(ptr), \
+ __builtin_choose_expr(sizeof(*(ptr)) == 2, get_unaligned_be16((ptr)), \
+ __builtin_choose_expr(sizeof(*(ptr)) == 4, get_unaligned_be32((ptr)), \
+ __builtin_choose_expr(sizeof(*(ptr)) == 8, get_unaligned_be64((ptr)), \
+ __bad_unaligned_access_size())))); \
+ }))
+
+#define __put_unaligned_le(val, ptr) ({ \
+ void *__gu_p = (ptr); \
+ switch (sizeof(*(ptr))) { \
+ case 1: \
+ *(u8 *)__gu_p = (__force u8)(val); \
+ break; \
+ case 2: \
+ put_unaligned_le16((__force u16)(val), __gu_p); \
+ break; \
+ case 4: \
+ put_unaligned_le32((__force u32)(val), __gu_p); \
+ break; \
+ case 8: \
+ put_unaligned_le64((__force u64)(val), __gu_p); \
+ break; \
+ default: \
+ __bad_unaligned_access_size(); \
+ break; \
+ } \
+ (void)0; })
+
+#define __put_unaligned_be(val, ptr) ({ \
+ void *__gu_p = (ptr); \
+ switch (sizeof(*(ptr))) { \
+ case 1: \
+ *(u8 *)__gu_p = (__force u8)(val); \
+ break; \
+ case 2: \
+ put_unaligned_be16((__force u16)(val), __gu_p); \
+ break; \
+ case 4: \
+ put_unaligned_be32((__force u32)(val), __gu_p); \
+ break; \
+ case 8: \
+ put_unaligned_be64((__force u64)(val), __gu_p); \
+ break; \
+ default: \
+ __bad_unaligned_access_size(); \
+ break; \
+ } \
+ (void)0; })
+
+#ifdef __LITTLE_ENDIAN
+# define get_unaligned __get_unaligned_le
+# define put_unaligned __put_unaligned_le
+#else
+# define get_unaligned __get_unaligned_be
+# define put_unaligned __put_unaligned_be
+#endif
+
+#endif /* _ASM_GENERIC_UNALIGNED_H */
_
Patches currently in -mm which might be from harvey.harrison@gmail.com are
linux-next.patch
arm-use-the-new-byteorder-headers.patch
dvb-cinergyt2-annotate-struct-endiannes-remove-unused-variable-add-static.patch
v4l-s2255drv-fix-firmware-test-on-big-endian.patch
ia64-use-the-new-byteorder-headers.patch
input-ads7846c-sparse-lock-annotation.patch
m32r-use-the-new-byteorder-headers.patch
blackfin-remove-__function__-in-new-serial-driver.patch
blackfin-use-the-new-byteorder-headers.patch
parisc-use-the-new-byteorder-headers.patch
s390-use-the-new-byteorder-headers.patch
scsi-replace-__inline-with-inline.patch
scsi-use-the-common-hex_asc-array-rather-than-a-private-one.patch
scsi-gdthc-use-unaligned-access-helpers.patch
scsi-annotate-gdth_rdcap_data-gdth_rdcap16_data-endianness.patch
frv-use-the-new-byteorder-headers.patch
m68knommu-use-the-new-byteorder-headers.patch
h8300-use-the-new-byteorder-headers.patch
alpha-use-the-new-byteorder-headers.patch
lib-fix-sparse-shadowed-variable-warning.patch
lib-radix_treec-make-percpu-variable-static.patch
lib-proportionsc-trivial-sparse-lock-annotation.patch
ibmpex-add-endian-annotation-to-extract_data-helper.patch
blackfin-remove-__function__-in-video-driver.patch
fb-carminefb-trivial-annotation-packing-color-register.patch
memstick-annotate-endianness-of-attribute-structs.patch
unaligned-introduce-common-header.patch
unaligned-convert-arches-where-unaligned-access-is-ok.patch
unaligned-use-generic-implementation-on-packed-struct-arches.patch
unaligned-remove-packed-struct-and-unaligned-access_ok-headers.patch
unaligned-pack-the-struct-not-the-struct-members.patch
unaligned-move-arm-m32r-h8300-to-the-asm-generic-version.patch
unaligned-remove-last-bits-of-the-unaligned-access-helpers.patch
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: + unaligned-introduce-common-header.patch added to -mm tree
2008-11-19 6:14 + unaligned-introduce-common-header.patch added to -mm tree akpm
@ 2008-11-19 8:21 ` Geert Uytterhoeven
2008-11-19 8:21 ` Geert Uytterhoeven
2008-11-19 17:16 ` Harvey Harrison
2008-11-19 18:59 ` Harvey Harrison
1 sibling, 2 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2008-11-19 8:21 UTC (permalink / raw)
To: Andrew Morton
Cc: mm-commits, harvey.harrison, Benjamin Herrenschmidt, bryan.wu,
David S. Miller, dhowells, Greg Ungerer, grundler, heiko.carstens,
hskinnemoen, ink, kyle, lethal, linux-arch, mingo, Paul Mackerras,
Ralf Baechle, Russell King, rth, schwidefsky, takata, tglx,
tony.luck, ysato, zankel, Roman Zippel, Linux Kernel Development
On Tue, 18 Nov 2008, akpm@linux-foundation.org wrote:
> Subject: unaligned: introduce common header
> From: Harvey Harrison <harvey.harrison@gmail.com>
>
> There are two common cases in the kernel, one where unaligned access is OK
> for an arch and one where the arch uses a packed-struct for the native
> endianness and opencoded C byteshifting for the other endianness.
> Consolidate these two implementations in asm-generic/unaligned.h
>
> Arches that require no special handling of unaligned access can define
> _UNALIGNED_ACCESS_OK in their asm/unaligned.h before including the generic
> version.
>
> +static inline void __put_le32_noalign(u8 *p, u32 val)
> +{
> + __put_le16_noalign(p + 2, val >> 16);
> + __put_le16_noalign(p, val);
Isn't it more logical to reverse the order, to store in increasing memory
locations:
__put_le16_noalign(p, val);
__put_le16_noalign(p + 2, val >> 16);
> +}
> +
> +static inline void __put_le64_noalign(u8 *p, u64 val)
> +{
> + __put_le32_noalign(p + 4, val >> 32);
> + __put_le32_noalign(p, val);
Same here:
__put_le32_noalign(p, val);
__put_le32_noalign(p + 4, val >> 32);
> +}
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: + unaligned-introduce-common-header.patch added to -mm tree
2008-11-19 8:21 ` Geert Uytterhoeven
@ 2008-11-19 8:21 ` Geert Uytterhoeven
2008-11-19 17:16 ` Harvey Harrison
1 sibling, 0 replies; 5+ messages in thread
From: Geert Uytterhoeven @ 2008-11-19 8:21 UTC (permalink / raw)
To: Andrew Morton
Cc: mm-commits, harvey.harrison, Benjamin Herrenschmidt, bryan.wu,
David S. Miller, dhowells, Greg Ungerer, grundler, heiko.carstens,
hskinnemoen, ink, kyle, lethal, linux-arch, mingo, Paul Mackerras,
Ralf Baechle, Russell King, rth, schwidefsky, takata, tglx,
tony.luck, ysato, zankel, Roman Zippel, Linux Kernel Development
On Tue, 18 Nov 2008, akpm@linux-foundation.org wrote:
> Subject: unaligned: introduce common header
> From: Harvey Harrison <harvey.harrison@gmail.com>
>
> There are two common cases in the kernel, one where unaligned access is OK
> for an arch and one where the arch uses a packed-struct for the native
> endianness and opencoded C byteshifting for the other endianness.
> Consolidate these two implementations in asm-generic/unaligned.h
>
> Arches that require no special handling of unaligned access can define
> _UNALIGNED_ACCESS_OK in their asm/unaligned.h before including the generic
> version.
>
> +static inline void __put_le32_noalign(u8 *p, u32 val)
> +{
> + __put_le16_noalign(p + 2, val >> 16);
> + __put_le16_noalign(p, val);
Isn't it more logical to reverse the order, to store in increasing memory
locations:
__put_le16_noalign(p, val);
__put_le16_noalign(p + 2, val >> 16);
> +}
> +
> +static inline void __put_le64_noalign(u8 *p, u64 val)
> +{
> + __put_le32_noalign(p + 4, val >> 32);
> + __put_le32_noalign(p, val);
Same here:
__put_le32_noalign(p, val);
__put_le32_noalign(p + 4, val >> 32);
> +}
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: + unaligned-introduce-common-header.patch added to -mm tree
2008-11-19 8:21 ` Geert Uytterhoeven
2008-11-19 8:21 ` Geert Uytterhoeven
@ 2008-11-19 17:16 ` Harvey Harrison
1 sibling, 0 replies; 5+ messages in thread
From: Harvey Harrison @ 2008-11-19 17:16 UTC (permalink / raw)
To: Geert Uytterhoeven
Cc: Andrew Morton, mm-commits, Benjamin Herrenschmidt, bryan.wu,
David S. Miller, dhowells, Greg Ungerer, grundler, heiko.carstens,
hskinnemoen, ink, kyle, lethal, linux-arch, mingo, Paul Mackerras,
Ralf Baechle, Russell King, rth, schwidefsky, takata, tglx,
tony.luck, ysato, zankel, Roman Zippel, Linux Kernel Development
On Wed, 2008-11-19 at 09:21 +0100, Geert Uytterhoeven wrote:
> On Tue, 18 Nov 2008, akpm@linux-foundation.org wrote:
> > Subject: unaligned: introduce common header
> > From: Harvey Harrison <harvey.harrison@gmail.com>
> >
> > There are two common cases in the kernel, one where unaligned access is OK
> > for an arch and one where the arch uses a packed-struct for the native
> > endianness and opencoded C byteshifting for the other endianness.
> > Consolidate these two implementations in asm-generic/unaligned.h
> >
> > Arches that require no special handling of unaligned access can define
> > _UNALIGNED_ACCESS_OK in their asm/unaligned.h before including the generic
> > version.
> >
> > +static inline void __put_le32_noalign(u8 *p, u32 val)
> > +{
> > + __put_le16_noalign(p + 2, val >> 16);
> > + __put_le16_noalign(p, val);
>
> Isn't it more logical to reverse the order, to store in increasing memory
> locations:
>
> __put_le16_noalign(p, val);
> __put_le16_noalign(p + 2, val >> 16);
>
All of the byteshifting versions were cribbed from the ARM implementation.
I'm not sure if there was a particular reason for doing it in this order, but
a lot of work seems to have gone in to minimize register usage.
See include/asm-arm/unaligned.h circa 2.6.25.
Harvey
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: + unaligned-introduce-common-header.patch added to -mm tree
2008-11-19 6:14 + unaligned-introduce-common-header.patch added to -mm tree akpm
2008-11-19 8:21 ` Geert Uytterhoeven
@ 2008-11-19 18:59 ` Harvey Harrison
1 sibling, 0 replies; 5+ messages in thread
From: Harvey Harrison @ 2008-11-19 18:59 UTC (permalink / raw)
To: akpm
Cc: mm-commits, benh, bryan.wu, davem, dhowells, geert, gerg,
grundler, heiko.carstens, hskinnemoen, ink, kyle, lethal,
linux-arch, mingo, paulus, ralf, rmk, rth, schwidefsky, takata,
tglx, tony.luck, ysato, zankel, zippel
[PATCH] unaligned: fix return type for get_unaligned_le64/be64
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
---
With my apologies, compiler didn't warn about the truncation.
include/asm-generic/unaligned.h | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/asm-generic/unaligned.h b/include/asm-generic/unaligned.h
index ac23e04..3bef59f 100644
--- a/include/asm-generic/unaligned.h
+++ b/include/asm-generic/unaligned.h
@@ -120,7 +120,7 @@ static inline u32 get_unaligned_le32(const void *p)
#endif
}
-static inline u16 get_unaligned_le64(const void *p)
+static inline u64 get_unaligned_le64(const void *p)
{
#ifdef __LITTLE_ENDIAN
return ((const struct __una_u64 *)p)->x;
@@ -147,7 +147,7 @@ static inline u32 get_unaligned_be32(const void *p)
#endif
}
-static inline u16 get_unaligned_be64(const void *p)
+static inline u64 get_unaligned_be64(const void *p)
{
#ifdef __BIG_ENDIAN
return ((const struct __una_u64 *)p)->x;
--
1.6.0.4.1013.gc6a01
^ permalink raw reply related [flat|nested] 5+ messages in thread
end of thread, other threads:[~2008-11-19 18:59 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-11-19 6:14 + unaligned-introduce-common-header.patch added to -mm tree akpm
2008-11-19 8:21 ` Geert Uytterhoeven
2008-11-19 8:21 ` Geert Uytterhoeven
2008-11-19 17:16 ` Harvey Harrison
2008-11-19 18:59 ` Harvey Harrison
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox