Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3983043ybg; Mon, 28 Oct 2019 23:55:03 -0700 (PDT) X-Google-Smtp-Source: APXvYqzI/ppY5KIf+sfF6dRlYUbFyTdQBJ9M3XxkkM6OxBcLrbDVBJti7cLlruRs3maVXhd0Fcp6 X-Received: by 2002:a17:907:1189:: with SMTP id uz9mr1620416ejb.201.1572332103403; Mon, 28 Oct 2019 23:55:03 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572332103; cv=none; d=google.com; s=arc-20160816; b=V6I+m6x17W/evx8dv6PVfM6bE5MAj2SIbE7WxkAKE11l0qPg8ohNAvyZhjBRVYgpu9 0rFHf/tcExk+roi8nUrjkeqseNnabvHo1A5gj91FZu7sA8a3fOz7AWgp51mCkeCIUFHY OzzWhzSzSnElAQg8vcehmlnsRXNDON6IiUWSvJ0/Ts45EC5rVgA68RF8dN2y0MEWRx1j cG4JrPoJ1hjuArdvDltjPksD9Vzi5QQt+dBWjl77ajN6Th7tZP7sssJUv5TFmKOVLWAn lbhQ5VwMz4RhaVg8B8RgNH/1vCWbfdm7XWBtLwoPmShFRyw8VhN511PRQ1fkuVK3UjgC nB/w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=Gj9kwn2UakujDjYMuARUfL/HslsRA2Ll/XdS5VGqcz0=; b=ZBjFMplNpVfA+4s7qekVuITmip8yrn+A/MouhZE7e6H0rQEaK8lYV3wLZDUYh6iTXK NDge4MHyQLD3liF+CAxTTtu2BcwgnsIVD8ogIc5UBMLDRafj2IzrvENkHhnrSTZ01m90 Uyy0mAkO/3Fj5DZXYXdqp8EguL/Pe4bR7kdT4FNtsMjZHvSjDuxjmpEy9vLWvDhy7jOD zgvULxD90WzJjGnciAXuExqupeTI7NHSnYDaiEzWjwGJpGW+9zAfCUlBSoei1Kpzw3fO 3buldV53/7kRqc0J/UwSaXJM/v3DivCtNS9e41n3++HW70mlq/fMrNmjNFQAhFqv0Pep YB6A== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id j6si8333462ejj.37.2019.10.28.23.54.39; Mon, 28 Oct 2019 23:55:03 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728809AbfJ1W20 (ORCPT + 99 others); Mon, 28 Oct 2019 18:28:26 -0400 Received: from smtprelay0225.hostedemail.com ([216.40.44.225]:44446 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726510AbfJ1W20 (ORCPT ); Mon, 28 Oct 2019 18:28:26 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay03.hostedemail.com (Postfix) with ESMTP id 914C78384360; Mon, 28 Oct 2019 22:28:24 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 90,9,0,,d41d8cd98f00b204,joe@perches.com,:::::::::::,RULES_HIT:41:334:355:368:369:379:599:960:966:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1543:1593:1594:1711:1730:1747:1777:1792:2196:2198:2199:2200:2393:2553:2559:2562:2828:2895:3138:3139:3140:3141:3142:3354:3622:3653:3865:3866:3867:3868:3870:3871:3872:3873:3874:4250:4321:4385:4605:5007:6119:6691:7875:7974:9040:10004:10400:10848:11026:11232:11658:11914:12043:12297:12438:12555:12663:12740:12760:12895:12986:13161:13229:13255:13439:14096:14097:14659:14721:21080:21325:21433:21451:21627:21740:21741:30054:30070:30089:30090:30091,0,RBL:47.151.135.224:@perches.com:.lbl8.mailshell.net-62.8.0.100 64.201.201.201,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:fn,MSBL:0,DNSBL:neutral,Custom_rules:0:0:0,LFtime:25,LUA_SUMMARY:none X-HE-Tag: crown52_665b347525d29 X-Filterd-Recvd-Size: 4204 Received: from XPS-9350.home (unknown [47.151.135.224]) (Authenticated sender: joe@perches.com) by omf11.hostedemail.com (Postfix) with ESMTPA; Mon, 28 Oct 2019 22:28:23 +0000 (UTC) Message-ID: <00c5ef125a4e62f538de7ddddc9d8fe7085794a3.camel@perches.com> Subject: Re: [PATCH] compiler*.h: Add '__' prefix and suffix to all __attribute__ #defines From: Joe Perches To: Luc Van Oostenryck Cc: Miguel Ojeda , linux-sparse@vger.kernel.org, Andrew Morton , linux-kernel , clang-built-linux Date: Mon, 28 Oct 2019 15:28:17 -0700 In-Reply-To: <20191028221523.vlzdk6dkcglxei6v@desk.local> References: <7a15bc8ad7437dc3a044a4f9cd283500bd0b5f36.camel@perches.com> <19fd23e98bab65a1ee624445193bd2ed86108881.camel@perches.com> <20191028221523.vlzdk6dkcglxei6v@desk.local> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.34.1-2 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, 2019-10-28 at 23:15 +0100, Luc Van Oostenryck wrote: > On Mon, Oct 28, 2019 at 10:59:47AM -0700, Joe Perches wrote: > > On Mon, 2019-10-28 at 18:37 +0100, Miguel Ojeda wrote: > > > Just in case: for these ones (i.e. __CHECKER__), did you check if > > > sparse handles this syntax? (I don't recall myself if it does). > > > > > > Other than that, thanks for the cleanup too! I can pick it up in the > > > the compiler-attributes tree and put it in -next. > > > > Thanks for asking and no, I did not until just now. > > Turns out sparse does _not_ handle these changes and > > the checking fails for these ____. > > > > sparse would have to update parse.c or the __CHECKER__ > > changes would need to be reverted. > > > > Perhaps update parse.c like: > > ... > > Yes, this was missing. Thanks. > Can I have your SoB for this? I'm not sure this actually works as there's some possible sparse parsing changes in the use of __context__. There is a difference in linux compilation of a defconfig output with sparse output of init/ with the new parse.c old: $ make clean ; make C=1 init > old 2>&1 (recompile sparse with changes above) new: $ make clean ; make C=1 init > new 2>&1 $ diff -urN old new --- old 2019-10-28 15:20:00.524678375 -0700 +++ new 2019-10-28 15:21:14.004674721 -0700 @@ -55,7 +55,25 @@ CHK include/generated/compile.h CHECK init/main.c init/main.c:173:12: warning: symbol 'envp_init' was not declared. Should it be static? +./include/linux/rcupdate.h:598:9: error: undefined identifier '__context__' +./include/linux/rcupdate.h:651:9: error: undefined identifier '__context__' +./include/linux/rcupdate.h:598:9: error: not a function +./include/linux/rcupdate.h:598:9: error: undefined identifier 'RCU' +./include/linux/rcupdate.h:651:9: error: not a function +./include/linux/rcupdate.h:651:9: error: undefined identifier 'RCU' init/main.c:506:20: warning: symbol 'mem_encrypt_init' was not declared. Should it be static? +./include/linux/rcupdate.h:716:9: error: undefined identifier '__context__' +./include/linux/rcupdate.h:736:9: error: undefined identifier '__context__' +./include/linux/rcupdate.h:716:9: error: not a function +./include/linux/rcupdate.h:716:9: error: undefined identifier 'RCU_SCHED' +./include/linux/rcupdate.h:736:9: error: not a function +./include/linux/rcupdate.h:736:9: error: undefined identifier 'RCU_SCHED' +./include/linux/rcupdate.h:716:9: error: not a function +./include/linux/rcupdate.h:736:9: error: not a function +./include/linux/rcupdate.h:716:9: error: not a function +./include/linux/rcupdate.h:736:9: error: not a function +./include/linux/spinlock.h:211:9: error: undefined identifier '__context__' +init/main.c:1222:9: warning: context imbalance in 'kernel_init_freeable' - wrong count at exit CC init/main.o CHECK init/version.c CC init/version.o