From 1f24cd1700272f566ece8cbcde509494ccb894d0 Mon Sep 17 00:00:00 2001 From: Florian Fainelli Date: Mon, 23 Nov 2009 22:30:42 +0000 Subject: update compcache to 0.5.4 (#6018) SVN-Revision: 18512 --- .../compcache/patches/100-use_register_width.patch | 24 ++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 package/compcache/patches/100-use_register_width.patch (limited to 'package/compcache/patches/100-use_register_width.patch') diff --git a/package/compcache/patches/100-use_register_width.patch b/package/compcache/patches/100-use_register_width.patch new file mode 100644 index 0000000..6200d56 --- /dev/null +++ b/package/compcache/patches/100-use_register_width.patch @@ -0,0 +1,24 @@ +diff -uNr compcache-0.5.2/compcache.c compcache/compcache.c +--- compcache-0.5.2/compcache.c 2009-03-10 13:03:56.000000000 +0100 ++++ compcache/ramzswap.c 2009-04-01 17:38:20.000000000 +0200 +@@ -68,15 +68,15 @@ + static int page_zero_filled(void *ptr) + { + u32 pos; +- u64 *page; +- +- page = (u64 *)ptr; +- ++#if defined(CONFIG_64BIT) ++ u64 *page = (u64 *)ptr; ++#else ++ u32 *page = (u32 *)ptr; ++#endif + for (pos = 0; pos != PAGE_SIZE / sizeof(*page); pos++) { + if (page[pos]) + return 0; + } +- + return 1; + } + -- cgit v1.1