From patchwork Mon Jun 15 03:00:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Benjamin Herrenschmidt X-Patchwork-Id: 484101 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [103.22.144.68]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id E2D971401DA for ; Mon, 15 Jun 2015 13:00:49 +1000 (AEST) Received: from ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id C25C81A0E41 for ; Mon, 15 Jun 2015 13:00:49 +1000 (AEST) X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Received: from gate.crashing.org (gate.crashing.org [63.228.1.57]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 7980D1A06DB for ; Mon, 15 Jun 2015 13:00:43 +1000 (AEST) Received: from localhost (localhost.localdomain [127.0.0.1]) by gate.crashing.org (8.14.1/8.13.8) with ESMTP id t5F30aJL001432; Sun, 14 Jun 2015 22:00:37 -0500 Message-ID: <1434337235.3803.50.camel@kernel.crashing.org> From: Benjamin Herrenschmidt To: skiboot@lists.ozlabs.org Date: Mon, 15 Jun 2015 13:00:35 +1000 X-Mailer: Evolution 3.12.11-0ubuntu3 Mime-Version: 1.0 Subject: [Skiboot] [PATCH] libflash: Fix 32-bit ecc build of pflash X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: Mailing list for skiboot development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" uint64_t is a long long, the constants need the "ull" suffix. Signed-off-by: Benjamin Herrenschmidt 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 }; /**