Received: by 2002:a25:824b:0:0:0:0:0 with SMTP id d11csp805727ybn; Wed, 2 Oct 2019 06:31:42 -0700 (PDT) X-Google-Smtp-Source: APXvYqyhHg1Dr2rxxhfIP7qs2y91tMviZs4nDsinfoQCAAScGtI1r3V7+7iWsmvDr7XsPcmkWlSC X-Received: by 2002:a50:a57d:: with SMTP id z58mr3797845edb.115.1570023101925; Wed, 02 Oct 2019 06:31:41 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1570023101; cv=none; d=google.com; s=arc-20160816; b=QHYzQfsQ6bpt1gIMRuacS5s0Acv2sKzSnlmLlkI595ZVRY39Uvvua8C9Em7VwoJPqZ VL8v5Oi7YG5O6TA16g+jQ5pFhQa9MhfbPq1NviqzI7JQ9eF6pvgj4DxFI4QPUXCLuLJC vrL5zWm+273+VmaLygMRWqs7T5+5wCJ6s2fFPiQPxHvk8VY3N3E/ssSe2nhJG2nh0R2r o1eCRJlERxDRYuC2qcMy8dMsKEjysI9XFMA1OKGXwP12mSIsNTGmspGQZY8CUPj+MzEO Ec6E7MOOqilAKe8yV+HeYUGGTpp9LjzgULKUgsKbSzsIxvyKdOIjOLrqSPUlqXO3Wh+P 9V0g== 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:dkim-filter; bh=naK8kM5SZ9FnjhI80E7EMP71Bdn5aGS80ykKGF8bPWg=; b=iFVzMhTlFDhX4FIqoNPzVRIMzL58r3UoVnNxeKEBCH5J05i26JkL6HpIoxyKHcbEmP oqWKHjNmcPBUCffhFblRvrFAhmPg3qklOFUQnJIzP7v9eLgcfD2hvnV3dGoSvmLkG9rc 8h7hwgIofYAiL8ieRt/GIqDaelIc8zO0bL9tk0ew0fm0AjlJ1iV/ZHejZ3/ooFK0prGT p6QFMJU6smSGlDZPbFHCyC7JJh3D3Lzq/Xtuu6Jij7C83nxTs4/utymLTw8gIbKnX4zD 0ccoeKO7+7Mx6rwAoVD/z27oupvWEoFCdFOvtJGe44YOiE2j2QAfsCpyTjTazcH4pGC8 voJw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=e7KQ0Gmm; 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 v13si11325654eds.375.2019.10.02.06.30.53; Wed, 02 Oct 2019 06:31:41 -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=@nifty.com header.s=dec2015msa header.b=e7KQ0Gmm; 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 S1726864AbfJBNCj (ORCPT + 99 others); Wed, 2 Oct 2019 09:02:39 -0400 Received: from conssluserg-05.nifty.com ([210.131.2.90]:47728 "EHLO conssluserg-05.nifty.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726239AbfJBNCj (ORCPT ); Wed, 2 Oct 2019 09:02:39 -0400 Received: from mail-vs1-f46.google.com (mail-vs1-f46.google.com [209.85.217.46]) (authenticated) by conssluserg-05.nifty.com with ESMTP id x92D2SBY012647 for ; Wed, 2 Oct 2019 22:02:29 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-05.nifty.com x92D2SBY012647 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1570021349; bh=naK8kM5SZ9FnjhI80E7EMP71Bdn5aGS80ykKGF8bPWg=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=e7KQ0GmmCZL4ZLkjn8OPMjFQ5lmCbzPXwIXK6xTxKl14LwpoQNqMleFaTFj1rLeOA wHEL3TgUrgw+Lp5+AfzY4Ez0VrKV7qfd9BYSaQcg4QOzFSrmuKe4PK2o01ZOUmiJsW 0IyFKjuiEYsEfXH+CbwjwVH1V4Hl8CIDXQmYaxY/0InCEVucoN39caI/luT2IeYvm1 HzgNp70mA4sEdEUAza1M1CF3GZm3MaaOd3Utoqw+H+1xGB0fOsuzeIhUkD4JDLDr55 vqrYKqURwSYL7bsjZ6ZbDK+axBeYaaGTM8lEuXzUqkLtrgnYYGzgSsNjIbI6kzHvxg hhr2LS1aPYtlQ== X-Nifty-SrcIP: [209.85.217.46] Received: by mail-vs1-f46.google.com with SMTP id d3so11861503vsr.1 for ; Wed, 02 Oct 2019 06:02:29 -0700 (PDT) X-Gm-Message-State: APjAAAW7aqVS6HQOES9yqKhgP1kbKJZm7b/gqBB0f8+0z/yoHgiIZC6R XHJw2xhz/v60zBBGmnaoM5AZxQeVUfl7/zdkliM= X-Received: by 2002:a67:1a41:: with SMTP id a62mr1776452vsa.54.1570021348040; Wed, 02 Oct 2019 06:02:28 -0700 (PDT) MIME-Version: 1.0 References: <20191001083701.27207-1-yamada.masahiro@socionext.com> In-Reply-To: From: Masahiro Yamada Date: Wed, 2 Oct 2019 22:01:51 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH v2] ARM: add __always_inline to functions called from __get_user_check() To: Nick Desaulniers Cc: Kate Stewart , Arnd Bergmann , Enrico Weigelt , Vincent Whitchurch , Allison Randal , Russell King , Stefan Agner , LKML , Russell King , Linux ARM , Greg Kroah-Hartman , Olof Johansson , Thomas Gleixner , Julien Thierry , Linus Torvalds , Nicolas Saenz Julienne 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 Hi Nick, On Wed, Oct 2, 2019 at 2:04 AM Nick Desaulniers wrote: > > Since that commit, all architectures can enable CONFIG_OPTIMIZE_INLINING. > > So, __always_inline is now the only guaranteed way of forcible inlining. > > No, the C preprocessor is the only guaranteed way of inlining. I do not think this is fatal if I understood this correctly: https://lore.kernel.org/patchwork/patch/1122097/#1331784 For GCC, we at least get a warning if a function with __always_inline is not inlined. I am fine with adding -Werror=attributes to the top Makefile (unless we have unpleasant side-effects). You filed the bug for Clang, and hopefully it will be OK in the future releases? -- Best Regards Masahiro Yamada