From 4519668b29bb8422ceca8e7ca9a35d5af0afe959 Mon Sep 17 00:00:00 2001 From: Marcel Ziswiler Date: Tue, 18 Aug 2015 13:06:37 +0200 Subject: mtd/nand/ubi: assortment of alignment fixes Various U-Boot adoptions/extensions to MTD/NAND/UBI did not take buffer alignment into account which led to failures of the following form: ERROR: v7_dcache_inval_range - start address is not aligned - 0x1f7f0108 ERROR: v7_dcache_inval_range - stop address is not aligned - 0x1f7f1108 Signed-off-by: Marcel Ziswiler Reviewed-by: Simon Glass Acked-by: Scott Wood [trini: Add __UBOOT__ hunk to lib/zlib/zutil.c due to malloc.h in common.h] Signed-off-by: Tom Rini --- lib/zlib/zutil.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lib/zlib') diff --git a/lib/zlib/zutil.c b/lib/zlib/zutil.c index 14f6eb1..173a81d 100644 --- a/lib/zlib/zutil.c +++ b/lib/zlib/zutil.c @@ -43,11 +43,13 @@ void z_error (m) */ #ifndef MY_ZCALLOC /* Any system without a special alloc function */ +#ifndef __UBOOT__ #ifndef STDC extern voidp malloc OF((uInt size)); extern voidp calloc OF((uInt items, uInt size)); extern void free OF((voidpf ptr)); #endif +#endif voidpf zcalloc(voidpf opaque, unsigned items, unsigned size) { -- cgit v1.1