Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp1060774imm; Wed, 4 Jul 2018 10:45:08 -0700 (PDT) X-Google-Smtp-Source: AAOMgpf+qtoskvFV8BKzG8wIQFREYI2vQFkaiIzAimiUEViK/YifcXEF7h+7UIMwmFP1Q5hQtPh/ X-Received: by 2002:a17:902:722:: with SMTP id 31-v6mr3060881pli.3.1530726308025; Wed, 04 Jul 2018 10:45:08 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530726308; cv=none; d=google.com; s=arc-20160816; b=uVYjjELwDkP2/o+YLni6FIW+cMRFzWacKxvfPdIVoo2oAAGBFIu1+46EVqsUDn8JQJ NMHzQgL+KDojHnCRA8k+7zzcXSJgyZU0rdR3J5u6nFPKADq1k+a+uAXzhBseruj59/Zo 8SyjZsIswFoXyVuq7JEulZN1vvkejjY4vUS9yLZLyiFlj/ZwWYpX5H64fpiqUdfzbvUM 2Pu9nAP6N5xZd98Y2wpV7JrU+hJSW3O+76pTuAGegstm2EAoZ4P34KTtupAcmSoyavSV SLHBM4U7F7DSR+hDVPYXx2zfgjS5eTT+5JkMTvIlVgFGv1bKkoU0XDZg0w5o4wjG2SOo IZcQ== 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=5HCBzVWSQrohjwZW+/W9WHQPmLm1oMfHQhBTvPA9vdA=; b=Fvea/mvjq/E+dlzCbB+Bmiuubld/VXV3KVpQiDZD7dUjTva+fn7JpYcgoBZDcLqm0y u3IF38QmrXxYLQvlJxJhzJRf9zoECZD1EH/NxWgBPOjONwLsclB6Cg62W6+dATZEr1Ei ilWl2JBhOcLFISoMxOCDf7EElNULvZ/Hd2eeldb77Vj02xiT6VX0vTGZFKj44Xk9zqHs 72+V6Z5zYlU1vDQl4SDjTr1/li0Ji104KVxwKidfrIaImDHj/fh9nHFDx1sJgEk88NLG tWPHyqjH8VVpxxIT+HX2R+oqb8+ke2m8yShj8S6RH2mzbKBlgLeDkdRCeUhSt2PHbWXZ 5J2w== 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 d39-v6si4005801pla.41.2018.07.04.10.44.52; Wed, 04 Jul 2018 10:45:07 -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 S1752607AbeGDRoO (ORCPT + 99 others); Wed, 4 Jul 2018 13:44:14 -0400 Received: from foss.arm.com ([217.140.101.70]:41330 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752165AbeGDRoN (ORCPT ); Wed, 4 Jul 2018 13:44:13 -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 B23C27A9; Wed, 4 Jul 2018 10:44:12 -0700 (PDT) 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 80FBF3F5A0; Wed, 4 Jul 2018 10:44:12 -0700 (PDT) Received: by edgewater-inn.cambridge.arm.com (Postfix, from userid 1000) id 2862E1AE180C; Wed, 4 Jul 2018 18:44:52 +0100 (BST) Date: Wed, 4 Jul 2018 18:44:52 +0100 From: Will Deacon To: Mark Rutland 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: <20180704174451.GE9668@arm.com> References: <20180625105952.3756-1-mark.rutland@arm.com> <20180625105952.3756-9-mark.rutland@arm.com> <20180704152846.GL4828@arm.com> <20180704160145.kyzzymyufv3kt52l@lakrids.cambridge.arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180704160145.kyzzymyufv3kt52l@lakrids.cambridge.arm.com> 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 Wed, Jul 04, 2018 at 05:01:46PM +0100, Mark Rutland wrote: > 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? Yes, please. Might also be worth having your "THIS FILE IS GENERATED" disclaimer before each function, as I completely missed it when I opened the file since it just looks like part of the license and jumping around with ctags might dump you halfway down the file. Will