Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2683000imu; Thu, 29 Nov 2018 08:39:48 -0800 (PST) X-Google-Smtp-Source: AFSGD/Xw1LidO7PnBYXEO4lhu9eh1u05f9iatdpW2dxz9t27TVMmNFs4JlXMykH+Tql5fgp99ViE X-Received: by 2002:a62:6385:: with SMTP id x127mr2086178pfb.15.1543509588841; Thu, 29 Nov 2018 08:39:48 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1543509588; cv=none; d=google.com; s=arc-20160816; b=SVIVmRWfi6izBPqsw3aMa/rlRDsCedn7k913770hCgRDfaBBW5P1kH3Y2UR0Hne0KQ dpKx/TyfY6FtrgMt0UYRGH1ElNTn/hmPmqKIy4CV5+ui8qN7SaIvYU0+r31cL+ETpqN3 yheUsalTczESQOwnKTsg01TU/mG7lBVUP99CdPJRuzfPDvS85aScDxgutivsGLgMLKu7 Tp6bTW2AiQZPaaY62OxA7YdXf/b9HwW4KdhNwnKzFlT2WAfyaAbOn0ne6qogIyVDKRy6 GmuzBXVnpr2JaeabKXPWSe5/hXEv9HqdhbuTNk4dJv7WOOiISEc1MolEfP92FbVF0XBR P36g== 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; bh=E7nc9OyWBkfMxz9Z+p+VGlQ00cfYfI8sdz/bk8hWDwQ=; b=dRldC83kX9zRNPMtuWjc/qUETROYJSLUt8q2hghf0ASvpjEF52lHi6fViZM77UDT6+ iWbf9NmS4ysYuu07v5J0dfxucktfichO6rbF6badS43+vGTYOerSgCwR3GYQ4cJGJmxt C5lYDOnRzyFyGN44m5+YoiIPmLRFuG7FS3E+ed1cEr97I+g9jOs6cQ2Z4QjIR/c9zRTH 7Ace+IUkKqRn3zlr5BT//SCpGblFiNc22FOvmSsehreJafPX3SQnIroYm+rsjHkZ3+De xmlIr+QBJllx8hxQgttVCntONaS/hipyhNod9tvnteBW8ytpj1vPtgi8t3zMhZrncGw+ ya3g== 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 bc3-v6si2570197plb.52.2018.11.29.08.39.20; Thu, 29 Nov 2018 08:39:48 -0800 (PST) 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 S1729391AbeK3Dmz (ORCPT + 99 others); Thu, 29 Nov 2018 22:42:55 -0500 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:38822 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728136AbeK3Dmz (ORCPT ); Thu, 29 Nov 2018 22:42:55 -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 A47F1A78; Thu, 29 Nov 2018 08:36:58 -0800 (PST) Received: from edgewater-inn.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPA id 734CD3F59C; Thu, 29 Nov 2018 08:36:58 -0800 (PST) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id D6B831AE0FD4; Thu, 29 Nov 2018 16:37:16 +0000 (GMT) Date: Thu, 29 Nov 2018 16:37:16 +0000 From: Will Deacon To: Nathan Chancellor Cc: Julien Thierry , Nick Desaulniers , Catalin Marinas , Jens Axboe , "linux-arm-kernel@lists.infradead.org" , "linux-kernel@vger.kernel.org" Subject: Re: [PATCH] arm64: io: specify asm operand width for __iormb() Message-ID: <20181129163716.GA21475@arm.com> References: <20181129041912.5918-1-nick.desaulniers@gmail.com> <20181129104902.GA2377@arm.com> <20181129161039.GA17063@flashbox> <20181129161337.GA21349@arm.com> <20181129161738.GA9805@flashbox> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20181129161738.GA9805@flashbox> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Nov 29, 2018 at 09:17:38AM -0700, Nathan Chancellor wrote: > On Thu, Nov 29, 2018 at 04:13:37PM +0000, Will Deacon wrote: > > On Thu, Nov 29, 2018 at 09:10:39AM -0700, Nathan Chancellor wrote: > > > This doesn't appear to work, I get this error: > > > > > > In file included from arch/arm64/kernel/asm-offsets.c:24: > > > In file included from ./include/linux/dma-mapping.h:11: > > > In file included from ./include/linux/scatterlist.h:9: > > > In file included from ./arch/arm64/include/asm/io.h:209: > > > ./include/asm-generic/io.h:695:9: error: expected expression > > > return readb(addr); > > > ^ > > > ./arch/arm64/include/asm/io.h:147:50: note: expanded from macro 'readb' > > > #define readb(c) ({ u8 __v = readb_relaxed(c); __iormb(__v); __v; }) > > > ^ > > > ./arch/arm64/include/asm/io.h:120:28: note: expanded from macro '__iormb' > > > : "=r" (tmp) : "r" (unsigned long)(v) : "memory"); \ > > > ^ > > > > Can you try throwing another set of brackets around it, please? > > > > ((unsigned long)(v)) > > > Thanks, that fixes the warning as well. Great, I'll push this out tomorrow with your reported-by on it. Will