Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp833875imm; Fri, 31 Aug 2018 14:51:29 -0700 (PDT) X-Google-Smtp-Source: ANB0VdafYUgWeivLTT7EEydcfEbgDE0PUFnWZp/5u2w+AoQ27Vk61ZNOnnkm6sG9utRzxBSBlw+l X-Received: by 2002:a63:dc53:: with SMTP id f19-v6mr16149793pgj.56.1535752289724; Fri, 31 Aug 2018 14:51:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535752289; cv=none; d=google.com; s=arc-20160816; b=zUE7B7aTJHS9MYu8HyLC6uboefcNIRNQ7HKQK3qnARkgCOd2lomJdfVbJPM2YUCrKx gg5Vth+u/fzS5bZI+Ses+z85FSVNcP8/hwMD8D4B3ek4CL7e/KoL2k5FoBqeOJmx9KnV m4rRaJo7q2SzFfMI85y1X95HwYgAJyPjZcmN8AkWwGsdVnBU9YOCNZfyACgyWdlAyDRj B3kojoTqnMZYcy2HyOf4kdEBX+C3bZzSJnG4428QzMYgasOeEOtS+d+ymoHz7iS6gTYu jAhErpU7qRelU+mugw+ga36KgWjw1jPZvJRWPltCpkdFL+eUjJg6r0RIOiMH9CfQvNgx W56A== 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 :content-language:in-reply-to:mime-version:user-agent:date :message-id:from:references:cc:to:subject:dkim-signature :arc-authentication-results; bh=aDPzYl/zAckhW7P5zdoYeVDnF3hCthJzwyQo2YtEgZo=; b=08YCRP8H66HDfvItrlSrLd+JB4kiSSz/+LMBTwKSycASDNR36Jl9nP3dOWAsKI2pKu 9XDrCgqf4gydKXi2U9K69v2P6mx0yAHFoAhRc6v2qOOPVBJwoe693AlSwoXK+eYT1GhI qiw/5V1C1njn+8USIRQ1SQa2idgso/QPFtK/FFrjs6UDUUytOxqQG3PLTHBMtg6iDxtU DDazq7MAMbpjewnJqhYG1vnov4OrfmoM5XwIy42okCKO1fd1S5v5m50tmjdbsZ3CfGMx Fr66Jd8QELe4XsEAbzNiXydosWcZeK+KWa4eC77OKPYGTdIEgR+ylG1P4ac/8X4cMm+m A+vA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=HHYmPZzV; 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 x7-v6si10882378pga.348.2018.08.31.14.51.03; Fri, 31 Aug 2018 14:51:29 -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=@rasmusvillemoes.dk header.s=google header.b=HHYmPZzV; 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 S1727466AbeIAB6l (ORCPT + 99 others); Fri, 31 Aug 2018 21:58:41 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:47100 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726915AbeIAB6k (ORCPT ); Fri, 31 Aug 2018 21:58:40 -0400 Received: by mail-lj1-f195.google.com with SMTP id 203-v6so11134271ljj.13 for ; Fri, 31 Aug 2018 14:49:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=rasmusvillemoes.dk; s=google; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=aDPzYl/zAckhW7P5zdoYeVDnF3hCthJzwyQo2YtEgZo=; b=HHYmPZzVcGFAo4EuF64/1wkoF24ylykwrOP+3MHV6BrsdBEvjgBxi+IgbNuAqtfmJs fWVgdj/WYXtQvP12qcEMR+/WX0YOPUA0NuItROPvyqBc6ehXpWTAb/1dryIgsZisJufd p/hPwRuCXjzbS9lr9hYNlp91BVh3+7wxm2BmM= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=aDPzYl/zAckhW7P5zdoYeVDnF3hCthJzwyQo2YtEgZo=; b=tro6hupVm/cn+OorHmc/Da/3tQ+L2C9mCd7009RpMMOC+oC2Lbnj6ekkyYNLuWGPMT nO19ZyofmhDUX1y4DXouHmXU/kGwSP9TSesblEeSorEXoFR2EB7c2ZtDp2e7sjrHltFp fYUtOo16VvBjRKkgi4da9BY4Zlod5fSTzUaz5tF2bfzQA0SPMwPKcRQ0IOvsYLMf8TTB jujGNO2onPa4Qg+Z0z5GT9yY7W5aCIse3E7lBkmGlOVtLmBQUq+G5MuEgVe23Q4sZ8Ya rsZ+tNO4An0butIxpiXvhIbzrThqgJoRvJLZG9VuUZ8TFJhMB+JDlDr6LLP6nO6/uets 3qxQ== X-Gm-Message-State: APzg51BtDDO4UVF+7/qezYN7MmUYKC2p17TxgwCDwTMZB+f6J7FBRMIz DNGSRYvug9VngeA8HQ3xBQ30CQ== X-Received: by 2002:a2e:9095:: with SMTP id l21-v6mr12094773ljg.15.1535752154463; Fri, 31 Aug 2018 14:49:14 -0700 (PDT) Received: from [192.168.0.189] (dhcp-5-186-114-212.cgn.ip.fibianet.dk. [5.186.114.212]) by smtp.gmail.com with ESMTPSA id p28-v6sm1988124ljp.90.2018.08.31.14.49.12 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Fri, 31 Aug 2018 14:49:13 -0700 (PDT) Subject: Re: [PATCH 2/7] Compiler Attributes: use the no-underscores syntax To: Miguel Ojeda , Linus Torvalds Cc: linux-kernel@vger.kernel.org, Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , Nick Desaulniers References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> <20180831170514.24665-2-miguel.ojeda.sandonis@gmail.com> From: Rasmus Villemoes Message-ID: <0a8588f3-929a-608f-1fdc-e24b90e6b59b@rasmusvillemoes.dk> Date: Fri, 31 Aug 2018 23:49:11 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.9.1 MIME-Version: 1.0 In-Reply-To: <20180831170514.24665-2-miguel.ojeda.sandonis@gmail.com> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 2018-08-31 19:05, Miguel Ojeda wrote: > The attribute syntax optionally allows to surround attribute names > with "__" in order to avoid collisions with macros of the same name > (see https://gcc.gnu.org/onlinedocs/gcc/Attribute-Syntax.html). > > This homogenizes all attributes to use the syntax without underscores. At the risk of bikeshedding, why not the other way around, exactly because of what you write above? We have convenience macros anyway, so those verbose leading/trailing underscores would only be in compiler*.h, and some of the attribute names are common words that can appear as #defines. E.g. error is defined drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c ; if that used a BUILD_BUG_ON somewhere, the #define __compiletime_error(message) __attribute__((error(message))) would break. Rasmus