Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2570331yba; Mon, 6 May 2019 08:09:10 -0700 (PDT) X-Google-Smtp-Source: APXvYqyZ0JNpa98UcD0btNozimUKU/M104kn/8kQmAnZkYUOpl4ZPGEWkwzkT1INh1ozL9UnN05q X-Received: by 2002:a63:f806:: with SMTP id n6mr7505783pgh.242.1557155350164; Mon, 06 May 2019 08:09:10 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1557155350; cv=none; d=google.com; s=arc-20160816; b=shOZXOPgnWT/0QC9sADYl2lkjrttBkPYdH5Ngtk5OaglRpK48223fBA/HObq8KE0O3 INDJ545JyxNIfyjYTz9y4GggLudL/vspKJ0tyM+Hip0O87xFgShVh3NVR1IJQiySSySD ZXx0ALS/l0X2NmQ6UdurVW79El9NdulqnAsmWEvcozXQZUXSI1unb0aPumuENVp7h+dB YVT11LevRtYNZ1WfVODPmCWsjMMsVvSkwO7MZPglvgZaTAQ4mO6G2aio1fIqKmeP6GR/ 9LjZcwe97L/uOFJwA4HqaT+0GihcmH2bk3iAVy4HO2rYBFOJQMgVXmmdxPWulaflqAMi 7Skw== 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 :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=JSBML4255JhYLsMQzlisCnZsxNGlIWB5RM9hwQ5XHoo=; b=TPN28JmqzJjH167VmRjOVWIEcbWcOma3v0n+IkhX+aIEaYhVuNxIUBWHosG5s5j/jy skEWPq372JlsyjMFKEgmq4WiwntFE8gvGql03KL6AA1tQF9broqFYS6btpSit0I9G/sl Bdh1j3pVYyhJkfZ58k0mv7vEJOdver/qxQeHNpcYQuqGO7Bxwu0NQciq0OPbHrTrw6/a drJPv0fXo4uuqcl4Sns+ByUMUaQI4HOfq5IZsfpzdAW3Gpesk//zdgHKMzmqKFRnOiFP 9bDhp4q480emk1+ncm5XJIcnp8vhytnybqxo+s0aTj9rTuAOnVfpTLoGQmR/EmTEUHrt JdQw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qeJejRd3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-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 k4si14898167pgq.208.2019.05.06.08.08.53; Mon, 06 May 2019 08:09:10 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=qeJejRd3; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727695AbfEFPGY (ORCPT + 99 others); Mon, 6 May 2019 11:06:24 -0400 Received: from mail.kernel.org ([198.145.29.99]:58814 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726658AbfEFOhy (ORCPT ); Mon, 6 May 2019 10:37:54 -0400 Received: from localhost (83-86-89-107.cable.dynamic.v4.ziggo.nl [83.86.89.107]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id ACA93214AF; Mon, 6 May 2019 14:37:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1557153474; bh=zDAKcMa/8chgKR168C5oTv7UXbBJQlB3EXyfwadbaiE=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=qeJejRd3lDaaFcGE1GSwf6eYDBWKUUJWWAu2UDIi85PRuVnrfODvWGXoj3tJRRZDs KSFSzNnQL69dSrGlAEH0ZIlleuDV1Igm9Wve9Pp8wckdssEm0PRnJ6wSWqeM7mM+mN Xs4Cgn1CPLrg/TxRwQ5uxwucbtmaaCK94oBg3Goo= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Arnd Bergmann , Olof Johansson , "Sasha Levin (Microsoft)" Subject: [PATCH 5.0 081/122] ARM: orion: dont use using 64-bit DMA masks Date: Mon, 6 May 2019 16:32:19 +0200 Message-Id: <20190506143102.082580250@linuxfoundation.org> X-Mailer: git-send-email 2.21.0 In-Reply-To: <20190506143054.670334917@linuxfoundation.org> References: <20190506143054.670334917@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org [ Upstream commit cd92d74d67c811dc22544430b9ac3029f5bd64c5 ] clang warns about statically defined DMA masks from the DMA_BIT_MASK macro with length 64: arch/arm/plat-orion/common.c:625:29: error: shift count >= width of type [-Werror,-Wshift-count-overflow] .coherent_dma_mask = DMA_BIT_MASK(64), ^~~~~~~~~~~~~~~~ include/linux/dma-mapping.h:141:54: note: expanded from macro 'DMA_BIT_MASK' #define DMA_BIT_MASK(n) (((n) == 64) ? ~0ULL : ((1ULL<<(n))-1)) The ones in orion shouldn't really be 64 bit masks, so changing them to what the driver can support avoids the warning. Signed-off-by: Arnd Bergmann Signed-off-by: Olof Johansson Signed-off-by: Sasha Levin (Microsoft) --- arch/arm/plat-orion/common.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/plat-orion/common.c b/arch/arm/plat-orion/common.c index a2399fd66e97..1e970873439c 100644 --- a/arch/arm/plat-orion/common.c +++ b/arch/arm/plat-orion/common.c @@ -622,7 +622,7 @@ static struct platform_device orion_xor0_shared = { .resource = orion_xor0_shared_resources, .dev = { .dma_mask = &orion_xor_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = &orion_xor0_pdata, }, }; @@ -683,7 +683,7 @@ static struct platform_device orion_xor1_shared = { .resource = orion_xor1_shared_resources, .dev = { .dma_mask = &orion_xor_dmamask, - .coherent_dma_mask = DMA_BIT_MASK(64), + .coherent_dma_mask = DMA_BIT_MASK(32), .platform_data = &orion_xor1_pdata, }, }; -- 2.20.1