Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp2321120yba; Sun, 7 Apr 2019 15:23:12 -0700 (PDT) X-Google-Smtp-Source: APXvYqzkm6dFlfMgKiGTB2bZcD0jkVv9Zn/xdCQow8yrDgwU1bgy+oso1x/WpyP+Hk6QcjBEKQAm X-Received: by 2002:a62:be13:: with SMTP id l19mr25957713pff.137.1554675792673; Sun, 07 Apr 2019 15:23:12 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554675792; cv=none; d=google.com; s=arc-20160816; b=EQajZi1FtN+6ZCOiOaDdDIpltvln+YkeFRC1Y4qcmZEqzC1VTKjflLyGmVDHujedrz BBLnXxEwE+wQgUMKoaOxm/MRHu8aYLgjOUCA3osQtL4I1joEyQmS75oU+RjGdIn9HzdI 9TQonIFdBKFX0Em6pHBcF5cG++r4Jc595dX2Viu0DAy/jCUUtEoujSGnfVWb3Vy66IKK DiZg4UzcsIeMggkka4r1SW8mNCSXVtfkN3BhCVSR2rlDdY+ibSuC4Xjp08Qe2PZDwQED /pvpEVW1a6Uz31CbUl0g5Ruc1dhZuhoT6eDn8wDNjj1c8HHChy2w8rwaSsgwWo2sv+lt nlNQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=onYIOM34G9coWioEeYsBH/DmUFxEfLZhAZui1Bc6idA=; b=F++OYscir9D2hkkE/jMKo014w2k95CIcZKD3gN9Nb9YwZaLlCfiRZhc8qOHCcnYz6a fhbc1MyH8IGRZZXnXDixmvdPRE/aJML/oCxIhp9F+S0iukSMGnoyyFGEQNFM2RWeUpu4 2ln4K4jwRrFneR0gmcVH2jspVw4+bHoue7WfNsGSLI2CKgZSwzQvx7/uRA++F/XqMBuv +54XU20UEG4yuuqlaJxQUemb3KCzUcI8vI3R9odcVCjSoafKAjWi9H3KkjGm8X33aIRb N9Bq1LmAFtFS0CoWNgYB0Z2ur2wcmGd/SAkd34I6zu1SpPvGtHOcJbdhVxU1W6xwNR7u O1Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=TohQLwLW; 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 n3si26353142plb.58.2019.04.07.15.22.56; Sun, 07 Apr 2019 15:23:12 -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=@lixom-net.20150623.gappssmtp.com header.s=20150623 header.b=TohQLwLW; 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 S1726568AbfDGWU5 (ORCPT + 99 others); Sun, 7 Apr 2019 18:20:57 -0400 Received: from mail-lf1-f66.google.com ([209.85.167.66]:44762 "EHLO mail-lf1-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726437AbfDGWU4 (ORCPT ); Sun, 7 Apr 2019 18:20:56 -0400 Received: by mail-lf1-f66.google.com with SMTP id v71so7977498lfa.11 for ; Sun, 07 Apr 2019 15:20:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=lixom-net.20150623.gappssmtp.com; s=20150623; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=onYIOM34G9coWioEeYsBH/DmUFxEfLZhAZui1Bc6idA=; b=TohQLwLWZs1z5PSx9NzLmPmJNW7CApYD6ZFG45UWCCpmzJtV3CH+XAb5REiQBAU7T+ G7UAy8JPNp/+tOuKdGP45wP5+Ekw8oxNaJjzGEo+uglRacRSzX+31g69FoOHvqTO4DXS UG9goOoTsMfM0uXezTeVP8DIKlUd2lDbnEljQtpJK4IFi4UD3hFODDBblW4kHDRnFQR2 QFkskQ+QOKJ/pw/VwS7+fiwksZNEQuclRVQolNVwLe7V6N6C8neecZX31inueTBahRku +HGw/C17LdrxRxF3t5xbGYrByAAgiz8TNpaGDjGupkvP2Jzh6z8gmqq2ka9Ifk9d/iUj kH+Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=onYIOM34G9coWioEeYsBH/DmUFxEfLZhAZui1Bc6idA=; b=YU2HlEpVvUCEuEQK0g6CV9Snu1aNyvkprdFN4ZY7FpG5WWvyXX8c3mzyz66pSZPcjx ScsocNGZjYD509yOXbfzqWAHChlq+cD4Ppt+Ij/SPYq7QXNg7tJneONtvCjdFYKyCXif 1zTMVOg4YUxNEQlY4In3pV17BFHh5L3HikRNxqt5+eZ+NAwxvKdS5kpPJ2yQJUEf25x3 tIvUf9ddThGm7tbHeuj4CEVg3NGrIWSne2wuUdXf3thvk0MBd56T3CV0Y6j3h/2SLRY7 SvxQEIbeOcblXFCFQJwZPlEEIRZtyeHRevbq8AJ9WVtzqIONBWrUMBzAPpaOgcdbkNHW fZGA== X-Gm-Message-State: APjAAAVDyLlepn+boxVUCd3wI94RteLLLbumHp6ZCJcGLKZbzK+JVfNT QZ1d41DPkOhCQNmgiTtEuimSVQ== X-Received: by 2002:ac2:554a:: with SMTP id l10mr7871324lfk.49.1554675654708; Sun, 07 Apr 2019 15:20:54 -0700 (PDT) Received: from localhost (h85-30-9-151.cust.a3fiber.se. [85.30.9.151]) by smtp.gmail.com with ESMTPSA id v4sm3011946ljh.40.2019.04.07.15.20.53 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Sun, 07 Apr 2019 15:20:53 -0700 (PDT) Date: Sun, 7 Apr 2019 15:20:00 -0700 From: Olof Johansson To: Arnd Bergmann Cc: Jason Cooper , Andrew Lunn , Sebastian Hesselbarth , Gregory Clement , clang-built-linux@googlegroups.com, Nick Desaulniers , Nathan Chancellor , arm@kernel.org, Russell King , linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/2] ARM: orion: don't use using 64-bit DMA masks Message-ID: <20190407222000.pljbqastxrnwfjmp@localhost> References: <20190325155101.3544731-1-arnd@arndb.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20190325155101.3544731-1-arnd@arndb.de> User-Agent: NeoMutt/20170113 (1.7.2) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Mar 25, 2019 at 04:50:42PM +0100, Arnd Bergmann wrote: > 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 Applied to fixes. -Olof