Received: by 2002:a05:6a10:206:0:0:0:0 with SMTP id 6csp297316pxj; Fri, 14 May 2021 03:49:43 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwsnfd1UfHXG2CyYMO9FCRgDPYHDECVi95Wt+FMgGbQqAPjYqpcjZdo+umc0uCiypTrPLm8 X-Received: by 2002:a17:907:94c3:: with SMTP id dn3mr3129640ejc.26.1620989383122; Fri, 14 May 2021 03:49:43 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1620989383; cv=none; d=google.com; s=arc-20160816; b=dOCp/Gg6EPtXcKAKinSP/JD/OFcQeHSVDS9+7yV8smabUm8pT+1OHfhx8Rk6EwJJwn ZN/UjSTszPxQRBKGHQfwZ+4tooLd5BYWwdlkoujtkqcjZupdNB/FVMmn72OJpNMBu1+R BlDRLu/b4oxTj0/58Ock9v1pHFpxEJwox5nEl3x/rJsOx9y25iEdh3tF8HWMEaxX+fXd 6kroDYjlZIdHE7OnCO/meDL1kyIsZfigDvSLC8C54hCaRUqCwTVKJPvD1HAzJVfV9IK+ 7TFkBpikcZgIWpqjJ+aTy+9GW8yN6fMWC6/pTN3P0P2ORQKF5nKRmaCqdc1zTJhMihvW xbcA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date; bh=eZnyIpm/xMZkB8ZH4e6aGkai5oz6sRnVW7D0eOnb79M=; b=NrnL37vYpjmQkZqFlRqUpzXwB4i52tcKCJ4yudif2UY/I8Og5K5x4TpGCTiT2BBNVJ jEP9cyRPa16BprsccSYaXBQdLChuvrC/RxcuDw50T9EGX+J5kvJMH/VGswN/m9AJQ4pv qUmwS/27FGv9IxE4/P+y5FU5L/RzmwMP9B53QU0SuFCfI+G7xfioJYi16GbNwQq0wW4m pY8EMB5zHzLdv9hqL7F6Tyn6LS9u0m46qpyEt8C5MTZN2mPW8MbsBME0QxEoSvRNzkZ6 1c2ctUTVcxVtb45ToMYmgy03CtqlLTrPXdYO8M3OrrcnqMcHIUYsUNIiwPUHmFa6xlsM WQ8g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id l3si6749242ejd.313.2021.05.14.03.49.20; Fri, 14 May 2021 03:49:43 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233026AbhENKTK (ORCPT + 99 others); Fri, 14 May 2021 06:19:10 -0400 Received: from foss.arm.com ([217.140.110.172]:46566 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S232983AbhENKTJ (ORCPT ); Fri, 14 May 2021 06:19:09 -0400 Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id D2BA5169E; Fri, 14 May 2021 03:17:57 -0700 (PDT) Received: from C02TD0UTHF1T.local (unknown [10.57.0.219]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id 89D813F719; Fri, 14 May 2021 03:17:50 -0700 (PDT) Date: Fri, 14 May 2021 11:17:41 +0100 From: Mark Rutland To: Stafford Horne Cc: linux-kernel@vger.kernel.org, will@kernel.org, boqun.feng@gmail.com, peterz@infradead.org, aou@eecs.berkeley.edu, arnd@arndb.de, bcain@codeaurora.org, benh@kernel.crashing.org, chris@zankel.net, dalias@libc.org, davem@davemloft.net, deanbo422@gmail.com, deller@gmx.de, geert@linux-m68k.org, green.hu@gmail.com, guoren@kernel.org, ink@jurassic.park.msu.ru, James.Bottomley@hansenpartnership.com, jcmvbkbc@gmail.com, jonas@southpole.se, ley.foon.tan@intel.com, linux@armlinux.org.uk, mattst88@gmail.com, monstr@monstr.eu, mpe@ellerman.id.au, nickhu@andestech.com, palmer@dabbelt.com, paulus@samba.org, paul.walmsley@sifive.com, rth@twiddle.net, stefan.kristiansson@saunalahti.fi, tsbogend@alpha.franken.de, vgupta@synopsys.com, ysato@users.sourceforge.jp Subject: Re: [PATCH 05/33] locking/atomic: openrisc: avoid asm-generic/atomic.h Message-ID: <20210514101741.GA30645@C02TD0UTHF1T.local> References: <20210510093753.40683-1-mark.rutland@arm.com> <20210510093753.40683-6-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, May 14, 2021 at 06:44:25AM +0900, Stafford Horne wrote: > On Mon, May 10, 2021 at 10:37:25AM +0100, Mark Rutland wrote: > > OpenRISC is the only architecture which uses asm-generic/atomic.h and > > also provides its own implementation of some functions, requiring > > ifdeferry in the asm-generic header. As OpenRISC provides the vast > > majority of functions itself, it would be simpler overall if it also > > provided the few functions it cribs from asm-generic. > > > > This patch decouples OpenRISC from asm-generic/atomic.h. Subsequent > > patches will simplify the asm-generic implementation. > > This is fine, but just a thought. If OpenRISC is the only architecture to do > this then after this patch could we remove the ifndefs from > asm-generic/atomic.h as additional cleanup? Yup! That's done in patch 8. :) I'll expand the wording in this commit message to explicitly mention that subsequent patches will remove the ifdeferry, rather than just simplfying the asm-generic implementation. [...] > Acked-by: Stafford Horne Thanks! Mark.