From patchwork Fri Jul 17 13:54:54 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?q?Horia_Geant=C4=83?= X-Patchwork-Id: 6815921 X-Patchwork-Delegate: herbert@gondor.apana.org.au Return-Path: X-Original-To: patchwork-linux-crypto@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id F39EBC05AC for ; Fri, 17 Jul 2015 13:56:40 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 25BD3207A8 for ; Fri, 17 Jul 2015 13:56:40 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 269E22066C for ; Fri, 17 Jul 2015 13:56:39 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753199AbbGQN4i (ORCPT ); Fri, 17 Jul 2015 09:56:38 -0400 Received: from mail-bl2on0140.outbound.protection.outlook.com ([65.55.169.140]:41758 "EHLO na01-bl2-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751305AbbGQN4h (ORCPT ); Fri, 17 Jul 2015 09:56:37 -0400 Received: from BLUPR0301CA0024.namprd03.prod.outlook.com (10.162.113.162) by CY1PR0301MB1609.namprd03.prod.outlook.com (10.162.166.23) with Microsoft SMTP Server (TLS) id 15.1.213.14; Fri, 17 Jul 2015 13:56:35 +0000 Received: from BY2FFO11FD008.protection.gbl (2a01:111:f400:7c0c::198) by BLUPR0301CA0024.outlook.office365.com (2a01:111:e400:5259::34) with Microsoft SMTP Server (TLS) id 15.1.219.17 via Frontend Transport; Fri, 17 Jul 2015 13:56:35 +0000 Authentication-Results: spf=fail (sender IP is 192.88.168.50) smtp.mailfrom=freescale.com; freescale.mail.onmicrosoft.com; dkim=none (message not signed) header.d=none; Received-SPF: Fail (protection.outlook.com: domain of freescale.com does not designate 192.88.168.50 as permitted sender) receiver=protection.outlook.com; client-ip=192.88.168.50; helo=tx30smr01.am.freescale.net; Received: from tx30smr01.am.freescale.net (192.88.168.50) by BY2FFO11FD008.mail.protection.outlook.com (10.1.14.159) with Microsoft SMTP Server (TLS) id 15.1.213.8 via Frontend Transport; Fri, 17 Jul 2015 13:56:34 +0000 Received: from enigma.ea.freescale.net (enigma.ea.freescale.net [10.171.77.120]) by tx30smr01.am.freescale.net (8.14.3/8.14.0) with ESMTP id t6HDuOo2027168; Fri, 17 Jul 2015 06:56:33 -0700 From: =?UTF-8?q?Horia=20Geant=C4=83?= To: Herbert Xu CC: , Tudor Ambarus Subject: [PATCH 4/4] crypto: caam - fix warning in APPEND_MATH_IMM_u64 Date: Fri, 17 Jul 2015 16:54:54 +0300 Message-ID: <1437141294-15678-4-git-send-email-horia.geanta@freescale.com> X-Mailer: git-send-email 2.4.4 In-Reply-To: <1437141294-15678-1-git-send-email-horia.geanta@freescale.com> References: <1437141294-15678-1-git-send-email-horia.geanta@freescale.com> MIME-Version: 1.0 X-EOPAttributedMessage: 0 X-Microsoft-Exchange-Diagnostics: 1; BY2FFO11FD008; 1:E/6tCyUQaTNTiwCaIvruVbMIGwZQY9VxPcZB9pbdEFgJYc2ZY3vSZH/LS6nElLLGHBNk+ygLGlgcmsrWY9f5t8va6zH4sd7JvivjoTRvi7MFDTzkJwxeDrMISQvoY95bRcvxYqm4H7ilWI8Ju+mN49dHqx8GJs1jacO0WaP+LNUP2UN/7gWL92LVkN4nXjnrE4TieGCFzLuN+hgLWz0Esxr5Cz8sRzdORPSA45C/c5IgWin5B2vIqqe3ckzJibCL0UMVG+V1Z+N+uQU3XR7c9xkiKfsbFITBx8LcIGOXu2sMLSrcAOt2AeCwaBOgirCE/5tf9WbBg5j1fkqmGsCUHhwlvzid34n/8lFK83y8fMFIxC3yw894BUHRV9+7hnWKEiYEYhpkumHoz5AG8mIQG6QRhSuTW4ZRb+lT6pb1lqIcvwA+ZamRiKOIHY5Wh0zP X-Forefront-Antispam-Report: CIP:192.88.168.50; CTRY:US; IPV:NLI; EFV:NLI; SFV:NSPM; SFS:(10019020)(6009001)(2980300002)(339900001)(189002)(199003)(50466002)(50986999)(50226001)(5820100001)(76176999)(85426001)(19580395003)(19580405001)(104016003)(33646002)(46102003)(229853001)(23676002)(77096005)(47776003)(2950100001)(106466001)(105606002)(92566002)(77156002)(62966003)(189998001)(36756003)(6806004)(5001960100002)(110136002)(87936001)(107886002)(86362001)(4001430100001); DIR:OUT; SFP:1102; SCL:1; SRVR:CY1PR0301MB1609; H:tx30smr01.am.freescale.net; FPR:; SPF:Fail; MLV:sfv; MX:1; A:1; LANG:en; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1609; 2:f3lINMokUqJzTUT6iBui0u4SKGfUQAdyJPSOvWbZlBDuO0h4SkH8LnKtnkdzzQch; 3:qu/CZIKf90AqmKoso5CBOG/n3sYv0mNoi/bfX3hozbxnF01ZWSTHrnMsyJWbl42qNFQqLOltSfkijHVh6f1hT3+V/o789dGwzZscy3d9cplO4E8dk+y1KEEI3wLoqZ635SZu4jhP1Y4qMquApbscc/NnW6pywaJ0mxUSYX8jlkULjw5gmeoK+eDVj5+N/6IgrlOwDQSuJytinEoUpc4PEONl1WlUANN5zULN1lFQpbM=; 25:/YeD17peVg2NdT4tlHw44JyL07/86y9M7AuT6Z0EKMPNag3NjC3D1U+joXSGO5CAMttCCBVD2zpWEsQgTz0AUpWBDkD2NldGZhIQRinf7F0+t81I+3nzGdP6XvRMRKznohYjse5rQUjXnEeMY1S8ztxHITcZ6Nvp5Upfyl1U0nQh5IeGYWeMLFMR7m3JQAP59WfFiEc1SfuCHg2LvDtYz7fSt049cR/q6FAqpfrpPgbWrChlPjNQFMI9DwNCA9EqJKnZEBPGCNyBkKbZ7+PAKw==; 20:v5ynq8WpjFPGtM8qtEhpOJUC9VlkKTeZ+30yIToH+dnSVEAU5h6F11qKrlU/FXfmXH5FGV+TQ7kLpp8eCJH5Psw2D6v0/L9oDfUIY1dEQ2I2sGvcHAe7AZssfnF/N6R/QCcjt/39vkRA4j5vWjXlp13VKuJEnBx2hV3cVFk5/TpXxTucboQCn0WgnGIkqdrUBNJ5J9IEfVx6d1h6F+zmwSKtfNcC0CRwq4WxC4PkM0qPDd3MIe03iabJJKzMTw1JiA71Pl24qKdQjnxwwtTvhweZRby+S6nLqypFYqZf4MYSPyyFpZNwxzIHEc6NDmxaSa+6jbrTLGypw6ANU2MxCtLfG BApBDH2MkeOLVr9jsQ= X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:;SRVR:CY1PR0301MB1609; CY1PR0301MB1609: X-MS-Exchange-Organization-RulesExecuted X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-Test: UriScan:; X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(601004)(5005006)(3002001); SRVR:CY1PR0301MB1609; BCL:0; PCL:0; RULEID:; SRVR:CY1PR0301MB1609; X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1609; 4:MCq7oPYqIG1L/rWNfq8IXciyj0QAI5kmEJZYLaSYPou5UeeauBvebmy/ksgtYPUvHit1wgoUo0pDC4zn2EjTlKYYQTqv5KB2Z1nxkSncq50ESoVNPkSOSu+tDgaQ96CRnOQ8AQ+79InhXYANWJJePYEHJN9c7UkcSi+i9m5dREEzEPSHtTCY3k4PM/ldThOEBVqly7W3G7XNfhU3UVPMfBW5yqD40wumELLtud9WOQACB/jpxrFEzl7PQiL9ixzXKwPHrT1fAWd+R2mcWiH9Ft9KoFGf/k5kGgJ85i4rJ5w= X-Forefront-PRVS: 06400060E1 X-Microsoft-Exchange-Diagnostics: 1; CY1PR0301MB1609; 23:ovbLsX48A8sUBemBHpzXpr7ZO347PYNeI2L/9pBNGp+LRRwPYm5jeO9tN9Qn7HMKuzGI6UaR5G024vMrUp2MK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mAQkaA5sV6ToK7YPTzC72h9OgOrZSRd9YLeriVJCApkLZkS3GHfkMvCSWn1YydJ1v4H4ikChdOCMxNXd/1LVNoXFB4OBR0Yq1FmLM=; 20:VNFGiQNB3YpTGdccAhMQIbcaLMVgCQASfzikD33fgrS5kRwlfHfv48sv1GIdedmXC9+XC7vu7ajZBtg55/ImPQ== X-OriginatorOrg: freescale.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 17 Jul 2015 13:56:34.8088 (UTC) X-MS-Exchange-CrossTenant-Id: 710a03f5-10f6-4d38-9ff4-a80b81da590d X-MS-Exchange-CrossTenant-OriginalAttributedTenantConnectingIp: TenantId=710a03f5-10f6-4d38-9ff4-a80b81da590d; Ip=[192.88.168.50]; Helo=[tx30smr01.am.freescale.net] X-MS-Exchange-CrossTenant-FromEntityHeader: HybridOnPrem X-MS-Exchange-Transport-CrossTenantHeadersStamped: CY1PR0301MB1609 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org X-Spam-Status: No, score=-8.1 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Tudor Ambarus An implicit truncation is done when using a variable of 64 bits in MATH command: warning: large integer implicitly truncated to unsigned type [-Woverflow] Silence the compiler by feeding it with an explicit truncated value. Signed-off-by: Tudor Ambarus Signed-off-by: Horia Geant? --- drivers/crypto/caam/desc_constr.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/crypto/caam/desc_constr.h b/drivers/crypto/caam/desc_constr.h index 9f79fd7bd4d7..98d07de24fc4 100644 --- a/drivers/crypto/caam/desc_constr.h +++ b/drivers/crypto/caam/desc_constr.h @@ -367,7 +367,7 @@ do { \ if (upper) \ append_u64(desc, data); \ else \ - append_u32(desc, data); \ + append_u32(desc, lower_32_bits(data)); \ } while (0) #define append_math_add_imm_u64(desc, dest, src0, src1, data) \