Received: by 2002:a05:6a10:7420:0:0:0:0 with SMTP id hk32csp2019408pxb; Fri, 18 Feb 2022 23:25:59 -0800 (PST) X-Google-Smtp-Source: ABdhPJwrR/fqlB21FgXeZEVzqdbqejJVIfDI2BVFYRCVN1Twg1s3ishQmcN0fuqh5YbUr6kM7xHC X-Received: by 2002:a17:907:10d7:b0:6cf:1163:90bc with SMTP id rv23-20020a17090710d700b006cf116390bcmr9388168ejb.664.1645255559577; Fri, 18 Feb 2022 23:25:59 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1645255559; cv=none; d=google.com; s=arc-20160816; b=I0BSgGwB/sWquzzx/EqNFOeDssTNzVbYwldklhHy5OiF6cYX5XWceHlRZxColS08b/ G8nRgD61pYk7rQu2CLM4LvD5S21gMqWbQ3MSmUakRJ2EOI6ZX0ai+3SniBtdnLR4YC9K lSmvIKhN+EyDxMG2CmcB/QY8bRYZANzqU2wcKgaxKfJsXmzGx8OtpoWj83ypQdnK1Ms6 dcR4vLCj8xzuRnPY0YOSq6yMfkDHYS70Crmm0DPTutQlq2OBafZmd1qGZfCMB+JPDuWU X7wmj3j/7XJIqVxj3ZALft81uG4RGS/eL5lG02+xvT0FXTSUDEyTtHJct75n+Wn8Ngoi OVxA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:subject:cc:to:from:date :dkim-signature; bh=+S2A0TOvwCJqKZEf2n99ER8D0GRma+qu1vDI6jWof+k=; b=Ll/NwKZE5a6Mpc39eykY+q9uzqlDzN4fCyABu/+G6HXqyPCmD0QV7Ybi+k7oErfjeW yg+RDnuGtp3C1lkOnx/BK+023k27xQYKbCZLpxBaDxum30tIzvQDeG81vD/UZ0A57uvr BeYmp0FzrFzZO5N9PLNWdHAthkzHiXQRRFhZMBINF40zktA9pyrZ6uA4+vU8wLWkfZ0M VbYNngbYlOT8uCssKgMmCAUgEyrogQ8ONuOqlJaXvKiAJD1csb+KqgPwoV7sZ73hFr3x hFmT4CQNj61/EE38XPDaxk3HBIAdjzILa4SelThrnzdr48xEpFW1JcrUSDEyxNdea9op FaeQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b="17FGGI/Y"; 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id le9si5291518ejc.419.2022.02.18.23.25.22; Fri, 18 Feb 2022 23:25:59 -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=@networkplumber-org.20210112.gappssmtp.com header.s=20210112 header.b="17FGGI/Y"; 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 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235204AbiBRQ3l (ORCPT + 99 others); Fri, 18 Feb 2022 11:29:41 -0500 Received: from mxb-00190b01.gslb.pphosted.com ([23.128.96.19]:37456 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234373AbiBRQ3k (ORCPT ); Fri, 18 Feb 2022 11:29:40 -0500 Received: from mail-pl1-x633.google.com (mail-pl1-x633.google.com [IPv6:2607:f8b0:4864:20::633]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F2FEE527C8 for ; Fri, 18 Feb 2022 08:29:23 -0800 (PST) Received: by mail-pl1-x633.google.com with SMTP id i10so7582193plr.2 for ; Fri, 18 Feb 2022 08:29:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=networkplumber-org.20210112.gappssmtp.com; s=20210112; h=date:from:to:cc:subject:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=+S2A0TOvwCJqKZEf2n99ER8D0GRma+qu1vDI6jWof+k=; b=17FGGI/YNQ0KAFTAypdxgCTm9RsrQp5K+/cVxDpHxnSkxeVsiaSt9Ac07mjSXc13ZK h5Ktl0Ae9ERA3vumep+jO9/6crSymL4N2TdTM5DBCyniUTz322SOFXsEU2aB7M3NSZQp z5hdVjRJWawRVRC0hpmiGDUjVPj0CD4yz5GQBg6hUP2yFvgjq4iPANEEQRU+8mSBTiHQ A74gL4IMVRFT6lyj4iCaPqObqquNtP7bwR2C5I2kljvhaKHQ9gMBTIUNlISvXQcvzFwd VQmKQo8+Hfr3ClRpm9RFA9lJXxMQ8O/AZd5D3rPCYmee6i9hEsWNVIuVLJwzf83SOXO7 fY4A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=+S2A0TOvwCJqKZEf2n99ER8D0GRma+qu1vDI6jWof+k=; b=I2tOLYvcvUP0SD80LfAOJjnBOnUE8ArM2ojCLyxjXQUJnGZsv4asnvUcBplskGrcG9 Dy9+DGbh/QJfmk4ipqHWdTL2ehulDH9zZ7Px9O3en0gtsNx3eHwgvGddwwKiClPHkMvl 23swo+zaauvKZDhXpZiG5YB107TTheAarF5wdV292zqSiZyJJLxCHnVpV8JjnyxngHSm 7c7uW0syFfm5MBumfEiqK+kk+2/A7kms6gq7n1MVnJWG4/Q2XfnRXDQyx60/KP578BBo Ww5T7VGwQ2EbuhLxaZTvtiPyv2zKuhlR+362scoSCRBPYlivic5hL4FAkoFkZlcs0Cn6 X0Jg== X-Gm-Message-State: AOAM533mBs3BaX8mPgQkLRDFPJI2aB9XHxCygFoB/EbDrAdJNTbu+wUx ETS96pj12X5YApgGQ/WJMa610A== X-Received: by 2002:a17:90a:bb0d:b0:1b8:a958:543d with SMTP id u13-20020a17090abb0d00b001b8a958543dmr9142994pjr.51.1645201763446; Fri, 18 Feb 2022 08:29:23 -0800 (PST) Received: from hermes.local (204-195-112-199.wavecable.com. [204.195.112.199]) by smtp.gmail.com with ESMTPSA id f16sm3920555pfa.147.2022.02.18.08.29.22 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 18 Feb 2022 08:29:23 -0800 (PST) Date: Fri, 18 Feb 2022 08:29:20 -0800 From: Stephen Hemminger To: Segher Boessenkool Cc: Masahiro Yamada , David Laight , "netdev@vger.kernel.org" , Nick Desaulniers , "linux-kernel@vger.kernel.org" , Ingo Molnar , Jakub Kicinski , Andrew Morton , "linuxppc-dev@lists.ozlabs.org" , "David S. Miller" Subject: Re: [PATCH net v3] net: Force inlining of checksum functions in net/checksum.h Message-ID: <20220218082920.06d6b80f@hermes.local> In-Reply-To: <20220218121237.GQ614@gate.crashing.org> 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> <20220217180735.GM614@gate.crashing.org> <20220218121237.GQ614@gate.crashing.org> MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS, T_SCC_BODY_TEXT_LINE autolearn=ham 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, 18 Feb 2022 06:12:37 -0600 Segher Boessenkool wrote: > On Fri, Feb 18, 2022 at 10:35:48AM +0900, Masahiro Yamada wrote: > > On Fri, Feb 18, 2022 at 3:10 AM Segher Boessenkool > > wrote: > > > On Fri, Feb 18, 2022 at 02:27:16AM +0900, Masahiro Yamada wrote: > > > > On Fri, Feb 18, 2022 at 1:49 AM David Laight wrote: > > > > > 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. > > > > > > Why not? Those two have identical semantics! > > > > e.g.) > > > > > > [1] Open include/linux/device.h with your favorite editor, > > then edit > > > > static inline void *devm_kcalloc(struct device *dev, > > > > to > > > > static void *devm_kcalloc(struct device *dev, > > > > > > [2] Build the kernel > > You get some "defined but not used" warnings that are shushed for > inlines. Do you see something else? > > The semantics are the same. Warnings are just warnings. It builds > fine. Kernel code should build with zero warnings, the compiler is telling you something.