diff mbox

libflash: Fix 32-bit ecc build of pflash

Message ID 1434337235.3803.50.camel@kernel.crashing.org
State Accepted
Headers show

Commit Message

Benjamin Herrenschmidt June 15, 2015, 3 a.m. UTC
uint64_t is a long long, the constants need the "ull" suffix.

Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
diff mbox

Patch

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
 };
 
 /**