Received: by 2002:a05:6358:d09b:b0:dc:cd0c:909e with SMTP id jc27csp245198rwb; Wed, 9 Nov 2022 23:39:18 -0800 (PST) X-Google-Smtp-Source: AMsMyM7hTcWbAzkvD3W4wlf3pT34vCHSAa8VzFOYqHy/tUd2CQujB94vwF+NGUSDfVfrRboSzqyy X-Received: by 2002:a63:4384:0:b0:45f:beda:4116 with SMTP id q126-20020a634384000000b0045fbeda4116mr2016142pga.618.1668065958518; Wed, 09 Nov 2022 23:39:18 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1668065958; cv=none; d=google.com; s=arc-20160816; b=0ooK0ZFGnlPywQz3JA2KWxz4trUSxWFHGS8Z1MyIqD1s7Ww+j5FAXBVrme5cGB5Me5 Jv3U8ygf/gd3bwpN3u55aDb+huoNNJ7K0XDjtmySArfwsodhZU9RJC4IU0ABjJdLl4zc RiVISYNhMAPwEYhZnkeWWGn3R344udniMdj/tAnsitrkU+XYltHzx0Inl13eFbCVdz2x /HNaI+gYN6fO3BzY52aiPrEsfep86HFUEoez354Keo73czZRzYcXJROm05xgetGzpRiq 5e81Z+JfBkzKAgMb5l/iNGSZsHGT2LqsMTNi0xo8gpnBsmHbUGKb4C6Y5kjT5S0HXfMF /4Pg== 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; bh=QTaQLy1EVP2hV318ikJRi2UwKwsJO+AR6toV9WhVp0I=; b=DBOuKQyY9GY5OJn0EW30LAbdX4q8hYSKxYBUEdfZ9Vulm/9tUbQHWgt4zEtyspSjcY 590AUI/406g8xPGgbbUQH2RrJNtZzzna272Y2ATIyo/PmJ4nPK8QXU9gE7sOiH4W4jmZ WZcHUnOrNVGdlkXhsb4+ScX+quVSqxg2FhuCkkAuG5HRAi40JxvAEp0QPTEeMfjhStcT NKLV44Xuww0qw5HvOA8xsQiV+padsac3WwXtAPre8yIYhyhhO2Il/KGTJbCsKtMYsEfa zZ1Z3jdYTvfyR2CQPImaJ2kWM9HOqfj2PDgDi/qD5GmT5JB6WXLtFiqiJsIEQEljDRh/ 0N0Q== ARC-Authentication-Results: i=1; mx.google.com; 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 w9-20020a170902e88900b001768876fc87si23058091plg.362.2022.11.09.23.39.03; Wed, 09 Nov 2022 23:39:18 -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; 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 S232296AbiKJHV7 (ORCPT + 93 others); Thu, 10 Nov 2022 02:21:59 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41586 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229974AbiKJHV5 (ORCPT ); Thu, 10 Nov 2022 02:21:57 -0500 Received: from metis.ext.pengutronix.de (metis.ext.pengutronix.de [IPv6:2001:67c:670:201:290:27ff:fe1d:cc33]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id CE2522ED54 for ; Wed, 9 Nov 2022 23:21:56 -0800 (PST) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.ext.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1ot1sg-0008CK-SD; Thu, 10 Nov 2022 08:21:46 +0100 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtp (Exim 4.94.2) (envelope-from ) id 1ot1se-003PCM-AB; Thu, 10 Nov 2022 08:21:45 +0100 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1ot1se-00FaHm-Lv; Thu, 10 Nov 2022 08:21:44 +0100 Date: Thu, 10 Nov 2022 08:21:44 +0100 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Andy Shevchenko Cc: Mika Westerberg , Hans de Goede , Thierry Reding , linux-kernel@vger.kernel.org, linux-gpio@vger.kernel.org, linux-pwm@vger.kernel.org, Andy Shevchenko , Linus Walleij Subject: Re: [PATCH v2 3/6] pwm: lpss: Include headers we are direct user of Message-ID: <20221110072144.2s37r52qcpi6utgh@pengutronix.de> References: <20221108142226.63161-1-andriy.shevchenko@linux.intel.com> <20221108142226.63161-4-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="kl3orhl5l6nepqs2" Content-Disposition: inline In-Reply-To: <20221108142226.63161-4-andriy.shevchenko@linux.intel.com> X-SA-Exim-Connect-IP: 2a0a:edc0:0:c01:1d::a2 X-SA-Exim-Mail-From: ukl@pengutronix.de X-SA-Exim-Scanned: No (on metis.ext.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, SPF_HELO_NONE,SPF_PASS 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 --kl3orhl5l6nepqs2 Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hello, On Tue, Nov 08, 2022 at 04:22:23PM +0200, Andy Shevchenko wrote: > For the sake of integrity, include headers we are direct user of. >=20 > While at it, move the struct pwm_lpss_chip to be after > the struct pwm_lpss_boardinfo as the former uses pointer > to the latter. That part is fine. > Replace device.h with a forward declaration in order to improve > the compilation time due to reducing overhead of device.h parsing > with entire train of dependencies. Together with "For the sake of integrity, include headers we are direct user of." this makes an a bit schizophrenic impression on me. You add because the file is a direct user of it, but you drop despite being a direct user. If you adapt the reasoning to something like: Replace the inclusion of by a forward declaration of struct device plus a (cheaper) #include of as is an expensive include (measured in compiler effort). I could better live with it. I would even split this into two patches then. (i.e. move struct pwm_lpss_chip vs the include and forward change) Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --kl3orhl5l6nepqs2 Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEfnIqFpAYrP8+dKQLwfwUeK3K7AkFAmNspoUACgkQwfwUeK3K 7Al4jAf+KJNGvp8Rn+uVlNVAhxjiKuIbYR8EWHPnYLHmuS/aIZbajf5eWL/5mFVx tVVxe6MgD/wKubSURgJqRfqhn+k+D3AzH/oegvru0QhE//qQ1liKwqsV/A+0CwGB Aoue0nW3Fbt/psnD3j6t6J6o0Y7HDUkSYmFDelc9GZxtVlEXABLkUucXRjcSclWo dRuVSFYYj+ggI79yMTdU8WpyijehVCKvTULeZSMXJiDR9IieJYikZyIHJuM3if4I JXSiD6ihnTpLByKK2ppH1tQO6LlUrJvWWjUD0LIJofQqbEFRSEQ4dag8qf1iR7GV HZKl/FYFmJdpIcO6Sxg/621RqQSj5Q== =A+z8 -----END PGP SIGNATURE----- --kl3orhl5l6nepqs2--