From patchwork Tue Jan 9 10:24:33 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Gilad Ben-Yossef X-Patchwork-Id: 123866 Delivered-To: patch@linaro.org Received: by 10.80.140.226 with SMTP id r31csp280408edr; Tue, 9 Jan 2018 02:26:29 -0800 (PST) X-Google-Smtp-Source: ACJfBos028TNs1WWycTGO3vdU43AcMAP3c6mUmNaSjDAbkGVxXnSVT+jEITyb8F3G56Js+CFclnV X-Received: by 10.99.123.28 with SMTP id w28mr960983pgc.305.1515493589058; Tue, 09 Jan 2018 02:26:29 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1515493589; cv=none; d=google.com; s=arc-20160816; b=y5UemxUGbLhM17estmCqgrob/U7QlociJB3ALKc7TKCHLa1PL3bZTl/9W5Yw2CfNtD rJKkWhQy6lVbwheuPbt/B/9JO57hajGemtsiUCPQQVx12wdyhCnwYGbtSAdAgkAP07eZ OQfOxxbY09O3d2UZS60TVgm13ozKimksYUwY1w48YoW8ootokhXqAkCtNZwwrpVvOwP5 iRXEsukg8nRm/vPXI6Us5rt/3Ra0SXHGHGttgUZw38A0mt+GalhuPci8bCpjJzg2uofb eQ9ETqmBHhFAHU2lvonSOunTJqO3yrn7nNAPxPrley3Due30heEVLcoZ+8QfXgmH1RRk 2Iww== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:arc-authentication-results; bh=a70cQN/alSEmFjIZpjadC70iKtS1oNgAOVdWZzUKvIo=; b=k9wDxZnVviOCFIDo5C/Y7FbMDPLLQWBHaB9MdPdJBQNk+36SmaTiQwcYJ/gSE8Y01N x097s9t/maCobo4y+UO1wG3LUnDiC5y4+zMe6CFJRshlGdCWMpkMs/2hJMzfDXIfQpyf GE2qMfdDr2DtBClLLSpmOilbpIINBTIGrUSiD3ps46ghDht6+lt1yMC+ys69P0EcHXgd WSeZgBCUfoqwO6lNjFeGPNu4QMUWwbexwkCAbhu8B6ILrQapIWUVSoFwCI83NYy2Lhtf 5tXVghkScu85SfmwMudtHa5546J/Mv1FSE7PsRb1J3tNgXZymOU1BJW6sOats3qk6n2v W7jw== 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 q6si2995355pli.817.2018.01.09.02.26.28; Tue, 09 Jan 2018 02:26:29 -0800 (PST) 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 S1754586AbeAIK00 (ORCPT + 1 other); Tue, 9 Jan 2018 05:26:26 -0500 Received: from foss.arm.com ([217.140.101.70]:51698 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754392AbeAIK0W (ORCPT ); Tue, 9 Jan 2018 05:26:22 -0500 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 9446A80D; Tue, 9 Jan 2018 02:26:22 -0800 (PST) Received: from localhost.localdomain (usa-sjc-mx-foss1.foss.arm.com [217.140.101.70]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id BBB193F41F; Tue, 9 Jan 2018 02:26:20 -0800 (PST) From: Gilad Ben-Yossef To: Greg Kroah-Hartman Cc: Ofir Drang , linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 5/5] staging: ccree: dma mask is type u64 Date: Tue, 9 Jan 2018 10:24:33 +0000 Message-Id: <1515493478-30454-6-git-send-email-gilad@benyossef.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1515493478-30454-1-git-send-email-gilad@benyossef.com> References: <1515493478-30454-1-git-send-email-gilad@benyossef.com> Sender: linux-crypto-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org The dma mask var was defined as dma_addr_t but should be u64. This showed as a sparse warning when building for 32 bit. Fix it by changing type to u64 and drop the cast. Signed-off-by: Gilad Ben-Yossef --- drivers/staging/ccree/cc_driver.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.7.4 diff --git a/drivers/staging/ccree/cc_driver.c b/drivers/staging/ccree/cc_driver.c index b49bc25..6682d9d 100644 --- a/drivers/staging/ccree/cc_driver.c +++ b/drivers/staging/ccree/cc_driver.c @@ -156,7 +156,7 @@ static int init_cc_resources(struct platform_device *plat_dev) struct device *dev = &plat_dev->dev; struct device_node *np = dev->of_node; u32 signature_val; - dma_addr_t dma_mask; + u64 dma_mask; int rc = 0; new_drvdata = devm_kzalloc(dev, sizeof(*new_drvdata), GFP_KERNEL); @@ -205,7 +205,7 @@ static int init_cc_resources(struct platform_device *plat_dev) if (!plat_dev->dev.dma_mask) plat_dev->dev.dma_mask = &plat_dev->dev.coherent_dma_mask; - dma_mask = (dma_addr_t)(DMA_BIT_MASK(DMA_BIT_MASK_LEN)); + dma_mask = DMA_BIT_MASK(DMA_BIT_MASK_LEN); while (dma_mask > 0x7fffffffUL) { if (dma_supported(&plat_dev->dev, dma_mask)) { rc = dma_set_coherent_mask(&plat_dev->dev, dma_mask);