Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp3662168ybg; Mon, 28 Oct 2019 16:50:20 -0700 (PDT) X-Google-Smtp-Source: APXvYqwcEXjRBvK1RBzouknR0T1ozpexiBnKLQn1aE81KR8jmJqPM7O6D0mHu5v0DGgw2ln3vE+U X-Received: by 2002:a50:cc43:: with SMTP id n3mr23014882edi.287.1572306620769; Mon, 28 Oct 2019 16:50:20 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1572306620; cv=none; d=google.com; s=arc-20160816; b=iIFjB3wi7KOq4IAIg1bT1xKqgnbFnzosLX9Dpke5GnuYbWCAlRXAxD6krCSdJy00pg zxqpvZWNhpg2TQvgrQbuu9oVaX8F4BsikY602D+RfCMIMUv5PAO+z+3zz+MOEvSKMa6h MNeTje8sDlIWG+PXeBqByihLmxQWnCeYffhTxHeIYNBZBIxWge7JhiwnyXdmz+vrYi8O NPU52ExMRytZrzNUKA8Bvpi35SLvF3O4iQu4d416hA4kleaKYk9ERblEkQbviGyjrFco tQbkyUN4nOuuQ7UKhx01Rq+POnQArJ55tuTOA853N6W/UjdMang3VUWsvkrQnnQtpE36 2RhQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=6kOh9lI6YWchLWC+l1b8QT9L947fcvZOAFfSe858fBU=; b=0Fw+nreCkwRxIObqWD6idrzqjzFS6AyQ4J+F4TdoBUl7hxGtlWZYat+wg8zewwtD1s 0fjpkavL06zKZqaOOR4/8dvZ0WHEtbSxZqo2ZSfwgElfMHHJ9t2ZvHSQMUHtmShzFCyJ H4hVrvfTRNpYEqbaJ/xd+TYE00WRZ6oLnkcEdgOKcfHuG9Yvv0Q/8DoKioSJfC2R4JBm lCg1gU7w6J38eF70V47zWzsYa2kdEmX62bk8a/1uNIZtc5Kjw9WI4GOEmlc/lUwvaUOx FGzAlb1zlSKHL3tfwAS7Qe/0OuLbVZLuqhlqqcA2Ct/JClsHVp/FJf6m1+6OrPZ1PODh 8nKA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qGUuw+M4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n11si7187096ejb.240.2019.10.28.16.49.57; Mon, 28 Oct 2019 16:50:20 -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; dkim=pass header.i=@gmail.com header.s=20161025 header.b=qGUuw+M4; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1730903AbfJ1XDy (ORCPT + 99 others); Mon, 28 Oct 2019 19:03:54 -0400 Received: from mail-wm1-f67.google.com ([209.85.128.67]:52654 "EHLO mail-wm1-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729692AbfJ1XDy (ORCPT ); Mon, 28 Oct 2019 19:03:54 -0400 Received: by mail-wm1-f67.google.com with SMTP id p21so656419wmg.2; Mon, 28 Oct 2019 16:03:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=6kOh9lI6YWchLWC+l1b8QT9L947fcvZOAFfSe858fBU=; b=qGUuw+M4JqKVUXl04qUvKcdPECeB8d1xsX6pthiAeWmiu0awZf0ZHOn0LnqLAHqflx T7fjj1NjVbBBi1BfufVzE/0m/IeVOZaOmMnarD5gYLGm4MLbjHI5nDWYWu+jYF/UaX7I YaUx2bk8uhI1ULCgamNeJw87EmeoA6T01mh3WI7MTOMe6bdVR+WuwCNDPnh7n6701H5X hZ6xbUKgzb4JVXdcQ1jxlGIEKMCwgiJH3e9Ii1i4ME6wVlQ2AEqVUprQIcDBqsk2tgE2 QytMHotDaAjBcDOmkxGwJdEQTXy4HF+GypoHZZo6df7z6mD+JY/rrtTD9dOb5f8PnYuF QVvg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to:user-agent; bh=6kOh9lI6YWchLWC+l1b8QT9L947fcvZOAFfSe858fBU=; b=V1JVIZdD+9uf0jZYudfC0n4Ahxu2Dluu4VdcNc9ntm/hbD0y91ABZt00RxRML4zt0S 3U5q6Da0LqtqlJZfA6bRcWcOcM8ZZNVnTthXa57gshe5xzmaBBoxQ9Mt3VaXpduOZCBE l4XYFM2V93fALXrMlL2Wtw30J+TGCbLTJRkrUsgEFKnn+HlV9/KytaOFQSXI28w2Q+3J 1UsvilhbmP5/Qs0itx/gCvwfssaE4lOXxTECQOGZWqftLo7jMbwmo4XFLe3gSQqxPiAX TtcqMXZaHmV1z48oPezKgcP7yBd6p3QnYLY1PNpytM69F7W2saUqLhaIGtLcKKpruNI7 9ysA== X-Gm-Message-State: APjAAAVcMrbSoR3h+tprSRRmmnjALWTm2SdDrmie+2PKtOH+MBGV5fZk YR9QmeqSEYvelpjqAZ7JbGw= X-Received: by 2002:a7b:ce0c:: with SMTP id m12mr1382807wmc.117.1572303831985; Mon, 28 Oct 2019 16:03:51 -0700 (PDT) Received: from desk.local ([2a02:a03f:40ac:ce00:6dcd:e18f:2cd1:7611]) by smtp.gmail.com with ESMTPSA id l4sm14504010wrf.46.2019.10.28.16.03.51 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 28 Oct 2019 16:03:51 -0700 (PDT) Date: Tue, 29 Oct 2019 00:03:50 +0100 From: Luc Van Oostenryck To: Joe Perches Cc: Miguel Ojeda , linux-sparse@vger.kernel.org, Andrew Morton , linux-kernel , clang-built-linux Subject: Re: [PATCH] compiler*.h: Add '__' prefix and suffix to all __attribute__ #defines Message-ID: <20191028230349.xlhm42ripxktx43y@desk.local> References: <7a15bc8ad7437dc3a044a4f9cd283500bd0b5f36.camel@perches.com> <19fd23e98bab65a1ee624445193bd2ed86108881.camel@perches.com> <20191028221523.vlzdk6dkcglxei6v@desk.local> <00c5ef125a4e62f538de7ddddc9d8fe7085794a3.camel@perches.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <00c5ef125a4e62f538de7ddddc9d8fe7085794a3.camel@perches.com> User-Agent: NeoMutt/20180716 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Oct 28, 2019 at 03:28:17PM -0700, Joe Perches wrote: > 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__. Yes, indeed. The following shoud be squashed on top of your patch (not tested yet on linux side): -- Luc diff --git a/parse.c b/parse.c index 4464e2667..4b0a1566c 100644 --- a/parse.c +++ b/parse.c @@ -345,6 +345,7 @@ static struct symbol_op goto_op = { static struct symbol_op __context___op = { .statement = parse_context_statement, + .attribute = attribute_context, }; static struct symbol_op range_op = { @@ -537,6 +538,7 @@ static struct init_keyword { { "while", NS_KEYWORD, .op = &while_op }, { "do", NS_KEYWORD, .op = &do_op }, { "goto", NS_KEYWORD, .op = &goto_op }, + { "context", NS_KEYWORD, .op = &context_op }, { "__context__",NS_KEYWORD, .op = &__context___op }, { "__range__", NS_KEYWORD, .op = &range_op }, { "asm", NS_KEYWORD, .op = &asm_op }, @@ -560,8 +562,6 @@ static struct init_keyword { { "__bitwise__",NS_KEYWORD, MOD_BITWISE, .op = &attr_bitwise_op }, { "address_space",NS_KEYWORD, .op = &address_space_op }, { "__address_space__",NS_KEYWORD, .op = &address_space_op }, - { "context", NS_KEYWORD, .op = &context_op }, - { "__context__",NS_KEYWORD, .op = &context_op }, { "designated_init", NS_KEYWORD, .op = &designated_init_op }, { "__designated_init__", NS_KEYWORD, .op = &designated_init_op }, { "transparent_union", NS_KEYWORD, .op = &transparent_union_op },