From: Harvey Harrison <harvey.harrison@gmail.com>
To: akpm@linux-foundation.org
Cc: mm-commits@vger.kernel.org, benh@kernel.crashing.org,
bryan.wu@analog.com, davem@davemloft.net, dhowells@redhat.com,
geert@linux-m68k.org, gerg@uclinux.org,
grundler@parisc-linux.org, heiko.carstens@de.ibm.com,
hskinnemoen@atmel.com, ink@jurassic.park.msu.ru,
kyle@mcmartin.ca, lethal@linux-sh.org,
linux-arch@vger.kernel.org, mingo@elte.hu, paulus@samba.org,
ralf@linux-mips.org, rmk@arm.linux.org.uk, rth@twiddle.net,
schwidefsky@de.ibm.com, takata@linux-m32r.org,
tglx@linutronix.de, tony.luck@intel.com,
ysato@users.sourceforge.jp, zankel@tensilica.com,
zippel@linux-m68k.org
Subject: Re: + unaligned-introduce-common-header.patch added to -mm tree
Date: Wed, 19 Nov 2008 10:59:23 -0800 [thread overview]
Message-ID: <1227121163.13182.18.camel@brick> (raw)
In-Reply-To: <200811190614.mAJ6EsXA007330@imap1.linux-foundation.org>
[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
next prev parent reply other threads:[~2008-11-19 18:59 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
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 17:16 ` Harvey Harrison
2008-11-19 18:59 ` Harvey Harrison [this message]
-- strict thread matches above, loose matches on Subject: below --
2008-11-19 6:14 akpm
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1227121163.13182.18.camel@brick \
--to=harvey.harrison@gmail.com \
--cc=akpm@linux-foundation.org \
--cc=benh@kernel.crashing.org \
--cc=bryan.wu@analog.com \
--cc=davem@davemloft.net \
--cc=dhowells@redhat.com \
--cc=geert@linux-m68k.org \
--cc=gerg@uclinux.org \
--cc=grundler@parisc-linux.org \
--cc=heiko.carstens@de.ibm.com \
--cc=hskinnemoen@atmel.com \
--cc=ink@jurassic.park.msu.ru \
--cc=kyle@mcmartin.ca \
--cc=lethal@linux-sh.org \
--cc=linux-arch@vger.kernel.org \
--cc=mingo@elte.hu \
--cc=mm-commits@vger.kernel.org \
--cc=paulus@samba.org \
--cc=ralf@linux-mips.org \
--cc=rmk@arm.linux.org.uk \
--cc=rth@twiddle.net \
--cc=schwidefsky@de.ibm.com \
--cc=takata@linux-m32r.org \
--cc=tglx@linutronix.de \
--cc=tony.luck@intel.com \
--cc=ysato@users.sourceforge.jp \
--cc=zankel@tensilica.com \
--cc=zippel@linux-m68k.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.