Received: by 2002:a25:c593:0:0:0:0:0 with SMTP id v141csp715245ybe; Thu, 5 Sep 2019 04:59:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqwCPKWTlHeYE/KHdRgfbTycesH0K0M1tmfD4iCnPa74v9F/1hGw9jR4lwboylXIk+IE9wMO X-Received: by 2002:a62:3681:: with SMTP id d123mr3273502pfa.147.1567684779866; Thu, 05 Sep 2019 04:59:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567684779; cv=none; d=google.com; s=arc-20160816; b=pi19ANJPC5lgjznplwd8ikOGIcg9ubyALW/ac9puDh6z/A/O/mmPPgtQbIiCcTDMzf 1LP/iOiy+JeDnQBs0lYzU65iS7PnjbRuGWjrU7Oj0APVinn187L2mMO9NCqeaOmou0Lr rU9fnykWoEJvlYeTAuYUfu8bjJ66HW854aAqcBGVmolDhkJ5zDK7GIE7ar1FOLgGdJC3 Bsa+zn9MDUboY3d5YL4WsKIZ6VOF15kpfPyPqwSEi9/Nly/7XFjGi7eCAFWwtij9teo7 EGHzpEn0rotINa60D3i9gmmw0xKtzGyz+1ZqRt735HUUVZfjYAcPmFGR5WOev9QIDh++ 283w== 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; bh=TY/VAMXSgKUK1/PqoRLKLXcdBHJ5xdp8p/A6hRUlgeQ=; b=aLRoodMTg8QXfZ6SeujmX+Wdjpj6pIIBJb+PWTBdaEZEZPsWfmik3hSvG4B4e+aeIR nF/5OeI2F5muYyEzgRkTviatTwpf47Re1fOIA9gIzPMjRNq8Ff+7X4RXW65hZvetYaGP tVHZ0jmunUn2p2GNR+ALW6HTQQwY6WJJOcG6VoGW8CqrZzKcko9CnF7+N4KMYP6z5nPf Kp2bGN5XuSDXu6qxehmibZH3uEiBd1+RyBTL5O2VCSe/1Hke0vlkIgU+jRoX+U9J+jaU SXvpOc4ZYKVhtpaol0rb09nlrDwsTBxjrhTbQszV6dcjfqrou54MoVASSKLSBNoNYJbu L4Ug== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@rasmusvillemoes.dk header.s=google header.b=Boo6OqKm; 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 f11si1789272pfn.167.2019.09.05.04.59.24; Thu, 05 Sep 2019 04:59:39 -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=Boo6OqKm; 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 S1732531AbfIEJpp (ORCPT + 99 others); Thu, 5 Sep 2019 05:45:45 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:36615 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1731806AbfIEJpo (ORCPT ); Thu, 5 Sep 2019 05:45:44 -0400 Received: by mail-lj1-f195.google.com with SMTP id l20so1765964ljj.3 for ; Thu, 05 Sep 2019 02:45:43 -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=TY/VAMXSgKUK1/PqoRLKLXcdBHJ5xdp8p/A6hRUlgeQ=; b=Boo6OqKmqCSgWJ+melMhgT/nvrdsiffQ9ZYYfkj/WSYGAGyflvROS/oKLnJpS9EVEn iKFLTWKI6iTzQDM56jO7C+RLGiPG3svRe/kgKCtYxjQ4YLMADZA7hs6q8QgdHeAeov3E GhwbanV0Lg+PHabWSmwMYWkOz71QRNdUm9dnM= 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=TY/VAMXSgKUK1/PqoRLKLXcdBHJ5xdp8p/A6hRUlgeQ=; b=Uyp8E0r5b7ItbdhdQLnuOYhuaszkGk2U9yCwEbES0Flr/a/90Veq1b6jg3Ic1jEf8c WKRkYPxZP5s2dPEwdKBtXhWHSuvBPlbTznuuLCaBmCF17awNF+H347KykXKo5AU9Xykm 9ERvMg5/g5Qkx0FJObaWzugDccMnC5nso/FItKVEsYp82rRIDk4s9XGPad3FBFJvcGkD wD1Z51BJIZxzBFmBW4d3cnU6Ky3BlhDA6vgBI173wCn8IjCPQToMva7g/4D0XdIlL12Z k0LAKReAMr4OiBLWks1pTkEqKicrmfWZOHj3NQ6cNs6my9Q99S+8JqxQoVzvEStpSCtF r04A== X-Gm-Message-State: APjAAAWlC+fVyDudWoMJtFboQ0Q6P/X1VAXA7WX4O1jxJ5bv9osMEOpi TX9bVXKkA7s8CuUFwz/RC7l/M9GBz5+v6LZglMg= X-Received: by 2002:a2e:9104:: with SMTP id m4mr1433674ljg.28.1567676742759; Thu, 05 Sep 2019 02:45:42 -0700 (PDT) Received: from [172.16.11.28] ([81.216.59.226]) by smtp.gmail.com with ESMTPSA id h5sm281820ljf.83.2019.09.05.02.45.41 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Thu, 05 Sep 2019 02:45:42 -0700 (PDT) Subject: Re: [PATCH v2 3/6] compiler_types.h: don't #define __inline To: Nick Desaulniers Cc: "maintainer:X86 ARCHITECTURE (32-BIT AND 64-BIT)" , LKML , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Nadav Amit , Linus Torvalds , Miguel Ojeda References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> <20190830231527.22304-1-linux@rasmusvillemoes.dk> <20190830231527.22304-4-linux@rasmusvillemoes.dk> From: Rasmus Villemoes Message-ID: Date: Thu, 5 Sep 2019 11:45:41 +0200 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.8.0 MIME-Version: 1.0 In-Reply-To: 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 05/09/2019 02.13, Nick Desaulniers wrote: > On Fri, Aug 30, 2019 at 4:15 PM Rasmus Villemoes > wrote: >> > > Besides patch 1 and 2 of this series, I also see: > Documentation/trace/tracepoint-analysis.rst > 318: : extern __inline void > __attribute__((__gnu_inline__, __always_inline__, _ > That seems to be copy-pasted output from some command, so I won't edit that. > scripts/kernel-doc > 1574: $prototype =~ s/^__inline +//; That one can indeed go once all uses of __inline in the source code is gone. >> The exception is include/acpi/platform/acintel.h. However, that header >> is only included when using the intel compiler (does anybody actually >> build the kernel with that?), and the ACPI_INLINE macro is only used > > In my effort to make the kernel slightly more compiler-portable, I > have not yet found anyone building with ICC. I would love to be > proven wrong. Let me go ask some of my Intel friends. Yeah, the whole compiler-attributes.h only deal with gcc and clang, and a lot of the attributes are unconditionally defined, so I assume either ICC implements them all, or perhaps simply ignores (unknown) attributes? It would be lovely if we could just throw out all the icc stuff. >> in the definition of utterly trivial stub functions, where I doubt a > > See: > include/acpi/platform/acenv.h > 146 #elif defined(__INTEL_COMPILER) > 147 #include > >> small change of semantics (lack of __gnu_inline) changes anything. > > include/acpi/platform/acintel.h > 25:#define ACPI_INLINE __inline > include/acpi/platform/acgcc.h > 29:#define ACPI_INLINE __inline__ > > lol wut > > I mean, you just would have to change that one line in > include/acpi/platform/acintel.h, right? I'd sign off on this patch > with such a patch added to the series. I'm not sure what you mean. Just switch the above __inline to inline? It's annoying not being able to test it. Rasmus