Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4921303pxk; Wed, 30 Sep 2020 15:41:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJw5OnwFe45XBukXND85vJfFCs4mkWqi+5wQVrDWIqfn1YLz+TrzqZTTfuFLn3n6KMDkISfY X-Received: by 2002:a17:906:c111:: with SMTP id do17mr2982215ejc.551.1601505582612; Wed, 30 Sep 2020 15:39:42 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601505582; cv=none; d=google.com; s=arc-20160816; b=vAMLoAC6Q1vaiqgrpurqQQBuOd9XG7XZjg32EVzriQrALi7VDNPsEn6WPzFSzK+w+K icHFF93P+OBXs4lGMOa0LGIzP4I0ocB38Ky5i7FXFsM3ZuCviqbolZzhg0ZZ4AO96tIg Dk73AZujrM1qCfpOQCVVt6qx8wMuOgc1FjOM9G4cSRar4ybsLLHvDIdKTGRXO7tEaMfR 2G/GZMYfXgNmR8dfpKjEyoPpXd8K5fbYKRosFnXGfKzkD8I5y1cUpjJIYvuybSciC7FG XkNWg7zPQRK6UAAG2W1wsdJ4zuPO7Ofb34/REJ2cvJT+1jo/DOiRJfrDOU7v2Nz2O0Sq lxbA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature; bh=5AARzvPIhmrr9RKWTolOdjmp/z3TGB3+rP7VPNajPP0=; b=K8RkDsa5MHMOQp0Hyi65IyGP0iMthywaZ+iJ1zMObo5NZ4yURqemiTicSB/LqohD4x 8RTyTokaj+TewGQHTafCkqHqEVS0t7JGTOp+/oXc66R6Fd6+NYB/KQ0EYcY1ANzybvdj iEeCgI3tsVIGH6PMKWiWmV6LmEEetYNg05u4qAt5TqnjTxS7KZ8974gEqMzwz2Mz/e+v KgzSi68CTqquB3Wf0G7At9lFD8mX+uKEKgNJsUyevHnhkVLQKZAyScQAcOuGfS1/vxwU hCTi9bO37Kq8XuCLnRh+thb/WOJowhlQlvktWfthELPD1nA2k4rGBbR4dArzevb95ZYM w7cQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=qQgOqp0h; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id s13si2121368edj.323.2020.09.30.15.38.47; Wed, 30 Sep 2020 15:39:42 -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=@google.com header.s=20161025 header.b=qQgOqp0h; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730276AbgI3U4C (ORCPT + 99 others); Wed, 30 Sep 2020 16:56:02 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:36416 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgI3U4C (ORCPT ); Wed, 30 Sep 2020 16:56:02 -0400 Received: from mail-pj1-x1041.google.com (mail-pj1-x1041.google.com [IPv6:2607:f8b0:4864:20::1041]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7D761C061755 for ; Wed, 30 Sep 2020 13:56:00 -0700 (PDT) Received: by mail-pj1-x1041.google.com with SMTP id kk9so508418pjb.2 for ; Wed, 30 Sep 2020 13:56:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=5AARzvPIhmrr9RKWTolOdjmp/z3TGB3+rP7VPNajPP0=; b=qQgOqp0hAZxPWwEzbDePhDJXvFlR2QPc3wujGt5XoQQg2XsZEcgfcpYNsgvVi3CfbM j9fU6bbS1AVT8Yc/f1OFUwdDYWA24CqI1KekYsI1wBRvh54jxLjNJsuZK8s/rMSzlKEX HswgyZB3fH5PcMiEcEkm/akmFlv3skt6ykTVKeNTVUIZBg/PeVI5FzObNxBZ9lO9bRrl eoCedfKPSN1ljcGe0JeBqYefR4dXheEtypOq4cOP444Me93+KrRwuiP83JO8HWbMRUL0 x2zFgAgH1sdadVC8IALQ+Bl3NR51FSYvH3lX6tqwAdkgy8FMpwrSW5mzFn3CjCKe9IRx Long== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=5AARzvPIhmrr9RKWTolOdjmp/z3TGB3+rP7VPNajPP0=; b=NBINI1RwgKhlxu3iKRvB+hlQqFrzfcWWpe0yqS8sb73TRXJ4VIS9+qqcZ4eDB/3J2O xOp32hLeawFxWRLb+yglIcylVLFCKxqWgqPIu42UkcnXOPqgiq/y97I69IGqsbG7vxB4 ATx4ZJEqL2pWdXmrGpQ9Ig1RMygm6xX19+dIXUEJ59grkZIPcatleOPh58m7ow3Ucowz JqrUm5p/6mL2xipZFKZm8Skh3abw+Kyy6x7rssGHrRVV9Q90PbnhKZCN5OqNNDjqooG0 qG8JHU1YY3Y0HfovEcA6UQm74HE4H88L7963pzCGQKwfUA+wgD4aalpGruV5aPQJsVyg rXwQ== X-Gm-Message-State: AOAM532KQV4VYTDQ2eMuvnlA4h2yCUvQgGqbDILouvbVsAQ250uoUffu FjLMR6AD5eC/+0TcOkr9P7sy32rl0khAS6OaBAKabA== X-Received: by 2002:a17:90a:3b48:: with SMTP id t8mr158290pjf.32.1601499359788; Wed, 30 Sep 2020 13:55:59 -0700 (PDT) MIME-Version: 1.0 References: <20200929192549.501516-1-ndesaulniers@google.com> <20200930204044.GZ29330@paulmck-ThinkPad-P72> In-Reply-To: <20200930204044.GZ29330@paulmck-ThinkPad-P72> From: Nick Desaulniers Date: Wed, 30 Sep 2020 13:55:48 -0700 Message-ID: Subject: Re: [PATCH v2] srcu: avoid escaped section names To: "Paul E. McKenney" Cc: Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Josh Triplett , Kees Cook , LKML , rcu@vger.kernel.org, clang-built-linux Content-Type: text/plain; charset="UTF-8" Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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? > > 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