Received: by 2002:a05:7412:8d10:b0:f3:1519:9f41 with SMTP id bj16csp1116839rdb; Wed, 6 Dec 2023 09:02:17 -0800 (PST) X-Google-Smtp-Source: AGHT+IFD1XoHnssmDW9HKJz4u2/n77JtegwkzS7G8a6tNkgW8RfTrTdds6KD+c5WXHur7yWEB/01 X-Received: by 2002:a17:903:18e:b0:1d0:82f2:5829 with SMTP id z14-20020a170903018e00b001d082f25829mr962839plg.55.1701882137391; Wed, 06 Dec 2023 09:02:17 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701882137; cv=none; d=google.com; s=arc-20160816; b=J9c3tUn4JN6cVWfi0OxF11nA3BcUO50AoGe+EAYeH2Ki9CMH05qDgq90/OyFVvlKP9 Bo0jb2X1lhzaeU6Yy5zCsLsvkAjhe+FhYAcdComsxC6gNm/5vtO3xuR5ipKGMEppSait 4/njla8wuC7W7HN1KfwjUlgsm0AE9cXcsXbHG1UgEPwGjCWs0v/8udtETGq3dSePs6pQ x2fW1vFs762iVZ+EvPlly2lOdSAgE3wy1wJmJMuojYkiFXii22KHHb6fgrMNZ7pqaEA4 rFuumZbnnKzfZi4n9mfv6W60LgFBwraT94jfINWJ8BxFfJ3kPEWeqisr5SEu4dIYJjmW NvAw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=QhFNxKgCFf/61DTwc6QlhGdBbP5mcipQDmaNT85ix3s=; fh=m7RHM5uPhUOBthW//BLCXovHwjcELYnrfoQwnidLxxc=; b=bH3cnQF/0rkMga/sWmN9KrQ/NTEXmwl+WtXk9hFWLpI/+Hl27rKWTDOc1nnN7IDXeF 0G4lL7nbT50BVthkz7m/e51aHNcSCfl4ThQ6rIMvqWpC83B3QaS1cfvjLnnVs1QbhPdi TX0YlRi/NZvD/H0A3u5TjVb82o6W/yeZ7myHiI4Qw3z87z567dIOZmpzMLkkuVz4LJnz gKSJsReNTvUdQO90XWTwf2nTP2qu26oEfaZRBAQ+P/57tEB0f0O0McLpJTXulHTARK3w TZODW4iCyDe88H7DB29Xy1SwJvWETTqIipPIKtiHT+zqqJG2YrbpFCuT/05LXet0iGFd JIUA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Tz380/2r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Return-Path: Received: from lipwig.vger.email (lipwig.vger.email. [23.128.96.33]) by mx.google.com with ESMTPS id c2-20020a170903234200b001d055c255a8si70539plh.221.2023.12.06.09.01.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 06 Dec 2023 09:02:17 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) client-ip=23.128.96.33; Authentication-Results: mx.google.com; dkim=pass header.i=@lunn.ch header.s=20171124 header.b="Tz380/2r"; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.33 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=lunn.ch Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by lipwig.vger.email (Postfix) with ESMTP id E16B4807C74B; Wed, 6 Dec 2023 09:01:57 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at lipwig.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1442685AbjLFRBp (ORCPT + 99 others); Wed, 6 Dec 2023 12:01:45 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:46964 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229470AbjLFRBo (ORCPT ); Wed, 6 Dec 2023 12:01:44 -0500 Received: from vps0.lunn.ch (vps0.lunn.ch [156.67.10.101]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D3AA01BD; Wed, 6 Dec 2023 09:01:48 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lunn.ch; s=20171124; h=In-Reply-To:Content-Disposition:Content-Type:MIME-Version: References:Message-ID:Subject:Cc:To:From:Date:From:Sender:Reply-To:Subject: Date:Message-ID:To:Cc:MIME-Version:Content-Type:Content-Transfer-Encoding: Content-ID:Content-Description:Content-Disposition:In-Reply-To:References; bh=QhFNxKgCFf/61DTwc6QlhGdBbP5mcipQDmaNT85ix3s=; b=Tz380/2r18As3xEEp/1BV295ze s8q6PQ7Lz9wuX/MPbpIZ4DPOyXUdGTm3xgIMyML30BNkWQaNbehOn/WatOlqGvxDQPfoti+GWyw91 pdNskVBUpept2AX+Uj8r0FW8t/3M+gtxOHr09j6V5IYWR0/ZvxR4ZLC/W8kppaIyJ7Tk=; Received: from andrew by vps0.lunn.ch with local (Exim 4.94.2) (envelope-from ) id 1rAvH8-002EPI-TA; Wed, 06 Dec 2023 18:01:30 +0100 Date: Wed, 6 Dec 2023 18:01:30 +0100 From: Andrew Lunn To: Serge Semin Cc: Maxime Chevallier , Heiner Kallweit , Russell King , Alexandre Torgue , Jose Abreu , Jose Abreu , Tomer Maimon , Rob Herring , Krzysztof Kozlowski , Conor Dooley , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni , openbmc@lists.ozlabs.org, netdev@vger.kernel.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH net-next 09/16] net: mdio: Add Synopsys DW XPCS management interface support Message-ID: <15e6857a-b1d1-465a-945e-6f31edac62fb@lunn.ch> References: <20231205103559.9605-1-fancer.lancer@gmail.com> <20231205103559.9605-10-fancer.lancer@gmail.com> <20231205133205.3309ab91@device.home> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: X-Spam-Status: No, score=-0.9 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lipwig.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (lipwig.vger.email [0.0.0.0]); Wed, 06 Dec 2023 09:01:58 -0800 (PST) > > You shouldn't use inline in C files, only in headers. > > Could you please clarify why? I failed to find such requirement in the > coding style doc. Moreover there are multiple examples of using the > static-inline-ers in the C files in the kernel including the net/mdio > subsystem. The compiler does a better job at deciding what to inline than we humans do. If you can show the compiler is doing it wrong, then we might accept them. But in general, netdev does not like inline in .C file. Also, nothing in MDIO is hot path, it spends a lot of time waiting for a slow bus. So inline is likely to just bloat the code for no gain. Andrew