Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp741385ybl; Fri, 16 Aug 2019 03:18:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqwg1/J/9toHS2m3jBZu0AGyqHs058yNLKFDpglLnzMYFOJQ+ECnlhXUtVmZdr+hKWvXEGjv X-Received: by 2002:a62:7912:: with SMTP id u18mr10528194pfc.254.1565950680204; Fri, 16 Aug 2019 03:18:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1565950680; cv=none; d=google.com; s=arc-20160816; b=gR4RCAa82kT9EgsM1VWtT4g51OrsiR2Sba0uMDMJGotE94nk737EDdhA9iCJ6K6Tr8 aCu1ICTbMxasd5VHej2v6I1LwYufXLiV2LOPAla3xx8jXhOSBMFyn+u9mvK+pxfRKfFa trWMJ9NMff0RQZCvBLRufLUC04kgXqsVQT8LWOZOaKI3ywjcLLb2JMsqiIHNFn4d324B 4sOtBw8PKL2nTlGeoGKvlpIMrKCZsojKk/9Jh4/w+AO0+ZQKdeZZDxhtGOzi66e8cyAH OsXHouKihmnZKfLesLRlxvoIxRmmORnn2G47hedgBAG4aeoICrD4vD7nrewvsFRVOmRA dNhg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :message-id:in-reply-to:subject:cc:to:from:date; bh=rSp+8HO9Q7IDqSLmEd01dam490UUb6Z1H1KrSU9HTew=; b=P3PisuFgd3x6HgkRkarZ4poKj5hwxrV0ymtuTDXqiPuxquFPTryquduE5XJvdDNWmi S52vSYKeKbAH2mBIkKD1kGiP8E7zrXDqDxAtdDdMsQxSoNhMOCfd/a3Km72x9lzaXDBK 4yrRAYVtvO3f5yj7KfMJIWB3XEK1AV/ljwYnQYd5ZhoZ3NVr2SWBv8Wa4k5DEqpKVRkX gaewxMErzdNej225C2UuJoBWoxe8UTX+3R3VGqwe5UOtAxzalQjBL8DwXZweCqORdF3X NT3sAuZellzPaCsYdzDCk57SMKSnDtMg/HOcsIy6wXolg2JmX3qihHT/THrYmQakD2y4 XvzA== 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 c33si3492249pgl.300.2019.08.16.03.17.42; Fri, 16 Aug 2019 03:18:00 -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 S1726897AbfHPKQj (ORCPT + 99 others); Fri, 16 Aug 2019 06:16:39 -0400 Received: from Galois.linutronix.de ([193.142.43.55]:41944 "EHLO Galois.linutronix.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726565AbfHPKQj (ORCPT ); Fri, 16 Aug 2019 06:16:39 -0400 Received: from [5.158.153.52] (helo=nanos.tec.linutronix.de) by Galois.linutronix.de with esmtpsa (TLS1.2:DHE_RSA_AES_256_CBC_SHA256:256) (Exim 4.80) (envelope-from ) id 1hyZHd-0007Xv-5c; Fri, 16 Aug 2019 12:16:33 +0200 Date: Fri, 16 Aug 2019 12:16:32 +0200 (CEST) From: Thomas Gleixner To: Anders Roxell cc: peterz@infradead.org, mingo@redhat.com, will@kernel.org, linux-kernel@vger.kernel.org, Will Deacon Subject: Re: [PATCH v3] seqlock: mark raw_read_seqcount and read_seqcount_retry as __always_inline In-Reply-To: <20190726111804.18290-1-anders.roxell@linaro.org> Message-ID: References: <20190726111804.18290-1-anders.roxell@linaro.org> User-Agent: Alpine 2.21 (DEB 202 2017-01-01) MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, 26 Jul 2019, Anders Roxell wrote: > > -static inline void __seqcount_init(seqcount_t *s, const char *name, > +static __always_inline void __seqcount_init(seqcount_t *s, const char *name, > struct lock_class_key *key) That has nothing to do with the actual problem > -static inline void raw_write_seqcount_begin(seqcount_t *s) > +static __always_inline void raw_write_seqcount_begin(seqcount_t *s) Neither this, nor these: > -static inline void raw_write_seqcount_end(seqcount_t *s) > +static __always_inline void raw_write_seqcount_end(seqcount_t *s) > { > -static inline void raw_write_seqcount_barrier(seqcount_t *s) > +static __always_inline void raw_write_seqcount_barrier(seqcount_t *s) The following is fine as it is used in the NMI safe time accessors which can be used as trace clock: > -static inline int raw_read_seqcount_latch(seqcount_t *s) > +static __always_inline int raw_read_seqcount_latch(seqcount_t *s) The rest is bogus... s/inline/__always_inline/g is conveniant, but does neither match the changelog nor does it make sense. Thanks, tglx