Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4702864pxk; Wed, 30 Sep 2020 09:29:00 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzODZPAkSlpaGT2Smr59x2oGMSjzjc/H5hZ0dCfgQIq279TgRFzC9aUArtt+OOxl4H/3gEM X-Received: by 2002:a17:906:30cf:: with SMTP id b15mr3567932ejb.351.1601483340588; Wed, 30 Sep 2020 09:29:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601483340; cv=none; d=google.com; s=arc-20160816; b=FGPXxBl7bj1tlfbka5B5omTmgS2wpG+sJwUAsnX3VPqXCDwxje6DKL4kB1s9isb8pV j6fv1EtpegJN2mVuogiILyO0OHSrOAc5l3h/g5g8B0Y/Ko4T2BEP3uLIRp7KwTKig/0D sM9DeTh0YSA2oVNFz8WDcDLcL3SoklUTfEbVl9fGpoL3SHXpM8nS4ajQEuHRfG+MIE3j 3MC8Rslz5WpbOQ/SICNS/sKwkPPCoJBxIz8jkCyBTsG2UhkjGMVbDOcTPgfm9M29m/Mf D4b/YZoFXj7U7sv1miyb4td2/OWynMI9WCp8EDnkxum+vrTiNFxl6oKp4LAr/wUxUE7o iW/w== 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:dkim-signature; bh=earzXYgcHhW5P7q3Fe1nQFt0BCBrbypIUJ3jhj8eCtI=; b=NPvOzl0QyN70Y1U4Nz0TnsfjbD4GnUl8rMYI6ggTh5NjfMehEdBDeGzCbSUv+2z/xS BwmTismzGier6XIq0hoTMFXtS6Z8H+YcffOqb1NXcTjrOfNxIMluNP/EhbYa8yXUuKO7 eqH3N/bKp6Hd9Enkk03loIxOnqfK9rzXGGDWlT/803E5xpYUDJHXgy7iwuxs9LN/671J T5IAH6zzYark8dLtz5I0440u01xbtH+7a41oAwRO8c15p5JEkXl/yS9qHP/CNs1LW4u4 Jx4m2PYrf+4iiZDEkya0NDx96ePMLImZBZyo7iyz+OQZBM8YoTcVpKDyyJk1lDpk7ipB aBIA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=uOko5veG; 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=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dp9si1564724ejc.203.2020.09.30.09.28.37; Wed, 30 Sep 2020 09:29:00 -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=@gmail.com header.s=20161025 header.b=uOko5veG; 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=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728744AbgI3Q1Z (ORCPT + 99 others); Wed, 30 Sep 2020 12:27:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51378 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgI3Q1Z (ORCPT ); Wed, 30 Sep 2020 12:27:25 -0400 Received: from mail-pf1-x444.google.com (mail-pf1-x444.google.com [IPv6:2607:f8b0:4864:20::444]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C76CAC061755; Wed, 30 Sep 2020 09:27:24 -0700 (PDT) Received: by mail-pf1-x444.google.com with SMTP id b124so1497670pfg.13; Wed, 30 Sep 2020 09:27:24 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=earzXYgcHhW5P7q3Fe1nQFt0BCBrbypIUJ3jhj8eCtI=; b=uOko5veGYfYAxeiAITpgwq2oq9YmLxIjW8sxs0ojSXRCoj1rDuNDOdJV5Sv4FF6rrs WWomq9t21+NwWl4AMGnvpR8o0buRjZekpMusCuIibOew6GV9110S7GWryQJxstJU/ll+ kzYQoOzTpZb+RhhEvAl0P4niDHTIW1Gg+etJIos3KgsBvQ4sFhBe/jF0Zqs0p7mfqlmK D1bz4KEctA3irUIXO7teL/kNXikcnXFGksBnYGrddopH1Sawir5giGVDdr7hu1t3mA3S vthI6FaJQX40O1t8cnlUS3KdoS0ZIpEwTTEPmX4Q/3NksgQbb4hE3jysU5zXulgcj0Mo by/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=earzXYgcHhW5P7q3Fe1nQFt0BCBrbypIUJ3jhj8eCtI=; b=kgIFE69sD1+GK7CoRQzFBA24muEZ/vERY2kw9OrHUVRZDFkWqXFPf6ds6qzSt2nWFL 7H4FS7mSsPdkWd+XvaX67dLcz7ye2Ufk19ANHhN9NT74NY7OFbcatklgHChgRN20lp0z TlIm3v6VW3FGy2DpeRcwuCqdAaG/2AG4wMXSOpL8lm4kH+UEH2EEEn4UpeY2ZacXurp0 g0d1kGq4Rlw+EKJKZK+Iv6VQ1hH1CO1HlZ1nF2g6daGDrcM2nHqqv4q+QoIhSwYRqF1H 5CFB4Aih+p46e6eEeTHIdC+X2M+GZaKZ0OX8XrndtF0xHJjO8orUaL9cpNHBCACsUhDq PHLw== X-Gm-Message-State: AOAM530E7WZBiy7MIWBDTVJAHytZCIPRn+YF9YDL/6hizX1eNsHCT0PQ /bBDcNXHOkUBIh7AdIOEZiA= X-Received: by 2002:aa7:989c:0:b029:142:2501:3973 with SMTP id r28-20020aa7989c0000b029014225013973mr3508830pfl.56.1601483244237; Wed, 30 Sep 2020 09:27:24 -0700 (PDT) Received: from ubuntu-m3-large-x86 ([2604:1380:45e1:2200::1]) by smtp.gmail.com with ESMTPSA id q18sm3144759pfg.158.2020.09.30.09.27.23 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 30 Sep 2020 09:27:23 -0700 (PDT) Date: Wed, 30 Sep 2020 09:27:22 -0700 From: Nathan Chancellor To: Nick Desaulniers Cc: "Paul E . McKenney" , Steven Rostedt , Mathieu Desnoyers , Lai Jiangshan , Josh Triplett , Kees Cook , linux-kernel@vger.kernel.org, rcu@vger.kernel.org, clang-built-linux@googlegroups.com Subject: Re: [PATCH v2] srcu: avoid escaped section names Message-ID: <20200930162722.GC236767@ubuntu-m3-large-x86> References: <20200929192549.501516-1-ndesaulniers@google.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200929192549.501516-1-ndesaulniers@google.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Tue, Sep 29, 2020 at 12:25:49PM -0700, 'Nick Desaulniers' via Clang Built Linux 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 Reviewed-by: Nathan Chancellor > --- > 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 >