Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp661743rdg; Wed, 11 Oct 2023 01:41:38 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFqa2T07FJMWrQDy7ul3zQrJcr1Lw7og0iT1wBTblWc45nowEXKScSSYG6FdDFaQtwRraCf X-Received: by 2002:a17:903:11c8:b0:1c7:2697:ec10 with SMTP id q8-20020a17090311c800b001c72697ec10mr23948674plh.56.1697013697616; Wed, 11 Oct 2023 01:41:37 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697013697; cv=none; d=google.com; s=arc-20160816; b=nE6ClE5DsSDTlsZSHXcUq+pgOgCYMxI4PYZb65EO4TeKhVVur86tceizAaLPeYBD+0 CUdjkyh2WoFWR/8/F3A1Mtg81N1gU2YvAQeEfKS0PAw1P2ED8g32wEOb88RhN8RKqv6E /LS677OFRZdU66kg+zqPMidSIMAS4TP5/KIc15QrY//hOSiSDZYhTGYJ2skPDsH5vQeK Lhaucc0gKYpSdAwyp3WPOcTt9wjbawoh6yo3N+NAlo1zip8MoHkmyAH1wZYmxCvrohQ5 RCFnoVi3wxwF+02oBubWls9v3TfuL8KqWx78aYEXJ1k+WB3RRJDDk9fCwn7D8bCbEjIt fNzA== 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=bU1JNYXWIy32nKxE4g8/jrtXMxNGoi3+u60/jXsMo/8=; fh=ihxfydsjdT7zWPsIGx48JYc0kOCYAz2JeEcRwy1KmAg=; b=FnVWOI4w2ZT/thHVm+XGLDFHpSltADLa3QFoGmfg15JeV5+su897Rm3A/HslAZabLU 0+Dc2w6yEOZRpxnNp/rRSvRO6gfec+RclEodU2as7qpCpk+KEJ9LYBF9mEI0HzqXIS+t gVKXE+AqrF851478wllHhFGWNPhrX2ixPqOw8quxxMPEPG49PScgEQkWJeqm37z4ujQj e6jDPq3Cmi5s1rybrj58zndEyzWlpZYCX0G3ncz29HU0iOx8Ae8XTb8+dU3Gre4yg4QY WGfYXsfhjEurjlVMbWJS2I6Hm/68DiUKfMIDBRuPYVBeDK/1EKcxFAY7Z4+9e+7wzi+d 9Sgg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id e15-20020a17090301cf00b001c7264c45a6si15145204plh.563.2023.10.11.01.41.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 11 Oct 2023 01:41:37 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) client-ip=23.128.96.32; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.32 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id A28FF8112A8E; Wed, 11 Oct 2023 01:41:34 -0700 (PDT) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.10 at agentk.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230255AbjJKIlZ (ORCPT + 99 others); Wed, 11 Oct 2023 04:41:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:60174 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230253AbjJKIlY (ORCPT ); Wed, 11 Oct 2023 04:41:24 -0400 Received: from metis.whiteo.stw.pengutronix.de (metis.whiteo.stw.pengutronix.de [IPv6:2a0a:edc0:2:b01:1d::104]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id D12F193 for ; Wed, 11 Oct 2023 01:41:22 -0700 (PDT) Received: from drehscheibe.grey.stw.pengutronix.de ([2a0a:edc0:0:c01:1d::a2]) by metis.whiteo.stw.pengutronix.de with esmtps (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1qqUmM-0003lH-CK; Wed, 11 Oct 2023 10:41:18 +0200 Received: from [2a0a:edc0:0:900:1d::77] (helo=ptz.office.stw.pengutronix.de) by drehscheibe.grey.stw.pengutronix.de with esmtps (TLS1.3) tls TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384 (Exim 4.94.2) (envelope-from ) id 1qqUmL-000rSv-MK; Wed, 11 Oct 2023 10:41:17 +0200 Received: from ukl by ptz.office.stw.pengutronix.de with local (Exim 4.94.2) (envelope-from ) id 1qqUmL-00Dvxv-Cu; Wed, 11 Oct 2023 10:41:17 +0200 Date: Wed, 11 Oct 2023 10:41:17 +0200 From: Uwe =?utf-8?Q?Kleine-K=C3=B6nig?= To: Rob Herring Cc: Thierry Reding , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] pwm: pxa: Explicitly include correct DT includes Message-ID: <20231011084117.jvfl7xmbcgsu7uyl@pengutronix.de> References: <20231009172923.2457844-22-robh@kernel.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha512; protocol="application/pgp-signature"; boundary="qonxrk3tvlfhlcfv" Content-Disposition: inline In-Reply-To: <20231009172923.2457844-22-robh@kernel.org> 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.whiteo.stw.pengutronix.de); SAEximRunCond expanded to false X-PTX-Original-Recipient: linux-kernel@vger.kernel.org X-Spam-Status: No, score=2.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,RCVD_IN_SBL_CSS,SPF_HELO_NONE,SPF_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on agentk.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 (agentk.vger.email [0.0.0.0]); Wed, 11 Oct 2023 01:41:34 -0700 (PDT) X-Spam-Level: ** --qonxrk3tvlfhlcfv Content-Type: text/plain; charset=iso-8859-1 Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Mon, Oct 09, 2023 at 12:29:17PM -0500, Rob Herring wrote: > The DT of_device.h and of_platform.h date back to the separate > of_platform_bus_type before it as merged into the regular platform bus. > As part of that merge prepping Arm DT support 13 years ago, they > "temporarily" include each other. They also include platform_device.h > and of.h. As a result, there's a pretty much random mix of those include > files used throughout the tree. In order to detangle these headers and > replace the implicit includes with struct declarations, users need to > explicitly include the correct includes. >=20 > Signed-off-by: Rob Herring > --- > drivers/pwm/pwm-pxa.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) >=20 > diff --git a/drivers/pwm/pwm-pxa.c b/drivers/pwm/pwm-pxa.c > index 1e475ed10180..78b04e017c49 100644 > --- a/drivers/pwm/pwm-pxa.c > +++ b/drivers/pwm/pwm-pxa.c > @@ -24,7 +24,7 @@ > #include > #include > #include > -#include > +#include Even without both headers the driver compiles fine as linux/pwm.h includes of.h. I think we should do: diff --git a/include/linux/pwm.h b/include/linux/pwm.h index d2f9f690a9c1..9e35970ca2ab 100644 --- a/include/linux/pwm.h +++ b/include/linux/pwm.h @@ -4,8 +4,8 @@ =20 #include #include -#include =20 +struct of_phandle_args; struct pwm_chip; =20 /** drivers/pmw/* compiles fine with this change. Other than that: Acked-by: Uwe Kleine-K=F6nig Best regards Uwe --=20 Pengutronix e.K. | Uwe Kleine-K=F6nig | Industrial Linux Solutions | https://www.pengutronix.de/ | --qonxrk3tvlfhlcfv Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQEzBAABCgAdFiEEP4GsaTp6HlmJrf7Tj4D7WH0S/k4FAmUmX6wACgkQj4D7WH0S /k6WCAf/VTAkcHY/Xjw1z+3vSnWH9KPBEte2/wm5UF3Ee2iG19jUSsuspIajwQsk 5ZucpR2CBmXmZ/H4CTm6R0N+bsCq+zDJoSNJMkUwqK4eFosS+oBSbp+HiOq6WzL1 sg4Mu2DgiGH4hYAeQQ7/rz7d+uE/AYKGHOOMYvjXfUaMYMag7/WRonErwoOvz/Nu sflvsEG1cN6WLM6FBB7CuUQ6epDGvJ5hlAB7q1zdpan6o6gDBvsu3knr1RB8nSTT vBasw6ULDb5kHAZgPkaNZd7ST14IbhD9HYp6C/B0bmW7IjksdBS6NlsoiwufPloR jPIc+17voM6pBq0JcklEcLRlwNWF+w== =8SsM -----END PGP SIGNATURE----- --qonxrk3tvlfhlcfv--