From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mike Frysinger Date: Sat, 18 Jul 2009 15:28:25 -0400 Subject: [U-Boot] [PATCH] jffs2: some fixes to summary support In-Reply-To: <1247828562-9854-1-git-send-email-yanok@emcraft.com> References: <1247828562-9854-1-git-send-email-yanok@emcraft.com> Message-ID: <200907181528.25911.vapier@gentoo.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de On Friday 17 July 2009 07:02:42 Ilya Yanok wrote: > +#ifdef CONFIG_JFFS2_SUMMARY > +static u32 sum_get_unaligned32(u32 *ptr) > +{ > + u32 val; > + u8 *p = (u8 *)ptr; > + > + val = *p | (*(p + 1) << 8) | (*(p + 2) << 16) | (*(p + 3) << 24); > + > + return __le32_to_cpu(val); > +} > + > +static u16 sum_get_unaligned16(u16 *ptr) > +{ > + u16 val; > + u8 *p = (u8 *)ptr; > + > + val = *p | (*(p + 1) << 8); > + > + return __le16_to_cpu(val); > +} do get_unaligned_le16 and such not work ? -mike -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: This is a digitally signed message part. Url : http://lists.denx.de/pipermail/u-boot/attachments/20090718/99166bb2/attachment.pgp