Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp3581429pxk; Mon, 5 Oct 2020 13:32:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzIJIqsEpPImqRqYtqel2PY+jTPbMF3FdMizZJuvnjbsGAy3kp0MpfrpLSo3SnbMv+2e4lm X-Received: by 2002:a17:906:7088:: with SMTP id b8mr1602082ejk.541.1601929943443; Mon, 05 Oct 2020 13:32:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601929943; cv=none; d=google.com; s=arc-20160816; b=ZDqbIVJq+UPWfp3Ag8OnMuHp74Df2EmlPl9oJXQh9vVjUIefzjNvJ5hjA6FHV8P8+s dm1QwNqgnydaGYUyN8hqsUukS1iRm3JehhIOAMdTazOi384vg14jfvbjEurnzCvwb2ma lD+X5b1NUwU5j+aisB66sZzXyB/2v0udyWt1xInB2cttXbActUyFmkxFNBLe5LLyupAr LEgCm5GFiy+dTmMXs7pYFRfbOyNJH7nL7j2vsddZA6RtQBART0xrTOn9Nn0FUlV0dIBB iBi5ONQjVLO6t1b2eo0n0rDy7o9kArP4sm1dvZ2jj1FRVPpRdGQ7L5xCOgfCmcAuaT65 CjSA== 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=tGk+HufVuvkodYsqg3pTpLFvIgJAITpmfFnUXPHR2Jg=; b=CzFVXHlRp4HH7hjzsCG2ALfygAK3/EBaoN8rqmdpEQwajAikXdOh9Giendwhe+iYKp OSJQwSmY9UcUlSRrXgRM0gYyns3HvKqAc42qXZrqLjSJajkjZJb42ggXArtUSlploUQu r5ZBw8+KCe4FAzVuJW1kwu0xeNOIcodxzyFFM9j7gKlEfmaMrnwI6lVBjqmfhfZxsLtv 23ipN1PTDlOVyW1UaAqflqPRo7z6jbyP+Qb0V67oFvDTfitp0dhOBZLabK1LYReZ+FTY /TfW6E50vyqA7WIaFcLo0nEVRMnr/6B4+A6f9W3olNvhypwEVvufFHrWBs4lY9nX+Xw8 UKwA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=MiJI6ey7; 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 23si478500ejx.661.2020.10.05.13.32.00; Mon, 05 Oct 2020 13:32:23 -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=MiJI6ey7; 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 S1727040AbgJES3m (ORCPT + 99 others); Mon, 5 Oct 2020 14:29:42 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48572 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725960AbgJES3m (ORCPT ); Mon, 5 Oct 2020 14:29:42 -0400 Received: from mail-pf1-x442.google.com (mail-pf1-x442.google.com [IPv6:2607:f8b0:4864:20::442]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3AA2DC0613CE for ; Mon, 5 Oct 2020 11:29:42 -0700 (PDT) Received: by mail-pf1-x442.google.com with SMTP id b26so4159971pff.3 for ; Mon, 05 Oct 2020 11:29:42 -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=tGk+HufVuvkodYsqg3pTpLFvIgJAITpmfFnUXPHR2Jg=; b=MiJI6ey78fVDhIhjF59FHCG5aU2ZJ0H/tCC2TqgNlbFNGVW2lfcJLHEIcXsAFfkNBQ KOSq/2UmUdv+Vyk/r0626wy3HOT7o3BAEvhdn3VQppJwYUcvv7hL4j1s9Irdob1kIscd r/c4pLkjpjjYubbZFE8c+/yB8bBbQB1c3kwKIW9PgBSx+9FKZCebrX17TnXtn/BTEHut HirtS9Ve4Oox0qj8M0G54bhM0cYU3LwzbDPagZPYUikg4QAWNkC/68s5qW8wzzEiYDOC GB2C1E4fYiWZFMRxO7oDJrsFjanRSE1bXB2SaMh89FxWnjhuUIBOhQRNOlv87Eg4eA6/ RGfw== 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=tGk+HufVuvkodYsqg3pTpLFvIgJAITpmfFnUXPHR2Jg=; b=UaPkh+CCWLIBFdSHgHYomY02u1vSxuA7FIPsCpPwJn/KXUf+rmdR2ohDI4RvpCPJNf GWIgxseY+48PY1hzcqvOpO5f4B3rlB40eC84KnTaHjL3JGzthQVmx+qBzLhQCQzaglft DneuZ3Xzi6NygR3EwoMFpSwnEsYgpnTPMmHX1EC6z31Gs/pphaFJZi1epYp8vjs4BXvF PQanZqNE31yMziRKHNthKAJwZs6LsAZ9+21BRmbcn8gOUBwgGapGlL6By3lWfgjDkOk4 vwYyFWGn4/nK+Y2DIZH7XKbpGcCoH7+kb2BQBIUDnJB1OyREOM/GZNI5qujOPSjV8w6J bOuA== X-Gm-Message-State: AOAM532AD4ptmFXdc9/yd9tsfkX40PY6TB00TXkOyCfDMVij5lOYlQXp B6oPpNvlu1uo/0DNhnv0d9hXk1996qpA32u9Vl9giSey0cE= X-Received: by 2002:a65:6858:: with SMTP id q24mr812037pgt.10.1601922581328; Mon, 05 Oct 2020 11:29:41 -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: <20201002205130.GK29330@paulmck-ThinkPad-P72> From: Nick Desaulniers Date: Mon, 5 Oct 2020 11:29:30 -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 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. > > > 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