[Skiboot] [PATCH] libflash: Fix 32-bit ecc build of pflash

Benjamin Herrenschmidt benh at kernel.crashing.org
Mon Jun 15 13:00:35 AEST 2015


uint64_t is a long long, the constants need the "ull" suffix.

Signed-off-by: Benjamin Herrenschmidt <benh at kernel.crashing.org>

diff --git a/libflash/ecc.c b/libflash/ecc.c
index 8ab1f31..78c88d0 100644
--- a/libflash/ecc.c
+++ b/libflash/ecc.c
@@ -38,14 +38,14 @@
  *  These values come from the HW design of the ECC algorithm.
  */
 static uint64_t eccmatrix[] = {
-        0x0000e8423c0f99ff,
-        0x00e8423c0f99ff00,
-        0xe8423c0f99ff0000,
-        0x423c0f99ff0000e8,
-        0x3c0f99ff0000e842,
-        0x0f99ff0000e8423c,
-        0x99ff0000e8423c0f,
-        0xff0000e8423c0f99
+        0x0000e8423c0f99ffull,
+        0x00e8423c0f99ff00ull,
+        0xe8423c0f99ff0000ull,
+        0x423c0f99ff0000e8ull,
+        0x3c0f99ff0000e842ull,
+        0x0f99ff0000e8423cull,
+        0x99ff0000e8423c0full,
+        0xff0000e8423c0f99ull
 };
 
 /**




More information about the Skiboot mailing list