Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3516235pxk; Mon, 5 Oct 2020 11:41:07 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzeDXMvY8NKnBkrQYULSY6aoGNqSN+oC6b62T3qZ8iID0Aly7MBU3pIoif459axHSnWQeUC X-Received: by 2002:a17:906:dc9:: with SMTP id p9mr1072869eji.403.1601923267268; Mon, 05 Oct 2020 11:41:07 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601923267; cv=none; d=google.com; s=arc-20160816; b=fC/V5U34tg0dm+5T7fQYHjz7KgBLoOs3+j4MMy9KOd+YBrSiHY/6IA1DHX4oGX+Hf2 MtxvqTiZ8p+020XaNtrw+9MQ0p6KN46iw3SJx75z5jfzgA8ymeGS6JpJOBay66Cl/2Tn slxQ0n7xvuB3XzaF6UnsMfSEE+tb9gS3sltWEEQHCzLNNpFOVOF5zikHwZDwHdquFYtF tIX/icVDODH75IRi0xE8NtAz7r88D2damGA8Sk6OMFHjks0iep69d0iwsI4k5PVR/HaE XgwNpkRL7VkTCW1ZHVPt11pUp/TNKr/3qsy5E/7UQQm72TNphamfLvgChWu4pDwwwwLA qL6g== 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:reply-to :in-reply-to:references:mime-version:dkim-signature; bh=0mINoVvksqZpxSeoRlADJj7+XdiIIyUQzvACsexYEQw=; b=bN/tHJlrvsXZ+6M6C5KvhD9w0IImQ8YSb5wZdzljBqClPI9yoxIitNTKYKxvHdLBGw ybehj+I5lvTb2jzTvfCfmsNf1YD3lNHzf56n3idG2oWg3rwCbRYqTptRFa2XHdFBFFxu gGp2djBNkoxoLxaq+UXdmUWjXlpmXF1aOqHLikL6NVGbXQMaZxjYEmvKELj8kvEAWZjj bIXH9jAcljr87oVzTn0w9CmTVo0qtaCtLPlzZI0q2GjHvv59Qdjqt74CN8tGLGaGi6WD SA1+nzvCJyZ4CuQXnkbHePbXRkffgnBHlbpjfW8+f+mWvURmoKLitni+fpTdMyHkovxJ U2WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=kn7nn+XT; 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 j26si591006edq.316.2020.10.05.11.40.34; Mon, 05 Oct 2020 11:41:07 -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=kn7nn+XT; 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 S1729155AbgJESjW (ORCPT + 99 others); Mon, 5 Oct 2020 14:39:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:50012 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729037AbgJESiz (ORCPT ); Mon, 5 Oct 2020 14:38:55 -0400 Received: from mail-il1-x142.google.com (mail-il1-x142.google.com [IPv6:2607:f8b0:4864:20::142]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id B3F29C0613CE; Mon, 5 Oct 2020 11:38:54 -0700 (PDT) Received: by mail-il1-x142.google.com with SMTP id z5so8736669ilq.5; Mon, 05 Oct 2020 11:38:54 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:reply-to:from:date:message-id :subject:to:cc; bh=0mINoVvksqZpxSeoRlADJj7+XdiIIyUQzvACsexYEQw=; b=kn7nn+XTmlJZO2v/2j2Tmy3jIlpyrrrrWPx33DO4lmrqZgUYwdb/a8sNtoyfvDz1OO 3UwPs7RxAscCE7pOVghC/bMTs1mp3PvDxShLNbA86FvVaW66U0plTCvNNadhsMUBxB0W KUPTDJLXJA5u//2V5nuseGGrKIdKR3tX1gFOunlYu0o0G+GkH8LZExt0l98aNuma63Qm WUHlA45vMTCAFJPax9yGhxpR8yJJcNQcLE080w0Xbo49IsaLBYBhCaACXbQweFmYZ3pY xNhUYhGalRo4rTCEtW31kbyfHsFnfAmQ6zYTqgqnlWuEHWJWegOa+Oda/L2jHCtTy6zV mQlQ== 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:reply-to :from:date:message-id:subject:to:cc; bh=0mINoVvksqZpxSeoRlADJj7+XdiIIyUQzvACsexYEQw=; b=gWlab85g/W4k4ExCSPZ4tfTu2KWtZxU9ROyX9GNO5C1ygUESbGAeBlC7Lg70ahPYQv t6VHS3T3HDZbyWDzaFLIYBeCqSf4+xAdhPv+D2TuUwlfbJYhqQdbmIiwT2rm6vkDlLIx joZaly6K7iUiof1dd5HGqg7+C3TEt3SSo/R8jzH/GHCidKNm1jCvfbziYThl6HhW2/iJ HyXOMm9JI/A5xNWLGn6c1x8Aji1BqmVbIesamytPH4if7BWOZQMYXJr7gWXlAdHRbXwo phMRTNl5DXUvgXcTUmNNjmXWLaw1oRhtSJNIHsgJ+uZ2+W4tgrzD0CaDmykoebmOBciJ m6Mw== X-Gm-Message-State: AOAM532eOpk70Za6PvyUL+qhmRl0/TAulFfjCkyd3NNey/uqQ1UZj/8X hVH+917f68X64/uRWZuxIZ8GK/jYNXQMb+y0c+M= X-Received: by 2002:a92:6a0a:: with SMTP id f10mr599827ilc.186.1601923133931; Mon, 05 Oct 2020 11:38:53 -0700 (PDT) MIME-Version: 1.0 References: <20200929192549.501516-1-ndesaulniers@google.com> <20200930204044.GZ29330@paulmck-ThinkPad-P72> <20201002205130.GK29330@paulmck-ThinkPad-P72> In-Reply-To: Reply-To: sedat.dilek@gmail.com From: Sedat Dilek Date: Mon, 5 Oct 2020 20:38:42 +0200 Message-ID: Subject: Re: [PATCH v2] srcu: avoid escaped section names To: Nick Desaulniers Cc: "Paul E. McKenney" , 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 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 ("...")? - 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.