Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4858831pxk; Wed, 30 Sep 2020 13:42:19 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy4mdMPHHhOUYxU1ma8zvhDiKMgAsAPwTIPuGF0x4kgYrNWYsR6qhxeVbqyUUCu9TOi60zg X-Received: by 2002:a17:906:4b4a:: with SMTP id j10mr4666467ejv.498.1601498539246; Wed, 30 Sep 2020 13:42:19 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601498539; cv=none; d=google.com; s=arc-20160816; b=fScJ4I4uo1bE7hCXkm9Y/Xht3GfaJ4t8MLOX6d1DYV0jpH8VTkjTj+rzFa/10ciBZ9 vIxShOJMNn8O5N550qwGboEQVQxplNf9ztJgxfnpK8aUCtdv4TABf36e4S3KYaERl/32 5l19piorXFf3/Pk67+fMPekdHj015Z+0McFNL0sL+RuYzczKelh+Xd2GlxE4KkUEVzFe ATmhWy8yvPO8SOwkj8lbCtDKzV2/VtsvgE8tqzbXNn5xUPVtaOkp/cStqUu7WdM17XzK oOdykiDMU9xcOlx0L+B96Ru6cEfmt/ySmFGyDqb9MqiCioOfYPjff0eYymz9fLaiX1RA CAzg== 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=5TAgMt6V8y9+Aaeb3yVxfgxj37B1/4xEC4eRPXvjwJU=; b=A6iIGZFjA0wgQy7b+Mx8HxakmoKWJKTIeqW5NeTML70K5FJefUYWLJs3LVBth/XweX Ap0aw3zf4K+Qu0fFBJGUdDXehCW+Mjh84wPji1AUNJcMTGNgJdHxRibA0lJpQjTireb5 5WKY1vo6AKfbFXvd01JtzMPPXD9z1a0j+i7k4zXmt8+kiGgDj6b01VH3pi/2lvzTZ9aq oLjMNKuVMDQsLwXmbFNw8z3McnPt/KwjbwpKAiGFOfk6xSHfhYNwtbIkdJAi3+NO9RtI ozpc6NdF1KNzkzYje6dSZPUDVsWzrd3UWu28jyK1hkvSo+VAcb1cT6Hf8NVSoH1cwj2O TKwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=gztbrPbS; 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 t15si1877947edw.359.2020.09.30.13.41.56; Wed, 30 Sep 2020 13:42:19 -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=gztbrPbS; 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 S1729980AbgI3Ukq (ORCPT + 99 others); Wed, 30 Sep 2020 16:40:46 -0400 Received: from mail.kernel.org ([198.145.29.99]:50016 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725355AbgI3Ukp (ORCPT ); Wed, 30 Sep 2020 16:40:45 -0400 Received: from paulmck-ThinkPad-P72.home (unknown [50.45.173.55]) (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 119C72064E; Wed, 30 Sep 2020 20:40:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601498445; bh=HSIi+z4+6zDGtzfYvkCV+4MaQTyMOGFoRZ7A/A6Oyg4=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=gztbrPbSLZIkeo8dERp62j9vvJ2n/MCPlJPGdHNtanlazsTNRh8bLUb/hYT0uThkj 6fO82z+ztvFeUEYJqSg6OC/rz9ttIVJ2dLBcDLFaKleNzS/N85t/cZTEu5R0AjXLt0 lnCi21u3u/J+7tJL4E6GqdPaXX6cYNMmNN7h4S/g= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id BBB6C352303E; Wed, 30 Sep 2020 13:40:44 -0700 (PDT) Date: Wed, 30 Sep 2020 13:40:44 -0700 From: "Paul E. McKenney" To: Nick Desaulniers Cc: 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: <20200930204044.GZ29330@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org 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> User-Agent: Mutt/1.9.4 (2018-02-28) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. 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 >