Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp969855imm; Wed, 4 Jul 2018 09:04:14 -0700 (PDT) X-Google-Smtp-Source: AAOMgpfBNN3aYx6O6YXhr3HWtBlC5R2HH/stwaujoDDHZxVdfhfC5NNl9hxJ6wW+/+fgj+XIwDSV X-Received: by 2002:a63:3509:: with SMTP id c9-v6mr2414629pga.237.1530720253993; Wed, 04 Jul 2018 09:04:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530720253; cv=none; d=google.com; s=arc-20160816; b=WsqhG8iVUI86q9P/cSOD880+yspIJ+Uz7fy2Vwy9zP6T7ywENxw0O1s5DljE5hdgyg Jb5nLAOW4dgvSpTNKE0+JcuZQF8gRHdyFiNtLrj7GUCFwoZ9tQLdR34BlzqabdgvsI+T VxEToFAUicIVbgJc6gYPmz4W4E4ZpVfSz+9ntr9SJ34iRrl3iMWfUueFuUpaougcyc5A 9A/SqjvIGyBj4d34ihBt+IgUGkt6FJwyEPG37KN5r7QxuPKag2new7Rbln7qgoynIVAF IEAWsbJoplQfDa+8wNfNfj0vqgh2kn1heNgSjUzRzhJ0ZyKWdqGlPJ1s/usqNCncSgZ+ uXrw== 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:arc-authentication-results; bh=psn6EGaI91aasUF6Az/2L7BkDC2NEUFvjSseDfRytZk=; b=qDDoXx9YrgoEuzYlcmBrB6tVQdGUOd0IMvqRBZ9NGFy5VBnjcSKJEV/36nA1xcw9ap 2bv/W9NQ/obhfbb55hSQu75QTg1QYL7mujl7WsGvT66++Lwx94N4qp+I4QHIUG8x5KjW M1Ipux+0Zo00wjytUwRc8BGl4IYCpSZ3u4lzWqMftSPdZyWN7hgM7ZQ/Z7/9MxPPP5z/ qlbEix54gJAnGPoxf6weKa0iPCcQD/j0XklV+RRFupUhTCB3QrhTs6rkmyyJ7yIBJtUi N3/SJ1y3njM6E230thJmZzBPLCj/oHdSl3SBdylPZXh3ProwjVEhIw2b6r5oIrHUOf6s qKpg== 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 k1-v6si3794644pld.40.2018.07.04.09.03.59; Wed, 04 Jul 2018 09:04:13 -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 S1752882AbeGDQBu (ORCPT + 99 others); Wed, 4 Jul 2018 12:01:50 -0400 Received: from usa-sjc-mx-foss1.foss.arm.com ([217.140.101.70]:39974 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752260AbeGDQBt (ORCPT ); Wed, 4 Jul 2018 12:01:49 -0400 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 85EEF7A9; Wed, 4 Jul 2018 09:01:49 -0700 (PDT) Received: from lakrids.cambridge.arm.com (usa-sjc-imap-foss1.foss.arm.com [10.72.51.249]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 9C76C3F5AD; Wed, 4 Jul 2018 09:01:48 -0700 (PDT) Date: Wed, 4 Jul 2018 17:01:46 +0100 From: Mark Rutland To: Will Deacon Cc: linux-kernel@vger.kernel.org, peterz@infradead.org, boqun.feng@gmail.com Subject: Re: [PATCHv2 08/11] atomics: switch to generated fallbacks Message-ID: <20180704160145.kyzzymyufv3kt52l@lakrids.cambridge.arm.com> References: <20180625105952.3756-1-mark.rutland@arm.com> <20180625105952.3756-9-mark.rutland@arm.com> <20180704152846.GL4828@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180704152846.GL4828@arm.com> 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 Wed, Jul 04, 2018 at 04:28:47PM +0100, Will Deacon wrote: > On Mon, Jun 25, 2018 at 11:59:49AM +0100, Mark Rutland wrote: > > As a step to ensuring the atomic* APIs are consistent, switch to fallbacks > > generated by gen-atomic-fallback.sh. > > > > These are checked in rather than generated with Kbuild, since: > > > > * This allows inspection of the atomics with git grep and ctags on a > > pristine tree, which Linus strongly prefers being able to do. > > > > * The fallbacks are not expected to change very often, and are not > > affected by machine details or configuration options, so regenerating > > them for *every* build is somewhat wasteful. > > > > * These are included by files required *very* early in the build process > > (e.g. for generating bounds.h), and we'd rather not complicate the > > top-level Kbuild file. > > Would it be worth checking that the generated output from the script doesn't > differ from the file in tree at some point during the build, and issuing a > warning if they do? We could do that in the top-level Kbuild file. It would be less hideous than the generation was, since we don't have to add dependencies to all other targets. I can take a look, if you'd like? Thanks, Mark.