Received: by 2002:ac0:a581:0:0:0:0:0 with SMTP id m1-v6csp7798304imm; Thu, 28 Jun 2018 09:25:23 -0700 (PDT) X-Google-Smtp-Source: ADUXVKK6iAxf4ZXXQspWIts/v8dQPHMuMHioRl1EZwbPv+48nKUWHduWBdol4YiUMHYoZ3PfMFI+ X-Received: by 2002:a17:902:981:: with SMTP id 1-v6mr11233945pln.11.1530203123005; Thu, 28 Jun 2018 09:25:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1530203122; cv=none; d=google.com; s=arc-20160816; b=DBrLBOOYo0Aw/wRukl1DBU2Ee9wvtPbz24m6gcr1bXnVwn+b6ygjM61JOuTtX5ucPy p3Il+tugeo475NsdqhHBG0q0KzkZvFAEptSgAwVbEpyNpbWa4rgAoTBrU6TRhQoGCCK1 PAyGmc+8/mbaXo/q9pNr4WbGp95FmnmteAVXaIuyZpKdJRKjQhooWBcUdgKyDvJdyIAo e+v/AzBSnBIG+6HYEqXsU8dBRm7FMBp5dQzRxUs9M22z47MzTiDfcL3WRr5mMpsoxl4x mfGGnDpNfOkE+XmPWpUzJMxkQ2THtR2Sp0JJtlKN9OMCIvaLzQbenKQXg3BT6M/zGY/6 4tcw== 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:to :from:date:arc-authentication-results; bh=gCBwtCQLZiVPfVah2tzzUtIZSYwGILaLwnZDBjxfcUE=; b=XJG2tAnjJzFy0sLHl4SaOGT+PxQrAo60ljunFk24JNtFieivnRBg+tvWbSmyQKIi7Z fD2juRFxO/x/gCKysglQJtvXdlxFaBMU9BxuijlM1Un4Q7EfMhNilOUHf+IpmQrF9lZL sw+MPmiM7nrzXt1EkSPEr+bxYW6b6zJetTDzraNK+RnIWuutg3NVhRyCT1yXrhJhybzG R1EdL087vYIhr4A5f4eS44euB78ek2P8giYFHvpPnZxCyV71fJAL5ZI3Nw8EanWxb5ba lgM1pp10/W14a9e25L2nWPqL9FwgsjlQtJ3UduQm8g8APAL84zbquOUXX9h6CIJ53d6I d2Kg== 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 d22-v6si5475190pfd.182.2018.06.28.09.25.08; Thu, 28 Jun 2018 09:25:22 -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 S965397AbeF1K6g (ORCPT + 99 others); Thu, 28 Jun 2018 06:58:36 -0400 Received: from foss.arm.com ([217.140.101.70]:45156 "EHLO foss.arm.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964908AbeF1K6f (ORCPT ); Thu, 28 Jun 2018 06:58:35 -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 B17F280D; Thu, 28 Jun 2018 03:58:35 -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 C42743F266; Thu, 28 Jun 2018 03:58:34 -0700 (PDT) Date: Thu, 28 Jun 2018 11:58:29 +0100 From: Mark Rutland To: linux-kernel@vger.kernel.org, will.deacon@arm.com, peterz@infradead.org, boqun.feng@gmail.com Subject: Re: [PATCHv2 07/11] atomics: add common header generation files Message-ID: <20180628105829.ywuywj2f6yuqstj2@lakrids.cambridge.arm.com> References: <20180625105952.3756-1-mark.rutland@arm.com> <20180625105952.3756-8-mark.rutland@arm.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20180625105952.3756-8-mark.rutland@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 Mon, Jun 25, 2018 at 11:59:48AM +0100, Mark Rutland wrote: > diff --git a/scripts/atomic/gen-atomic-long.sh b/scripts/atomic/gen-atomic-long.sh > +cat << EOF > +// SPDX-License-Identifier: GPL-2.0 > + > +// Generated by $0 > +// DO NOT MODIFY THIS FILE DIRECTLY > + > +#ifndef _ASM_GENERIC_ATOMIC_LONG_H > +#define _ASM_GENERIC_ATOMIC_LONG_H > + > +#include > + > +#ifdef CONFIG_64BIT > +typedef atomic64_t atomic_long_t; > +#define ATOMIC_LONG_INIT(i) ATOMIC64_INIT(i) > +#define atomic_long_cond_read_acquire atomic64_cond_read_acquire > +#else > +typedef atomic_t atomic_long_t; > +#define ATOMIC_LONG_INIT(i) ATOMIC_INIT(i) > +#define atomic_long_cond_read_acquire atomic_cond_read_acquire > +#endif I forgot to add atomic_long_cond_read_relaxed() here, so I've added that locally. i.e. I now have: #ifdef CONFIG_64BIT typedef atomic64_t atomic_long_t; #define ATOMIC_LONG_INIT(i) ATOMIC64_INIT(i) #define atomic_long_cond_read_acquire atomic64_cond_read_acquire #define atomic_long_cond_read_relaxed atomic64_cond_read_relaxed #else typedef atomic_t atomic_long_t; #define ATOMIC_LONG_INIT(i) ATOMIC_INIT(i) #define atomic_long_cond_read_acquire atomic_cond_read_acquire #define atomic_long_cond_read_relaxed atomic_cond_read_relaxed #endif ... with regenerated appropriately. Peter, I assume that your ack holds with that change. Thanks, Mark.