Received: by 2002:ac0:bc90:0:0:0:0:0 with SMTP id a16csp3366199img; Mon, 25 Mar 2019 08:52:18 -0700 (PDT) X-Google-Smtp-Source: APXvYqzEeveICgYkDFCiX8pwmgd4GDM5u10i1N1HxICCi2DwZpSpjRA4LVrq6K5hOREk3IhMwEzi X-Received: by 2002:a63:fd06:: with SMTP id d6mr1865450pgh.183.1553529138208; Mon, 25 Mar 2019 08:52:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1553529138; cv=none; d=google.com; s=arc-20160816; b=R/EMMlpEKgAmzcT8DJptKjNa/tj0HxNnpawW3nUGS+4kC05UwD1HQ88pkXFfIxWxRu JislLprVdj15ZrsaCRJt1lWvV31SZObFf70Ty2YLSENS5RXQezE6pO5tEt3Lm7/hsh59 Pg4eXQ6G+jI+0y/IsGrehJY/JTOrl7Fcls/y9jpCv1cK1kjT9sETfsMj0SfCPOxIO13h lH8eddDVGA0anFgWwGtihJQ7TRqreLxFrY3xcdnd5mjtXtDTkDHDRFORQo+qxvcUi6tI UkbF5uiWPbou0tl6mvhsMUCi+nvktRsMrlUHI9kH2HA4682R/18ZMWTjres/CaQoWr4S AO1Q== 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=pvvKEYNJUQ0vOkwzkTTy5/JMDWoy4lRbPw7eOztV05E=; b=UrqpzAAaAaHGuHDAs6jqxBb1nSnwDwYZQJci3w9X4NYZuDkwizYjF84GJAZTPZsrMF CIEg2DiMXVKjZQwfClCI/6Z+tMRv2Xq2ZAA3Nu5n1bqPj/Kb8SxZ0jNXmEbGDTP2EgtN bRjA5UglqC4Wj+397U/ewwjtp3wc12EivLebe12T6D1/NhF7RzcEVQQLUoWXqejx9wlz dRqDhuoz3AoxADICN1B+1JUCLCsOQy4bUiVnsQPM3qt7pN7V2MD8YwAy156vaLq+fm6P cYzLf4TxL6J0Mvv3dpletQddXRaqtrBJ4hCc5fDWq9TMrDKlaJOHbjNIJhe0DtSXIuhU JvOw== ARC-Authentication-Results: i=1; mx.google.com; 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 n8si14295277plk.316.2019.03.25.08.52.02; Mon, 25 Mar 2019 08:52:18 -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; 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 S1729514AbfCYPvY (ORCPT + 99 others); Mon, 25 Mar 2019 11:51:24 -0400 Received: from mout.kundenserver.de ([212.227.17.10]:43903 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729106AbfCYPvX (ORCPT ); Mon, 25 Mar 2019 11:51:23 -0400 Received: from wuerfel.lan ([149.172.19.189]) by mrelayeu.kundenserver.de (mreue108 [212.227.15.145]) with ESMTPA (Nemesis) id 1MfHMj-1gTJdc1nn1-00glfR; Mon, 25 Mar 2019 16:51:03 +0100 From: Arnd Bergmann To: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement Cc: clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , arm@kernel.org, Arnd Bergmann , Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] ARM: orion: don't use using 64-bit DMA masks Date: Mon, 25 Mar 2019 16:50:42 +0100 Message-Id: <20190325155101.3544731-1-arnd@arndb.de> X-Mailer: git-send-email 2.20.0 MIME-Version: 1.0 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Fhv39qM2YJv9BMJAKLAD7OOoYg== Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- 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 a6c81ce00f52..8647cb80a93b 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.0