Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp4668023pxk; Wed, 30 Sep 2020 08:41:35 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwjtmoVlXuu4ms3+uUzCLWKA6/r+ztrtTSlxvoUE5XJh5wE8zluVSgbqtG+SOiOUTE/wpyQ X-Received: by 2002:aa7:d750:: with SMTP id a16mr3506067eds.362.1601480494978; Wed, 30 Sep 2020 08:41:34 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1601480494; cv=none; d=google.com; s=arc-20160816; b=WfVL3XaCc6NMO4EutivQhQU+pjJyr6rUngUOJ4D4WmogzcplOwuKS8NN0/Uyo2CUCE yobDM49mcCUNEkoBI82yf21TuMynp/C516iWb7r77A9GYFsIiNxf1hrFb0QfpTD9dmZ6 +KjI8EA0ZyuCL2HTEi6xRMLFY+4oBOKvV4Q89Y0KPA0R4MSATE1ygkH/u7Vy7riI5HQr mKKafMX8et3QUqpUlxXrQMOjfe6sDD+0V09uLAHovlKYxA+utYjuvBhITXQ8VfFaTuAI EJU6aq+Tvk+DLFqLRRs/88h+jaqkgEO4g3rUksEdcXCnnI4m6W0aUIk5v5BERfq4kKG1 QTPQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:user-agent:references:in-reply-to :date:cc:to:from:subject:message-id; bh=DDUXtMEOOXEc0voAMC1D3VD6nXxr2KpVQh2irjrGzlQ=; b=bTX4bxOWP5kSrkuWEjJjLaUCJW5epIFUKx34l65XX2HtxcucqzZr6/onxaVPzqE8R9 PMYWn24ld+nafVottqKP59HFDT6AQX6QzC6/TX9L56s5hbnlr+ekdsb6aQJIk7Nh6O2f RqAuBXVfkFjXlFCKfhq46uDYc5zDp2Xp6DfG57dMc3QAGPLy5lLWmoW9h5nW4pixKoGq 4mHJcjYeFy4DAH1cbKyeX+F+Mf2IsABn22L/hsa6RSmP1noNTYZWEGtcI6geOvUTH1Ov 0Lpc6Sdhw6yCm2ZZiOcbqOIFNXEGsJ/ILZVPG/vD6WxXDw3mkrnXHCshRBavLCmOzy+8 it+Q== ARC-Authentication-Results: i=1; mx.google.com; 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 Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p13si1442218ejx.235.2020.09.30.08.41.11; Wed, 30 Sep 2020 08:41:34 -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; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730967AbgI3PkQ (ORCPT + 99 others); Wed, 30 Sep 2020 11:40:16 -0400 Received: from smtprelay0211.hostedemail.com ([216.40.44.211]:35630 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1729434AbgI3PkQ (ORCPT ); Wed, 30 Sep 2020 11:40:16 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id E525F18225E14; Wed, 30 Sep 2020 15:40:13 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:871:982:988:989:1000:1260:1313:1314:1345:1359:1437:1516:1518:1535:1537:1566:1575:1594:1711:1714:1730:1747:1764:1777:1792:2393:2559:2562:3138:3139:3140:3141:3142:3622:3865:3866:3867:3868:3870:3871:4119:4321:5007:6506:6747:6748:7281:10004:10394:10400:10848:11232:11604:11658:11914:12297:12740:12895:13160:13229:13439:14659:21080:21433:21451:21627:21789:21972:30030:30054:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:3,LUA_SUMMARY:none X-HE-Tag: shirt16_0b14cd527194 X-Filterd-Recvd-Size: 8925 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf13.hostedemail.com (Postfix) with ESMTPA; Wed, 30 Sep 2020 15:40:12 +0000 (UTC) Message-ID: Subject: Re: [PATCH] compiler.h: avoid escaped section names From: Joe Perches To: Nick Desaulniers , Arvind Sankar Cc: Andrew Morton , Miguel Ojeda , Luc Van Oostenryck , Nathan Chancellor , linux-sparse@vger.kernel.org, LKML , clang-built-linux Date: Wed, 30 Sep 2020 08:40:11 -0700 In-Reply-To: References: <20200929194318.548707-1-ndesaulniers@google.com> <20200929200801.GA2668747@rani.riverdale.lan> Content-Type: multipart/mixed; boundary="=-b2mXhRFB+I/U/qMewy+F" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org --=-b2mXhRFB+I/U/qMewy+F Content-Type: text/plain; charset="ISO-8859-1" Content-Transfer-Encoding: 7bit On Tue, 2020-09-29 at 13:25 -0700, Nick Desaulniers wrote: > And I don't remember what ever happened to Joe's script for treewide > conversion of __section. Nor do I but here (attached) is the script. My recollection is there was some problem with mscros with ## concatenation in some converted uses. --=-b2mXhRFB+I/U/qMewy+F Content-Type: application/x-perl; name="convert_section.pl" Content-Disposition: attachment; filename="convert_section.pl" Content-Transfer-Encoding: base64 IyBjb252ZXJ0IGxpbnV4LWtlcm5lbCBfX3NlY3Rpb24gdXNlcyBmcm9tIHVucXVvdGVkIHN0cmlu ZyB0byBxdW90ZWQgc3RyaW5nCiMgY29udmVydCBfX2F0dHJpYnV0ZV9fKChzZWN0aW9uKCJmb28i KSkpIHRvIF9fc2VjdGlv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