Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3522190pxk; Mon, 5 Oct 2020 11:52:01 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxPwcH8aUIFqnZbIPbP0vPV92FzHy2bwaTQvaT1oaJt64U/3nUW08iNcu9dkIMawTqua6Im X-Received: by 2002:a17:906:d92d:: with SMTP id rn13mr1169747ejb.439.1601923921729; Mon, 05 Oct 2020 11:52:01 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601923921; cv=none; d=google.com; s=arc-20160816; b=zk6e92EZka6+umPhwsRcqr7ozj0+VvKmwGGHnx143nMEV+50MUkSTGLJLYE9b+yJ9w R3BfcdYGf9QT6XxZ0HVirckeuCgyf7/NTiefLab12kF2xMvWyQuPdNX+E+Yu8fFs6h0F r5B4VhAqZqayZdndn193qDYkzlQRDzQluCa1hE6x9eVYeVB1twB7tTlvqi/iAtalG+te HpJp/kJitbotbUXO5utl5NKcXyxny8RcJ2vBYKEj4vF4ATggVfQCqfPCazB03wjpAO+3 NGKoxcsdjKPOfPCx553KJTOfNi8KpNriUZ+09FbH+pWVMTBs9UJnLHbxumSHlQIhC/gx DFeA== 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=xDvorivGvlQ3Q9lt6Q8vid9LRa4lbr0moDasZB6Q1gY=; b=HUnmtfkrQPDLNDH5n3tQx0PuS7QJp+KqJ0R5xx46IxUzP5r/ecX4FbudjZCez4KX1n efF3Ez2tEYHKSkL/CSRhXjhUW3ZviqvqPqSqHu3vOK84O3AXoEc4FtH7oLhLa/ct96ha DOrrHupcOoOYlS68/h79ksSkz5McxNoIt9eUM14Bg8rS8tUIUVE7lqcyMKwDrebjJ2sa Utt7EEbBl2IPKv/XbbFV48O6Dp9/ejdsCgdP1FGWg1fgy571UkB1xqKSA/bnJEqopMAD juhEUZI8DY1N3tiPLBkoE3rKpSBReqyl5+02x/43TF0Sh73jajB32DFE+Svlbq+YqsvQ a1Mw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=f8P0BfJ2; 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 c17si310425ejr.574.2020.10.05.11.51.38; Mon, 05 Oct 2020 11:52:01 -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=f8P0BfJ2; 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 S1729200AbgJEStM (ORCPT + 99 others); Mon, 5 Oct 2020 14:49:12 -0400 Received: from mail.kernel.org ([198.145.29.99]:48830 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728418AbgJEStL (ORCPT ); Mon, 5 Oct 2020 14:49:11 -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 A6ED820853; Mon, 5 Oct 2020 18:49:10 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1601923750; bh=RyiEHfiF6hosv8zbGIeP+MtyKE6W2/2vsB1r59Ua2IE=; h=Date:From:To:Cc:Subject:Reply-To:References:In-Reply-To:From; b=f8P0BfJ2Y3hpZROavK1XThuCq6LEYgrYxC/6puNZoiecqPb+Ijxws/vqup1whzANL NisRimxmmQcynu7+3AaDMvfPNiiV+onZQj6v3U27rLtBSRkIoyrWR6jaTr+3u7eDe2 xTD+ZKLRiyKlYs5AOcz1eg9IJGeDFWRdUBbjiPt0= Received: by paulmck-ThinkPad-P72.home (Postfix, from userid 1000) id 558E6352301E; Mon, 5 Oct 2020 11:49:10 -0700 (PDT) Date: Mon, 5 Oct 2020 11:49:10 -0700 From: "Paul E. McKenney" To: Sedat Dilek Cc: Nick Desaulniers , 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: <20201005184910.GC29330@paulmck-ThinkPad-P72> Reply-To: paulmck@kernel.org References: <20200929192549.501516-1-ndesaulniers@google.com> <20200930204044.GZ29330@paulmck-ThinkPad-P72> <20201002205130.GK29330@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 Mon, Oct 05, 2020 at 08:38:42PM +0200, Sedat Dilek wrote: > On Mon, Oct 5, 2020 at 8:29 PM 'Nick Desaulniers' via Clang Built > Linux wrote: > > > > On Fri, Oct 2, 2020 at 1:51 PM Paul E. McKenney wrote: > > > > > > 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.) > > > > No rush, this patch wasn't blocking any known issue, just a cleanup > > while I was in the neighborhood. 100 years ago, I was an Eagle scout. > > Pretty sure there was a motto about "leaving things better than you > > found them." Thanks for help resolving the merge conflict reported in > > -next related to it. > > Wasn't there a problem with your "Fixes:" tag (Fixes: *drop word > "commit"* commit_hashid ("...")? Indeed there was, and I have it noted to be fixed on my next rebase. Perhaps another reason not to rush to mainline though. ;-) Thanx, Paul > - Sedat - > > > > > > > > > > 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 > > > > > > > > -- > > Thanks, > > ~Nick Desaulniers > > > > -- > > You received this message because you are subscribed to the Google Groups "Clang Built Linux" group. > > To unsubscribe from this group and stop receiving emails from it, send an email to clang-built-linux+unsubscribe@googlegroups.com. > > To view this discussion on the web visit https://groups.google.com/d/msgid/clang-built-linux/CAKwvOdkPMSwQneMLFNg3ihM5zHorFy%2BuGvzAL7y70%2Bhu_1q24w%40mail.gmail.com.