From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1947331AbdDYMNk (ORCPT ); Tue, 25 Apr 2017 08:13:40 -0400 Received: from foss.arm.com ([217.140.101.70]:40292 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1947293AbdDYMNa (ORCPT ); Tue, 25 Apr 2017 08:13:30 -0400 Date: Tue, 25 Apr 2017 13:13:28 +0100 From: Will Deacon To: Matthias Kaehlcke Cc: Ard Biesheuvel , Catalin Marinas , Christoffer Dall , Marc Zyngier , Paolo Bonzini , Radim =?utf-8?B?S3LEjW3DocWZ?= , Tejun Heo , Christoph Lameter , Vladimir Murzin , Mark Rutland , "linux-arm-kernel@lists.infradead.org" , "kvmarm@lists.cs.columbia.edu" , KVM devel mailing list , "linux-kernel@vger.kernel.org" , Grant Grundler , Greg Hackmann , Michael Davidson Subject: Re: [PATCH] arm64: Add ASM modifier for xN register operands Message-ID: <20170425121328.GH24484@arm.com> References: <20170420183053.718-1-mka@chromium.org> <20170424170009.GT12323@arm.com> <20170424173413.GW12323@arm.com> <20170424191345.GM128305@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20170424191345.GM128305@google.com> User-Agent: Mutt/1.5.23 (2014-03-12) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Apr 24, 2017 at 12:13:45PM -0700, Matthias Kaehlcke wrote: > El Mon, Apr 24, 2017 at 06:34:14PM +0100 Will Deacon ha dit: > > On Mon, Apr 24, 2017 at 06:22:51PM +0100, Ard Biesheuvel wrote: > > > AIUI, Clang now always complains for missing register width modifiers, > > > not just for placeholders that resolve to a 32-bit (or smaller) > > > quantity. > > > > Ok, in which case this patch is incomplete as there's a bunch of asm that > > isn't updated (e.g. spinlock.h). > > Sorry, my grep pattern was a bit naive and didn't take multiline > inline assembly into account. Ah, right, so you were trying to fix everything but just missed stuff. Maybe it's best to grep for 'asm.*(' and filter out the false positives. > If you are ok with adding modifiers everywhere I'll add the missing > bits, otherwise I'll rework the patch to only change the instances > where clang emits the warning. Fixing the issue everywhere is probably best. You might also need to look under drivers/. Will