Received: by 2002:ad5:474a:0:0:0:0:0 with SMTP id i10csp2365543imu; Fri, 14 Dec 2018 09:49:24 -0800 (PST) X-Google-Smtp-Source: AFSGD/UgohKJgxiggPI2htCyAVgTMGX0YwPbTAxN80045/gP55QsK2F8Siu2KIDKvdgt4Ptx9RmY X-Received: by 2002:a17:902:6946:: with SMTP id k6mr3806100plt.101.1544809764082; Fri, 14 Dec 2018 09:49:24 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1544809764; cv=none; d=google.com; s=arc-20160816; b=kgViw0FK7Oohx4Wf5O0Q9w2jdhgFGc4aUDhVKZTdAl8djbxDk7PgsNaxpQuYlGZriv 0xLP4Aha4cyv4rPbrpmn+t8hpfzYOZX9iwK7NpwGLOD8kJGmRg2Mtladc/UoBASmPQq4 PajfMIjNKN8gl3wymE7wz5Qgzow66H7E2yehku6buDfoLRH9HyX4x5glhbvxztJfK/BJ giTloTQaFnRrB+R8b9JQPU1YxqJBz926CVizeH920c23TthiAobiMgtKAZjPicj/C7Xt ru3S8Xf7p8zrvxm4JIU13wWANZIexO0+vmV4EjXoZRkqLrd4+RxiU6ZSmtdBu43hjMxS 5dOw== 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=tBuM+iA74sNmdKQ2saKqD/yWLGef6WJ3FVLzLX5jBo8=; b=RdENdZ7mqGVgoNXrXXiQ4so04YNfbaLWhpbD95cjO8W8udtHwxJzKWh0QkfhMYOh6V jwFGu+IZAv9ENk7PS74LAbprCczhpb3zjaAJ7ceFPNo0wH1CxNoj6eHzgOE0POzO59Xi 2099IgNOTEw0G1ImSzsSuQFWt0aVyrAZI9HqdW3xLvVnwoGzfEVunsCn8HCautRgZGOX gk6ow9a1o47tU6ycnCP2/DjDZTlRJnasMz6B7oUmQcVCOPPoPUw3g4GGWert1Ys8GI7q K/qSfAMFq0plhpK9HOZphJJQUh9hb4LurhO1Qg2GJt9d+1nrfzVQ3AYDpyD9hVFlVCS5 U2QQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@google.com header.s=20161025 header.b=XJtXuv6P; 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 e4si4400177pgl.570.2018.12.14.09.49.07; Fri, 14 Dec 2018 09:49:24 -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=XJtXuv6P; 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 S1730468AbeLNRrp (ORCPT + 99 others); Fri, 14 Dec 2018 12:47:45 -0500 Received: from mail-pg1-f193.google.com ([209.85.215.193]:43715 "EHLO mail-pg1-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729341AbeLNRrp (ORCPT ); Fri, 14 Dec 2018 12:47:45 -0500 Received: by mail-pg1-f193.google.com with SMTP id v28so3003499pgk.10 for ; Fri, 14 Dec 2018 09:47:44 -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; bh=tBuM+iA74sNmdKQ2saKqD/yWLGef6WJ3FVLzLX5jBo8=; b=XJtXuv6P45e8uDNMnjoFeRqiFbaKO0tl94qP0H3J7IrDia7TBeBMqsQTMUpUR/s6ne PHl3B2Z8ZwnJq6ydlUYjiXEGuFilQ6G/KfrXyWvCGTga+IhMqKtlkCgJBKmNGxw4q3MS OdB+5sdDzonuYDN42h7zUP4d/IJGHdTuwVY06XghHxi01hCCnoG9Gmqu1jiwYsZj4W2X nXbcg/xtQWmo5X+U2gqyD7kaajwjugTkv4mLaW7toH64ccEe5+8dhfg2viu0eFS/eYBe EG/IghQcIoM+7ViZB0sRurG8+v3EF1VC1v0fadliOYPwFbBhukWr9+uQUIhlxlW6J7Md ceiA== 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=tBuM+iA74sNmdKQ2saKqD/yWLGef6WJ3FVLzLX5jBo8=; b=bJfBotUfcNUWcFsDZqnC6zfkxS7WVVO5ZJCs+hCTjyfGPRkjLO0hLlyMXLIv6v9wPV 2TrjWRUw+3YeMEpsK6Hbm9kLiZxSyS41Of0kD/6BMex/lGaK6nfu98f7v6pAO3iPr4qZ oxbV3IMe8S2qyXNvkr6Ae704KOpTHQSus3EUu0fNs7A52705GtvMoqIYj+okhy3nA8E5 cp2jcF1tI49wHcaA+oUsXtDlTXR6yDW0IReuEuVwSgI5Ghp6FGRimztcHeoFRj2wSTp7 IBm3im1dQS3ezWrJArvdz8f/44Ey0xN91QIUkXdIAvW15DymalJ157I/9h/ydonCzQ7x EH9Q== X-Gm-Message-State: AA+aEWZnP+UO1sDizMiauehvHqWlJV5ZxV4007VJ/zKl6+jqBW2MErhg HVXSy1P0Q05dFOS66qRDh/fYRVPndnC+xPQEL+lTNg== X-Received: by 2002:a62:2c81:: with SMTP id s123mr3666081pfs.174.1544809664268; Fri, 14 Dec 2018 09:47:44 -0800 (PST) MIME-Version: 1.0 References: <20181209032715.3466040-1-liuxiaozhou@bytedance.com> In-Reply-To: From: Nick Desaulniers Date: Fri, 14 Dec 2018 09:47:33 -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" Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Dec 14, 2018 at 2:02 AM Miguel Ojeda wrote: > > On Thu, Dec 13, 2018 at 11:25 PM Nick Desaulniers > wrote: > > > > 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. > > Hm... I am unsure what you mean by this. Were you replying to me or to > the original patch? Justifying my thoughts for ack'ing the original patch. -- Thanks, ~Nick Desaulniers