Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp1393086imu; Thu, 13 Dec 2018 14:26:40 -0800 (PST) X-Google-Smtp-Source: AFSGD/UAjHornOAfKCSJNVayrKC0JmCFm3gNgE14A49kBG9kk9f3GfNWK0wjgZyKUcFCz37MDxJW X-Received: by 2002:a17:902:9887:: with SMTP id s7mr528294plp.199.1544740000732; Thu, 13 Dec 2018 14:26:40 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544740000; cv=none; d=google.com; s=arc-20160816; b=qSMOXtLFpNGRHKC8n+4Z5xwWNtsF6QvJPPJIOCBpznBPmRBDN0j590LwcpY3laV0CA TB8ZYBR1xyIyxsyf1TU+yOIL8V1NodPtw1OI9/vR6OEmsJ2kvYecL4gIO0wh8j74pZfe hTNUn8w47LUMNvWEEE6ci5sZvzDuZopRWz/jzUhu+IvWoTXMQxCxh5MDK8u/0as9UJwc 1guNyRyGrwTy64cjVA49yp6mEJ7gdJH1+cn4NPNYK4WcoFiFYDvl7PaG7vu7McITegF0 o2iMCym/OocTjKQICzvN+nOVYd3QqgbV1KrC8DGMLVtaUnxV6wQ9Sgl9Jhd1ey9eLnvY qJgA== 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:in-reply-to:references:mime-version :dkim-signature; bh=82G2s0eNg1Waw7tQy542Ln9rn5Nef2ejP4Ifav2gnPY=; b=kjb9+IC84xYYILGgCJwJWFJ4+qx5VKHMcTuYG0j8b4aycSKeK/3IWgUnj0BJrdu8dS 6NEnA+KNrJnZaNT7O43izx5RchdQdDjyOcK4PukjO9A9Ke59oCZjGefXKPokus/TEI1b NTA0rBv69cABmwKgSF2mh+L90qcuzt6RnCW44mByhk2YHu4b76aTVccp720EAuBUuUNl isc9xKJMID/jzrjitAts28qrYFQcUtplkm7rQ66ToXG7FJKMYEsc2WgQDvqbv3Aq0ew6 7nUlJy8olNcuncWpkNsYkia67CCZVgG2rxDL1q2GbpkIEQcx3gwGGhIQsgmn8ziqdO0E d6QA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=QX2QcFJ7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id g71si2426954pgc.419.2018.12.13.14.26.25; Thu, 13 Dec 2018 14:26:40 -0800 (PST) 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=@google.com header.s=20161025 header.b=QX2QcFJ7; 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=REJECT sp=REJECT dis=NONE) header.from=google.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1727572AbeLMWZ3 (ORCPT + 99 others); Thu, 13 Dec 2018 17:25:29 -0500 Received: from mail-pg1-f196.google.com ([209.85.215.196]:46100 "EHLO mail-pg1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726461AbeLMWZ3 (ORCPT ); Thu, 13 Dec 2018 17:25:29 -0500 Received: by mail-pg1-f196.google.com with SMTP id w7so1686804pgp.13 for ; Thu, 13 Dec 2018 14:25:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=82G2s0eNg1Waw7tQy542Ln9rn5Nef2ejP4Ifav2gnPY=; b=QX2QcFJ7EpUmdxlwczPHtencyswmaN9HO6RQ//j/ciI4KtAz74/CVjm5p0EXzvA6wE 556yjz8lrMXicg0NtamgFPabSpxQxH5XEfxyTdWyp1kxLMmnRbj7KI+U2q0kV48dI2Rx NeJWHOtr4RlAlANrYhUPA3ZgVg0ir68XhRQH3Wmh0lUvUdzeVRHPXDzSKJoBTBoKDIM9 JtUy4w502YzZ/ykB9fm5/mya5+dcX7S2kVaEEKHJcMyGSrhzBaLznvnv4s0w028iFIVD 16fUCb1g6oA5F9I3eebi9a8sB4OviQQ9RnTYK1SR85xxsm5pr//KnBDCaJAVgtMAtgyU Lvdg== 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:content-transfer-encoding; bh=82G2s0eNg1Waw7tQy542Ln9rn5Nef2ejP4Ifav2gnPY=; b=Hmo7D7NOFIVWfkmDd2ZZXJrXwAxL43f9QQQhJ60SZVuLziu7RTjfihMLz5YAY8VJdp JTsYCMTaJJ0D0buKjqVz0PAgRjQOkVOdlnQqyomI1QGESTMCdGd8LSNuDHZuXW3DINGE PYWiNhOvdxWaf8nr9LmJM8Ae8EzYbFDMIuziYedTvMgIbqICLzEl1wgRsNy+yLcv8O1d pTwPt1GVLshkabl8VZQ/ROOr+qz/AAqx2QuXWu22sV+E7m7N0NaT03fc0tgrIxkkNGMX 2zY3rN8LkznYvYMngrubPx8YrHcWaI5rdbNKvLvXhTsdvA3TCQsLYFR+d34aBlZthH/O iVpg== X-Gm-Message-State: AA+aEWZEr1RJ/6slCxt9o5rQ6TmDdThe9nGOUr8U6PnmNjE2tU+Ckhq4 XY1/z4L9dhk5iakLQQrTpOq1NQOPfgnlArSeskvZXQ== X-Received: by 2002:a63:e156:: with SMTP id h22mr505371pgk.255.1544739928397; Thu, 13 Dec 2018 14:25:28 -0800 (PST) MIME-Version: 1.0 References: <20181209032715.3466040-1-liuxiaozhou@bytedance.com> In-Reply-To: From: Nick Desaulniers Date: Thu, 13 Dec 2018 14:25:17 -0800 Message-ID: Subject: Re: [PATCH v2] Compiler Attributes: don't pollute userspace with macro definitions To: Miguel Ojeda Cc: liuxiaozhou@bytedance.com, Greg KH , Masahiro Yamada , Luc Van Oostenryck , paul.burton@mips.com, Arnd Bergmann , LKML , Linus Torvalds 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 >> compiling error >> showing "unknown type name =E2=80=98__gnu_inline=E2=80=99" will pop up, = if userspace >> somehow includes . Oops. > If not, I can pick it up in compiler-attributes tree linux-next. That's probably the best, unless we'd like this fix in mainline ASAP? Moving the __KERNEL__ guard should not affect the kernel, only what userspace sees. __gnu_inline only affects which implementation/definition you get, so even if userspace doesn't know what the kernel's inline is redefined to, it should not matter as userspace should only ever care about the function signature, which does not change between our definitions of inline. Acked-by: Nick Desaulniers --=20 Thanks, ~Nick Desaulniers