Received: by 2002:ac0:a5a6:0:0:0:0:0 with SMTP id m35-v6csp19227imm; Fri, 31 Aug 2018 15:43:24 -0700 (PDT) X-Google-Smtp-Source: ANB0Vdamg+NGiXq3Ql4DIqc/GCILEwAm/TPDei2TZ3MgBv9EnOUb5olWJ1A/QOT3mx5bHEEzsf0a X-Received: by 2002:a17:902:261:: with SMTP id 88-v6mr17412963plc.331.1535755404052; Fri, 31 Aug 2018 15:43:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1535755404; cv=none; d=google.com; s=arc-20160816; b=ImakuTyiJjpOyUkHk+iRjcHdFK/AxzVgkpayO3NKJsXg4xXfQCEGcBODw00EEveNje ieAX48TrwKU2TQcKHzbAT3hgkoCj7ovw6ZfzsKcUu19EWMwmSQkIBuWuQZFE2eHjNNZy PDW5k48jkDIKr1xxDc7lrg1yweB+hNQabz9eusHXEX48XEqBUyNQBg1bcawkVzGLNllE iYX05hsZGsVWRy9r1CfSK+//2my3vscvWBkupqEc9rsNPEcny7uIZFnxB6xzumOP8xqf uPaCToSuiSkpCo+3lCBSsJRXyR/K0A4+oqbKjyKrDkmTz6GuDF2tEKyhjQYuBML5Y28T rlZQ== 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:cc:to:subject :message-id:date:from:references:in-reply-to:mime-version :dkim-signature:arc-authentication-results; bh=ysT38iRd7Xjc2D+93950208mkURZP2Ef+Z769S1Muwo=; b=Lt+8qepqh0pEblKgOY7vc7HZoCMfZauAdVS9yH8O5+otCuZ0CfJ6eQGuF3zci9s5n+ 0Zg7iN1Z6YKgs9vaT6d5FKXW3xDsx1QFH17efffO7cD5LTFNdhY49IB9R9MISWn+iD3f hhJ6YbCfy2IxM1M2pqaMjq9kK/7qgtZ82cJJE2+3PcGDsORHOVe9e6nwujmfX0Jmf9Zx z5BDHOgtkNe861VYsMJOIm3kaVsjBXVrSPrlxxFBPdmzwOU5q5C9mnaW0Vzde2sBGlaJ /o5++tj7+EYAR+VN0Tis761vFCVjiY4LmqRIT6+NZEcCfCJisijoB/dHdqWl0xhBjmfC AipQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=UhVWqKU0; 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 a24-v6si10701182pgh.357.2018.08.31.15.43.09; Fri, 31 Aug 2018 15:43:24 -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=UhVWqKU0; 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 S1727565AbeIACuv (ORCPT + 99 others); Fri, 31 Aug 2018 22:50:51 -0400 Received: from mail-qk1-f193.google.com ([209.85.222.193]:44835 "EHLO mail-qk1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727258AbeIACuu (ORCPT ); Fri, 31 Aug 2018 22:50:50 -0400 Received: by mail-qk1-f193.google.com with SMTP id d131-v6so2428475qke.11 for ; Fri, 31 Aug 2018 15:41:14 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=ysT38iRd7Xjc2D+93950208mkURZP2Ef+Z769S1Muwo=; b=UhVWqKU0ZJZLcREbE0I7m3yc6LhPxBPq/biMlf+ykGQp1DdeSoLn0zpNXjdEDOT1l3 brqMjz2zBfNaY0CNYwwnOWlFfxYB5p63dZain9sLvQEe96fcRkW6Jz8viTYOEM+jkMzR bO8ve7kB0btrJpDHA8YZ/ztzmggU7zF9dPXF58M3J8G7JflBVUoVDJEaei37gwb8lgui +g2Jx0QY34aGBWC4XhMEx7LYeHQxFfbh+44up87oAgVHZCl8H953RzfJ2ivllvrppl1A ZfubHgC0SAM8BjCPG1xeb0Qaes14328lVucGspLJI9PjNpYodTpODUwmyrurCz+XtEIA GWmA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=ysT38iRd7Xjc2D+93950208mkURZP2Ef+Z769S1Muwo=; b=JlXXXwNVoge1k0sZP1l8r3BLcVC8u3nJkOMb9iM1c80kKV5/EE93whvB0J5Kgueteu AvJNQtELYr0U5A1aONvZ3bjBd6q9EzFBEqt9RPP8XxpsEC/QB+JPz/lixYwz+dUVG+Hw 7TDBPA84ln7kKuoWrwj1CNN9gMuAKppDQ3Rm1MqwPmgjyHN1vaaE536KaV4YlYapGOY4 oPSIYEciDwGSRvjQIBZGqH5pTBzyGyOukW0swFwjjTF9oHlV0vOGSGUojGBBPYUSh2ZF 1BfyHze7mkkvx9c+K2lR6sMDBXHJbkckcqowjSmmrFvqKm3MPlhFgUyBz/kyigssM+H2 wANQ== X-Gm-Message-State: APzg51B8mHRsQUdaXkSXvovfqSgkg0HQA+1NYuhOKjdYs+Vr4Ud9QtTt suttvu+FajvAjiVoNALkbDS+W3dDzBmXjjSkbRU= X-Received: by 2002:ae9:e118:: with SMTP id g24-v6mr2568879qkm.306.1535755274571; Fri, 31 Aug 2018 15:41:14 -0700 (PDT) MIME-Version: 1.0 Received: by 2002:aed:2291:0:0:0:0:0 with HTTP; Fri, 31 Aug 2018 15:40:54 -0700 (PDT) In-Reply-To: References: <20180831170514.24665-1-miguel.ojeda.sandonis@gmail.com> <20180831170514.24665-2-miguel.ojeda.sandonis@gmail.com> <0a8588f3-929a-608f-1fdc-e24b90e6b59b@rasmusvillemoes.dk> From: Miguel Ojeda Date: Sat, 1 Sep 2018 00:40:54 +0200 Message-ID: Subject: Re: [PATCH 2/7] Compiler Attributes: use the no-underscores syntax To: Rasmus Villemoes Cc: Linus Torvalds , linux-kernel , Eli Friedman , Christopher Li , Kees Cook , Ingo Molnar , Geert Uytterhoeven , Arnd Bergmann , Greg Kroah-Hartman , Masahiro Yamada , Joe Perches , Dominique Martinet , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Sat, Sep 1, 2018 at 12:10 AM, Miguel Ojeda wrote: > arch/parisc/boot/compressed/misc.c:#define malloc malloc_gzip > include/linux/decompress/mm.h:#define malloc(a) kmalloc(a, GFP_KERNEL) > lib/inflate.c:#define malloc(a) kmalloc(a, GFP_KERNEL) > include/linux/compiler_types.h:#define noinline_for_stack noinline > include/linux/raid/pq.h:#define noinline __attribute__((noinline)) > tools/include/linux/compiler.h:#define noinline > arch/mips/sgi-ip27/ip27-reset.c:#define noreturn while(1); A better list, searching for all attributes used anywhere in the kernel: git grep -E '^\s*#define\s+(address_space|alias|aligned|always_inline|assum= e_aligned|bitwise|bnd_legacy|cold|common|const|constructor|context|deprecat= ed|designated_init|destructor|error|externally_visible|flatten|force|format= |format|gnu_inline|hot|hotpatch|indirect_branch|latent_entropy|long_call|ma= lloc|may_alias|mode|model|naked|nocast|noclone|noderef|noinline|no_instrume= nt_function|nonnull|no_randomize_layout|noreturn|no_sanitize_address|optimi= ze|packed|pure|randomize_layout|regparm|require_context|safe|section|syscal= l_linkage|target|tls_model|unused|used|user|vector_size|visibility|warning|= warn_unused_result|weak)(\(|\s|$)' arch/mips/sgi-ip27/ip27-reset.c:#define noreturn while(1); /* Silence gcc. */ arch/parisc/boot/compressed/misc.c:#define malloc malloc_gzip arch/powerpc/xmon/ansidecl.h:#define const drivers/gpu/drm/nouveau/nvkm/subdev/bios/init.c:#define error(fmt, args...) bioslog(ERROR, fmt, ##args) include/linux/compiler_attributes.h:#define noinline __attribute__((noinline)) include/linux/decompress/mm.h:#define malloc(a) kmalloc(a, GFP_KERNEL) include/linux/raid/pq.h:#define noinline __attribute__((noinline)) lib/inflate.c:#define malloc(a) kmalloc(a, GFP_KERNEL) tools/include/linux/compiler-gcc.h:#define noinline __attribute__((noinline)) tools/include/linux/compiler.h:#define noinline tools/testing/selftests/futex/include/logging.h:#define error(message, err, args...) \ None of these should make a problem. And it would may avoid people using such common-name-macros in the future ;-) Cheers, Miguel