From patchwork Sun Apr 28 08:33:22 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 163003 Delivered-To: patch@linaro.org Received: by 2002:a92:7e86:0:0:0:0:0 with SMTP id q6csp585789ill; Sun, 28 Apr 2019 01:33:32 -0700 (PDT) X-Google-Smtp-Source: APXvYqzfEjE572VNhXv5gdcLFNAAn9DmKWXTlBjZOVKITM7ugPMnFlwcUwUt4tvlb4yB2hC/2MrS X-Received: by 2002:a63:f843:: with SMTP id v3mr48975557pgj.69.1556440412654; Sun, 28 Apr 2019 01:33:32 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556440412; cv=none; d=google.com; s=arc-20160816; b=rbGl3hvlOQiN5f1ys6e/uPy/JTegJoJK0SojNEcXEmVgICGRzfCXF3t8VycGLYHPSS YYJs1vrb4nMs94onVlCDFtNpTSj5S8SIBh3BRA3sN4ooG5LS/u/XU4KiZvscQ4l22M2G +a4kC4vgDbG0ibqnHowF9EkQ1wic/5U0NINpXZ9Q1YsIl+fSseZXbcz1sVyWpjMwV/cs X/bcRQs0eT4/9X9XpG3mFrLNircOP8ROqP4N8F2r0/7wQDTWCScUdrduBkeMp/Mq8HpD 7wKxK9CIXOIrh1sPsPahqVvDW3RDtfJ4a+jwzNtIylEQqcz4FCrkcuoAepu83Yj+abak Zr+Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from; bh=w/zG065J+/HUcY8b0KBsNcqf+21XIA2KqbotWvdyuzg=; b=yNrHHXX6Dm2PoHBq1QPhgY2+dlhyGL5oHZIrzWVCVcEQqQa4HBPqqwuGLphB2q0B6/ qPImH0NfibJ5bcVMSeMN0rdolpAsGfek2D/fX/mXj+1mfyVpOplB9fgr/gKPag2RyuWH IvvLC5XB8Rq3lw6woU14y/jxV+LwMqIrc3zzp1mfOx09ZK8l++juYTNVwk1L39YKsZtT aL+nRCxp9U5FXV/g9f/XizRL64d3E8bmoZAKxF2zG+XWFNXnV7qAUCegeHpLV8OWJykh UJAE9a29cop4pmJVkLMamysBO5pNl6/dG+JMLFJRVHyZuD7ThVRiYOgIDiXG14g817kG DdKA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id p9si30030153plo.49.2019.04.28.01.33.32; Sun, 28 Apr 2019 01:33:32 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-crypto-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726553AbfD1Idb (ORCPT + 3 others); Sun, 28 Apr 2019 04:33:31 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:53870 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726466AbfD1Idb (ORCPT ); Sun, 28 Apr 2019 04:33:31 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.72.51.249]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 39B89374; Sun, 28 Apr 2019 01:33:31 -0700 (PDT) Received: from e110176-lin.kfn.arm.com (unknown [10.50.4.178]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 8E0CE3F5AF; Sun, 28 Apr 2019 01:33:29 -0700 (PDT) From: Gilad Ben-Yossef To: Herbert Xu , "David S. Miller" Cc: Ofir Drang , kbuild test robot , linux-crypto@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] crypto: ccree: use a proper le32 type for le32 val Date: Sun, 28 Apr 2019 11:33:22 +0300 Message-Id: <20190428083322.26175-1-gilad@benyossef.com> X-Mailer: git-send-email 2.21.0 MIME-Version: 1.0 Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org We build an explicit little endian value from the IDR register values. Use a proper le32 type to mark the var as such to satisfy Sparse. Signed-off-by: Gilad Ben-Yossef Reported-by: kbuild test robot Fixes: dcf6285d18ea1 ("crypto: ccree - add CID and PID support") --- drivers/crypto/ccree/cc_driver.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.21.0 diff --git a/drivers/crypto/ccree/cc_driver.c b/drivers/crypto/ccree/cc_driver.c index 902f196d4be1..208957726cff 100644 --- a/drivers/crypto/ccree/cc_driver.c +++ b/drivers/crypto/ccree/cc_driver.c @@ -103,7 +103,7 @@ static u32 cc_read_idr(struct cc_drvdata *drvdata, const u32 *idr_offsets) int i; union { u8 regs[CC_NUM_IDRS]; - u32 val; + __le32 val; } idr; for (i = 0; i < CC_NUM_IDRS; ++i)