Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp1598366pxk; Fri, 2 Oct 2020 13:53:52 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyACJfF5g4e5oiclYoYVJq7DGNP1WRInM+2MOVgLduT1VVrg5tSvemh7qeQWhk6QPja1bdy X-Received: by 2002:a05:6402:1212:: with SMTP id c18mr4467972edw.344.1601672032265; Fri, 02 Oct 2020 13:53:52 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601672032; cv=none; d=google.com; s=arc-20160816; b=Y31ZEh2OEwb7ALySmmv6MitWlppLcm5om2r/XjhRmVUX0SjH06Jte/epbKWk1r9DUc s1byCWJwHWjAJI4H4PB8GmN125lip0cFfEdlb7Unch5cymLxv+zeXiP/mDiSxLPzieOr 6nALdVKBJcHlnn79f9LPI8HPJdPS9Bm3Oln8f9OJ/o1ugPOan6xpFvJyX4SYesTDZOzL jToFxOYSEG0QHE4kIXYqwP4g1GZ2ysmvVpcl9ANB3oK7F+uqrKdCyRylpeNIQS/Vn+eT l66YLuFEMpuOrJF5J/2dau2cdoA8m92F50Hm64WSKXhwPBcdgHQLSCOACSdurwOVP/yX bwTg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=aSgN9/cTN92BiYFcr3GjvPgZ1iddPU/tOxRIhlOw934=; b=H+C3c4Oz0pDmyzTFM03ERI/SLOm4bFytbvogI0NVoyrqCbh2a7Ej7wLYRFmi0RpfUB 3l0sPzVYS4Xj2+ben2zl3PxtfDRXjCDq1x6QH7N0VGgZxymy9D/W+bsc0gte0yI+rHjG e6oFAG0FWeC25/3mlsGoI+yFIwxr37qUYLY15nwOObSSzK9fVIFYJkTWT6pK8lZUvy1I nacBvmv6nSbslXFKGKAcnyHRrLm1JIvf9fqES0avwGbungjpuPlCWMVKUmdMPT1f72AC v0yH2Q3fHqda8KNvL4gTL/3Dp5gE92H7dWofeMapoEJ7HRui7fflBM1Kj3xUEm8NS09q i+9Q== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Cho9pbht; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id g2si368211edm.105.2020.10.02.13.53.30; Fri, 02 Oct 2020 13:53:52 -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; dkim=pass header.i=@kernel.org header.s=default header.b=Cho9pbht; 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=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1725767AbgJBUvc (ORCPT + 99 others); Fri, 2 Oct 2020 16:51:32 -0400 Received: from mail.kernel.org ([198.145.29.99]:35634 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725379AbgJBUvb (ORCPT ); Fri, 2 Oct 2020 16:51:31 -0400 Received: from paulmck-ThinkPad-P72.home (50-39-104-11.bvtn.or.frontiernet.net [50.39.104.11]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id D29082065D; Fri, 2 Oct 2020 20:51:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601671890; bh=3BKMr+EOEI1gnVhZpxDZb0tWF1pOUyldw2fQ6orExd8=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=Cho9pbhtSh3iOvZTPIo6lIPsMYh0N4MvaJJbHH459EnXOAv8j4bJFGFpLcR0vJfMu tmKFvpF4aWb+8kkDdsfP6H1m5QDFz5kmBQEpQHy06+z9icFSQfx423gInYldDlynV8 ASpFVdEyqvsov2ok2lT31K552WHo9W31pJ4Db6K0= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 9705335230A9; Fri, 2 Oct 2020 13:51:30 -0700 (PDT) Date: Fri, 2 Oct 2020 13:51:30 -0700 From: "Paul E. McKenney" To: Nick Desaulniers Cc: Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Josh Triplett , Kees Cook , LKML , rcu@vger.kernel.org, clang-built-linux Subject: Re: [PATCH v2] srcu: avoid escaped section names Message-ID: <20201002205130.GK29330@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200929192549.501516-1-ndesaulniers@google.com> <20200930204044.GZ29330@paulmck-ThinkPad-P72> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Sep 30, 2020 at 01:55:48PM -0700, Nick Desaulniers wrote: > On Wed, Sep 30, 2020 at 1:40 PM Paul E. McKenney wrote: > > > > On Tue, Sep 29, 2020 at 12:25:49PM -0700, Nick Desaulniers wrote: > > > The stringification operator, `#`, in the preprocessor escapes strings. > > > For example, `# "foo"` becomes `"\"foo\""`. GCC and Clang differ in how > > > they treat section names that contain \". > > > > > > The portable solution is to not use a string literal with the > > > preprocessor stringification operator. > > > > > > Link: https://bugs.llvm.org/show_bug.cgi?id=42950 > > > Fixes: commit fe15b50cdeee ("srcu: Allocate per-CPU data for DEFINE_SRCU() in modules") > > > Signed-off-by: Nick Desaulniers > > > > I am guessing that this needs to go up with other patches. If so: > > > > Acked-by: Paul E. McKenney > > > > If not, let me know and I will queue it. > > I could have bundled them up as a series. I think you can pick it up, > and I'll owe you a beer? It is queued, thank you! When does it need to hit mainline? (Your default is the v5.11 merge window, that is, the one following the upcoming merge window.) Thanx, Paul > > > --- > > > Changes V1->V2: > > > * drop unrelated Kconfig changes accidentally committed in v1. > > > > > > include/linux/srcutree.h | 2 +- > > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > > > diff --git a/include/linux/srcutree.h b/include/linux/srcutree.h > > > index 9cfcc8a756ae..9de652f4e1bd 100644 > > > --- a/include/linux/srcutree.h > > > +++ b/include/linux/srcutree.h > > > @@ -124,7 +124,7 @@ struct srcu_struct { > > > # define __DEFINE_SRCU(name, is_static) \ > > > is_static struct srcu_struct name; \ > > > struct srcu_struct * const __srcu_struct_##name \ > > > - __section("___srcu_struct_ptrs") = &name > > > + __section(___srcu_struct_ptrs) = &name > > > #else > > > # define __DEFINE_SRCU(name, is_static) \ > > > static DEFINE_PER_CPU(struct srcu_data, name##_srcu_data); \ > > > -- > > > 2.28.0.709.gb0816b6eb0-goog > > > > > > > -- > Thanks, > ~Nick Desaulniers