Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp644091pxb; Thu, 17 Feb 2022 11:27:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJziDjtdxI8saYaMHGNBvXuSX1E0okY4p7Gjc9pRVezzc0Rsh1iPlKGVqgaUFRS7Bm5CyGL4 X-Received: by 2002:a17:902:b58d:b0:14d:3d38:2690 with SMTP id a13-20020a170902b58d00b0014d3d382690mr4140590pls.78.1645126077578; Thu, 17 Feb 2022 11:27:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645126077; cv=none; d=google.com; s=arc-20160816; b=UvUAiR79XPVhMEuaUYnouMmMweK18YNHptXgXT9ef7hNKCM19H8V79zvk+KHQke89I lffq6vCDG3nsCsCSWc6EpotQ/oogqeOKaMenbKKZFXOx2GYHlDXnYdNPCGwl5PfeHUXE yMx+unUAVzyzxI/5y/bqB9i8HkWEcSvL5+SDDOe5fayjAPOmL00UZz9R5hvBa6j5MRg8 pLuu1eT+PzKY3haVPxDyUrbDsFzp2YiIz8UkgOVfYNusK48Nj0revgSnAY69XGw4q9to fQ70dIwDn6XdCoZ8IgPJ8cBnTfW8HagLRN4UTkvHwBZI5J3DG2xr30HQCuh5xXZu5EGh D+8A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:cc:to:subject:message-id:date:from:in-reply-to :references:mime-version:dkim-signature:dkim-filter; bh=l1TyzWfQ0jAdhokclSQdnzp8UboMTXXAhan3iI6BUk4=; b=UtTIeHzMwHF8MoKawHtuD2bJZqKwdry44ZKjddgLtVDOTJQ/FFK5RIz6WgyjTS41Fc 3poSHIxOu3OvkY4LEBQ3BfKSubg2L5sr9ffMUS7i354SjLZAfEokDpOmQPU8u+rePVa7 k5C2DKcJAupJS13kg80nOYkb7ftH+IPgMbGfmFcrT7pkm6UtbpbmES/DinQ3Vry5YTfv UwXqUIo9tHYJ2cdM0IOlbwFAb6Z9kVZeQ9yyNNYQ7DdkoTqBj3IAaRgNoK/Et0FCpOrJ MX0DW8bcxaORuBvMzGmO4qSgJFwISgB8Rr13p3Vw6bkSfHK0lZqoEjDvWk3N70Ds49bu lGYA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=hvNZ4ikL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id 191si9098066pgb.287.2022.02.17.11.27.41; Thu, 17 Feb 2022 11:27:57 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; dkim=pass header.i=@nifty.com header.s=dec2015msa header.b=hvNZ4ikL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S243712AbiBQR2g (ORCPT + 99 others); Thu, 17 Feb 2022 12:28:36 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:54902 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S233104AbiBQR2f (ORCPT ); Thu, 17 Feb 2022 12:28:35 -0500 X-Greylist: delayed 4194 seconds by postgrey-1.37 at lindbergh.monkeyblade.net; Thu, 17 Feb 2022 09:28:20 PST Received: from conssluserg-03.nifty.com (conssluserg-03.nifty.com [210.131.2.82]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id C63B1255798; Thu, 17 Feb 2022 09:28:19 -0800 (PST) Received: from mail-pg1-f171.google.com (mail-pg1-f171.google.com [209.85.215.171]) (authenticated) by conssluserg-03.nifty.com with ESMTP id 21HHRuww006618; Fri, 18 Feb 2022 02:27:57 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conssluserg-03.nifty.com 21HHRuww006618 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1645118877; bh=l1TyzWfQ0jAdhokclSQdnzp8UboMTXXAhan3iI6BUk4=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=hvNZ4ikLbPjFV/y7ChTE5b8OQBL4g8ZAbtTOwQUZywEnlNF2G/aTi0H1hOhjyGN1C NHEvmztYFCF9Dc6V+hJ5X/wHyELb7nkaACM0wtDbd1+6U7R7+rDFLUXLtZq0w84U3W BVfybmzISX6N+vJbJd360lhJt+4BjRbSdwMcbxAFVXLN1dvr/KzBnHTTvkMEwi2rGw 1F0F3DqlPQseUBPJmjskaAJFRh4BWjbcpSq8s9JNDIlKwAPaNXW3e3v/K/zuxd+7Vj l04cKXOH+QyAL/gsJtSNW0MqjhMRjyrIRZpPCWh9tKNIq0WeSu5TcRpw/ib8raCV+x uk3hly0CQ39pQ== X-Nifty-SrcIP: [209.85.215.171] Received: by mail-pg1-f171.google.com with SMTP id q132so5607076pgq.7; Thu, 17 Feb 2022 09:27:57 -0800 (PST) X-Gm-Message-State: AOAM531kh4fpiuOKOs30sCiauRibhY7cr78lCmaAEcXo9f7aMZXkKJir g3WL8JHK2Mg4ZvUu6o6py3dA384kSBA95+sR4ik= X-Received: by 2002:a05:6a00:a01:b0:4cc:61e5:c548 with SMTP id p1-20020a056a000a0100b004cc61e5c548mr4081108pfh.68.1645118876247; Thu, 17 Feb 2022 09:27:56 -0800 (PST) MIME-Version: 1.0 References: <978951d76d8cb84bab347c7623bc163e9a038452.1645100305.git.christophe.leroy@csgroup.eu> <35bcd5df0fb546008ff4043dbea68836@AcuMS.aculab.com> <9b8ef186-c7fe-822c-35df-342c9e86cc88@csgroup.eu> <3c2b682a7d804b5e8749428b50342c82@AcuMS.aculab.com> <2e38265880db45afa96cfb51223f7418@AcuMS.aculab.com> In-Reply-To: <2e38265880db45afa96cfb51223f7418@AcuMS.aculab.com> From: Masahiro Yamada Date: Fri, 18 Feb 2022 02:27:16 +0900 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH net v3] net: Force inlining of checksum functions in net/checksum.h To: David Laight Cc: Christophe Leroy , "David S. Miller" , Jakub Kicinski , Andrew Morton , Ingo Molnar , Nick Desaulniers , "netdev@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , "linux-kernel@vger.kernel.org" Content-Type: text/plain; charset="UTF-8" X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_SOFTFAIL, T_SCC_BODY_TEXT_LINE autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Fri, Feb 18, 2022 at 1:49 AM David Laight wrote: > > From: Masahiro Yamada > > Sent: 17 February 2022 16:17 > ... > > No. Not that one. > > > > The commit you presumably want to revert is: > > > > a771f2b82aa2 ("[PATCH] Add a section about inlining to > > Documentation/CodingStyle") > > > > This is now referred to as "__always_inline disease", though. > > That description is largely fine. > > Inappropriate 'inline' ought to be removed. > Then 'inline' means - 'really do inline this'. You cannot change "static inline" to "static" in header files. If "static inline" meant __always_inline, there would be no way to negate it. That's why we need both inline and __always_inline. > Anyone remember massive 100+ line #defines being > used to get code inlined 'to make it faster'. > Sometimes being expanded several times in succession. > May have helped a 68020, but likely to be a loss on > modern cpu with large I-cache and slow memory. > > David > > - > Registered Address Lakeside, Bramley Road, Mount Farm, Milton Keynes, MK1 1PT, UK > Registration No: 1397386 (Wales) -- Best Regards Masahiro Yamada