Message ID | 20171108085918.12590-12-oohall@gmail.com |
---|---|
State | Accepted |
Headers | show
Return-Path: <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3yX0hc5bT5z9sNw for <incoming@patchwork.ozlabs.org>; Wed, 8 Nov 2017 20:03:44 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sTX9Wggz"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 3yX0hb6WSRzDrKp for <incoming@patchwork.ozlabs.org>; Wed, 8 Nov 2017 20:03:43 +1100 (AEDT) Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sTX9Wggz"; dkim-atps=neutral X-Original-To: skiboot@lists.ozlabs.org Delivered-To: skiboot@lists.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (mailfrom) smtp.mailfrom=gmail.com (client-ip=2607:f8b0:400e:c01::242; helo=mail-pl0-x242.google.com; envelope-from=oohall@gmail.com; receiver=<UNKNOWN>) Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="sTX9Wggz"; dkim-atps=neutral Received: from mail-pl0-x242.google.com (mail-pl0-x242.google.com [IPv6:2607:f8b0:400e:c01::242]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 3yX0cF30wdzDrK1 for <skiboot@lists.ozlabs.org>; Wed, 8 Nov 2017 19:59:57 +1100 (AEDT) Received: by mail-pl0-x242.google.com with SMTP id t7so887014plm.0 for <skiboot@lists.ozlabs.org>; Wed, 08 Nov 2017 00:59:57 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=cVeOqhP47N5PDzkEIg8EX8Jhp+dH85oXWQAU1wvmGhM=; b=sTX9WggzwKwPPMLtOuaSr9bKjOAh8FTMF1H7e+n1sOHI7qpG40DsMcNuVxs3NxM0yq j1o9skIgn/vajzH3zsottiFFzUF2BJ8eaHJ+3V+8mPPYmqezclA82RuJuv6Pvn1S3z0C BLdqRBNyu9gZx6u+ReA4xGUmJ4GTrudDPr6pdz8lor65/TbV8+We/x59+2QvOf2tRHe9 ILzcS9iUuIrZY1aw919uUeIQT1ZKdLGvrsdZO77vjkGgzue+6MEyQxjymFXcoJqAhrn+ Yxn+saNljzQ600O3lmq5ee6RCMtNVil8U8rdJwf+0WBJZq6oKk0jmG8zbp6kIMsVFD7m +TBQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=cVeOqhP47N5PDzkEIg8EX8Jhp+dH85oXWQAU1wvmGhM=; b=rEsbprE/aL78Bkf+F60FfkS3UMOn8PjyL3uA/ZhxNVg4HVOdIcdQ2YHwmLFlg5XBnW 8KN8IcOFwh1KF2YQh9Iga48dbhEdNMlaLxMDPyZTdX9Vm8+E8gRj/5pQR6agBX6K/6zR INB+LSHgqf0LfReN8a5pHJNgBUqlGyguQFPH5oeoPaEmpClmgh32YJuy8d93Kukjd2Bg wLYjlaKDgjfyX5GNS2Rtaag5RD9cuFvV+koUMLPTthyWK24G6f4navj42TTcA7r9PsiR h+XQGJnVLRRAtAm9xnTK27P5oXLkonDFaiy6PsElWE9lIVswSl3Kbnviy6EP70ch4laS YYig== X-Gm-Message-State: AJaThX49LcqYVT1SZymfpGAMLftLW1HirU4h0RitMdQhkRax3cvIB90y AQhhOzDC6loDgH+JVUthWJWPqA== X-Google-Smtp-Source: ABhQp+QCvkVL8dHsO1d0wgop7w8ArFkKzk9MJm786PCMQ4jvbV0AsYnhVeuhoh6XtQTm0A637hwzOA== X-Received: by 10.84.247.148 with SMTP id o20mr1551663pll.321.1510131595547; Wed, 08 Nov 2017 00:59:55 -0800 (PST) Received: from flat-canetoad.ozlabs.ibm.com ([122.99.82.10]) by smtp.gmail.com with ESMTPSA id 24sm7005210pfk.9.2017.11.08.00.59.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 08 Nov 2017 00:59:55 -0800 (PST) From: Oliver O'Halloran <oohall@gmail.com> To: skiboot@lists.ozlabs.org Date: Wed, 8 Nov 2017 19:59:16 +1100 Message-Id: <20171108085918.12590-12-oohall@gmail.com> X-Mailer: git-send-email 2.9.5 In-Reply-To: <20171108085918.12590-1-oohall@gmail.com> References: <20171108085918.12590-1-oohall@gmail.com> Subject: [Skiboot] [PATCH 11/13] libflash: Fix parity calculation on ARM X-BeenThere: skiboot@lists.ozlabs.org X-Mailman-Version: 2.1.24 Precedence: list List-Id: Mailing list for skiboot development <skiboot.lists.ozlabs.org> List-Unsubscribe: <https://lists.ozlabs.org/options/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=unsubscribe> List-Archive: <http://lists.ozlabs.org/pipermail/skiboot/> List-Post: <mailto:skiboot@lists.ozlabs.org> List-Help: <mailto:skiboot-request@lists.ozlabs.org?subject=help> List-Subscribe: <https://lists.ozlabs.org/listinfo/skiboot>, <mailto:skiboot-request@lists.ozlabs.org?subject=subscribe> MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Skiboot" <skiboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org> |
Series |
[01/13] gard: show: Remove "Res Recovery" field
|
expand
|
diff --git a/libflash/ecc.c b/libflash/ecc.c index 0be80b1f7a2e..0fbd30b92d00 100644 --- a/libflash/ecc.c +++ b/libflash/ecc.c @@ -121,7 +121,7 @@ static uint8_t parity(uint64_t data) return p; #else - return __builtin_parityl(data); + return __builtin_parityll(data); #endif }
To calculate the ECC syndrome we need to calculate the parity of a 64bit number. On non-powerpc platforms we use the gcc builtin function __builtin_parityl() to do this calculation. This is broken on 32bit ARM where sizeof(unsigned long) is four bytes. Using __builtin_parityll() instead cures this. Signed-off-by: Oliver O'Halloran <oohall@gmail.com> --- libflash/ecc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)