Received: by 2002:a25:8b12:0:0:0:0:0 with SMTP id i18csp2509787ybl; Thu, 29 Aug 2019 09:07:39 -0700 (PDT) X-Google-Smtp-Source: APXvYqxpF809tcl1JfXR9usGRepauETEQwz4wIxlF1/1hId9P6oXFsUnSpcvz9sNvfpkO9nhU2yB X-Received: by 2002:a63:ff65:: with SMTP id s37mr8863797pgk.102.1567094858940; Thu, 29 Aug 2019 09:07:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1567094858; cv=none; d=google.com; s=arc-20160816; b=hHXHYbdzHBOSgloBtpJ4L+ziddaJ6hAF2L7fcvzWLcPFAHrv69ybFjc2ag9ANnKCBC ZwvVwn2CTMqXKifbADVF2eEEijsxzIJ8S2jOWKeaua7Y5/Lzb6lTGdgSbXVZaBYg5PNF um5FK3CKhGDdUeyWwbwdxklcxZa7oLPw3osvxzsALYICHcCk6OJdxp5oZLb+UaqoCbaB NbJr/yMeie456eNVbXUw0phiPADIUhLeYdGVZDiZ0q8aCV1AzTF8xhkOSZK4y660cN/5 TilyN9a9oF7OBNZM/gLm+5wBOwTPjCIRitNFan1l6UeN4dBkIh+L7IRcGLy5D+T2Tfir RjmA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:dkim-signature; bh=9Osc1mf7K5cBOA23NneEW30SjiiTDj6GNMsWDl0iOhg=; b=HWIA8pzmVf8B/vDKIwIV5So9KHxaQRtSSAv9Mh3PgSQkFxfHdqSaq7KwfRkeczYRK3 bqwVe2GLB44ch8KlqerBfxnME/+h6lKv5av1eh8Zlbfyjclm2mOj2jC1fd97wn2Mq5fA vywYJx6SEvkp6bfkOgWO10uMLm8w8vDd5siKg8AgCx8Sg38M6D2sB4PEgxidepTdVbch sOCZXUG8OXypD6Vpv/aX5gQd7Clc9KnYWcdMoHmpRRvPUhlZMcJpGpYa4LlNZW5+CiFy sITR1Mh1RvVRVd6yKRau4WOMbl0JL/QMk4rLUI3fsd7OryXIoPnWYJGd0njz1YK9We4p f0WA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linux-foundation.org header.s=google header.b=RlmSVgpn; 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 e9si3004690pff.18.2019.08.29.09.07.22; Thu, 29 Aug 2019 09:07:38 -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=@linux-foundation.org header.s=google header.b=RlmSVgpn; 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 S1727809AbfH2QF6 (ORCPT + 99 others); Thu, 29 Aug 2019 12:05:58 -0400 Received: from mail-lj1-f195.google.com ([209.85.208.195]:36909 "EHLO mail-lj1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726973AbfH2QF6 (ORCPT ); Thu, 29 Aug 2019 12:05:58 -0400 Received: by mail-lj1-f195.google.com with SMTP id t14so3601242lji.4 for ; Thu, 29 Aug 2019 09:05:57 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linux-foundation.org; s=google; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=9Osc1mf7K5cBOA23NneEW30SjiiTDj6GNMsWDl0iOhg=; b=RlmSVgpnb7UJ4wkvYHqk1Ep2+AI8vdz1gI6MoFUtgeFFWNRmVSSLZ8kRIVrm5WqpB0 4tWwJ8w/tVUNjabdqyuGVnc2HGJ8wmHIfk0V8RMUQYWavpgi4E5/gY3aYZnfhZ4PY7dB 3RDs8UGUbPykFjCkj5U9hXqWMTbHuKl6EyS84= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc; bh=9Osc1mf7K5cBOA23NneEW30SjiiTDj6GNMsWDl0iOhg=; b=P9DFbAdHB/xLAQlM6uJZexnoyNy4mgVigxE+O1KOnMDCsUU0Yad7vjZzWBpsBDLzhV nGMx02WpF7hnAsuRa0YaXrI/uISB3ddv5aoYNI8gV/4j2a4RPGnobjsFhrrawoOklSSL VT9lZexIbXJ0MIJYMnpCTKC1XkM0mPdMPoyXp/Fd/AiARecI14ZRwEHGJ1Bb7eEBavMW p2Jgc1IXUFzjPUfCF3Bv+ijbxNnHE+Dop8bWvP4K/Tfaj7T3SzS4XYbnLvIznYdoTDWx NcShsql7gcB8FSGV2kt3GqY3YbivF2fyIGsDejTmauOAnr7l3d8NupZccYLkDW9TQE+c 7SYg== X-Gm-Message-State: APjAAAUxzOKT4mbs9cxj1OAZY8YP71a3zC2a7K3l1Heg/QmpGUl9NPHV pQtB9ad+MABdMQ87c3ocOIqmFUTGg64= X-Received: by 2002:a2e:894d:: with SMTP id b13mr6002518ljk.38.1567094755863; Thu, 29 Aug 2019 09:05:55 -0700 (PDT) Received: from mail-lj1-f174.google.com (mail-lj1-f174.google.com. [209.85.208.174]) by smtp.gmail.com with ESMTPSA id o8sm407342ljc.49.2019.08.29.09.05.53 for (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 29 Aug 2019 09:05:54 -0700 (PDT) Received: by mail-lj1-f174.google.com with SMTP id f9so3523780ljc.13 for ; Thu, 29 Aug 2019 09:05:53 -0700 (PDT) X-Received: by 2002:a2e:9a84:: with SMTP id p4mr5907101lji.52.1567094752690; Thu, 29 Aug 2019 09:05:52 -0700 (PDT) MIME-Version: 1.0 References: <20190829083233.24162-1-linux@rasmusvillemoes.dk> In-Reply-To: <20190829083233.24162-1-linux@rasmusvillemoes.dk> From: Linus Torvalds Date: Thu, 29 Aug 2019 09:05:36 -0700 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [RFC PATCH 0/5] make use of gcc 9's "asm inline()" To: Rasmus Villemoes Cc: "the arch/x86 maintainers" , Linux List Kernel Mailing , Ingo Molnar , Thomas Gleixner , "H. Peter Anvin" , Nadav Amit , Miguel Ojeda , Nick Desaulniers Content-Type: text/plain; charset="UTF-8" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, Aug 29, 2019 at 1:32 AM Rasmus Villemoes wrote: > > But since we #define the identifier inline to attach some attributes, > we have to use the alternate spelling __inline__ of that > keyword. Unfortunately, we also currently #define that one (to > inline), so we first have to get rid of all (mis)uses of > __inline__. Hence the huge diffstat. Ugh. Not pretty, but I guess we're stuck with it. However, it worries me a bit that you excluide the UAPI headers where we still use "__inline__", and now the semantics of that will change for the kernel (for some odd gcc versions). I suspect we should just bite the bullet and you should do it to the uapi headers too. We already use "inline" in a lot of them, so it's not the case that we're using __inline__ because of some namespace issue, as far as I can tell. One option might be to just use "__inline" for the asm_inline thing. We have way fewer of those. That would make the noise much less for this patch series. Linus