Received: by 2002:a05:7412:d8a:b0:e2:908c:2ebd with SMTP id b10csp534636rdg; Thu, 12 Oct 2023 12:50:07 -0700 (PDT) X-Google-Smtp-Source: AGHT+IHrZTgmN5HHi2v68sX9kyCJfavgq/3GLS2+tlGiFC1/XF6t5uEdp6gmJU++x55mw2x3yQzJ X-Received: by 2002:a05:6a20:dd87:b0:171:a3e8:8c09 with SMTP id kw7-20020a056a20dd8700b00171a3e88c09mr7666265pzb.60.1697140206937; Thu, 12 Oct 2023 12:50:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1697140206; cv=none; d=google.com; s=arc-20160816; b=jXdngueABLj9wW4Ce5Jf83dZeey/RBnhv5J8qwvQKm5faCRtQAxL6+gZ1JB0VGCWeD tCNma5j8dbplpOI5juRR5wjikqRIRP+Hts0oj0StYbtVHUZMQeEXzcpJvwYWhC9o4MVc HcZvK1P99sAgYi5klKQsueXnHjxMB08MyumLLeL83CEBXJQO1P0gnBl+TO0qYyWr9MP3 S1IUcej8uh1wpxV3k98EN+twAZwO3Kn5fo2V7DbfCRKUQ42f4/CI77S6QxtQW7UnFdsO tqLIBw5S5IubvGy8azghw1uwCidExDjDv5R47gDEjIGVzUeo6nmBJTfSHtz2EfvxNMZs fwNw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:cc:to:subject :message-id:date:from:in-reply-to:references:mime-version :dkim-signature; bh=4gYR1l9JQ5bkQehPkzRTEHmbQJPlUQDEioBD7pVDb8c=; fh=ylZPilVDlKlViKzZc38Axen93Vob3InBTQSmn5fX2H4=; b=fz8JjMpx56ZChW5+Orvi9/UfXLvxnf1N6ZR/jrWv/WDHlVqY+VHaD2XYoAtE8hjYXS tTNESj3e/jIOM54YGQte0BLl9zyNnnvp5RAhJds9ryqWBJNvY+ZAvIvlF6fRNzjATkAW AZvzKGZ4C3D/rpe9HlKPY01wghafw9awjyHG8c/BCf7zNDiLSjSpwYunHcRSj8pwH4Pn Vi1lc2MOrCRvIdZgy6SEzXmYa/8zZ4VHELwLFKN863pQnV3vjhSjJuP1hwUU8aHO3hBB AF0uKtPXXM19M+d75YZWhJx6cZqNYho1KB/41OgDaQQl3LyL9MjsxyaTWMAbcLX2EoNG YEkw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j0lc9uQu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from agentk.vger.email (agentk.vger.email. [23.128.96.32]) by mx.google.com with ESMTPS id y18-20020a63b512000000b0059c0f9ef964si2852799pge.635.2023.10.12.12.50.06 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 12 Oct 2023 12:50:06 -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; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=j0lc9uQu; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by agentk.vger.email (Postfix) with ESMTP id 0648D81A1BB3; Thu, 12 Oct 2023 12:50:04 -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 S1442897AbjJLTtu (ORCPT + 99 others); Thu, 12 Oct 2023 15:49:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49450 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1442807AbjJLTtH (ORCPT ); Thu, 12 Oct 2023 15:49:07 -0400 Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id F0FB210A; Thu, 12 Oct 2023 12:48:57 -0700 (PDT) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8DC89C433C9; Thu, 12 Oct 2023 19:48:57 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1697140137; bh=3Byp5b3Zb8b/69+S7rphD/W+vP3c+F3aSXr9d0KNxac=; h=References:In-Reply-To:From:Date:Subject:To:Cc:From; b=j0lc9uQuFkJEnhdhbKskXhXiPdyR7L4wIxV9vfe9+TRveg4bp6wESNrLcPyvu4mkX 8ANQHGY459r846QvjlaB6EkFsIIlFeR4LNXqlH0sk5uNkaW2vwzYkgnYZ2GC7Xji6d 3NpwNOWXUy/KZ0BpcbGHXpo3GOeZY1aJkSvoD4u26/Lsz9b2uFUHykqYSZ/bk8k2aS W/fr2QUaEQNyInaQoujEAL440+/Tt1EIs2Q0JUroSVnccY9Stdto1lXs9kSfEPU11v d05j/adkx2A05wDPZeyX5mAOHANCrWKg+iJQMhK8vmgRGNYM0hom2YgKxJJhS6X7wt KILrACHM8ELNw== Received: by mail-lf1-f42.google.com with SMTP id 2adb3069b0e04-5056ca2b6d1so1536465e87.1; Thu, 12 Oct 2023 12:48:57 -0700 (PDT) X-Gm-Message-State: AOJu0Yy5YoaasPFlM17JvMhV4m9qLTTlZ/oxbJJ/7uxjrUDH3pBtvGrz 2pD+JulkbaLAOenudkN5ILP+x9mnnzlMc0dHNg== X-Received: by 2002:a05:6512:a90:b0:500:acae:30c5 with SMTP id m16-20020a0565120a9000b00500acae30c5mr15206735lfu.15.1697140135825; Thu, 12 Oct 2023 12:48:55 -0700 (PDT) MIME-Version: 1.0 References: <20231009172923.2457844-22-robh@kernel.org> <20231011084117.jvfl7xmbcgsu7uyl@pengutronix.de> In-Reply-To: <20231011084117.jvfl7xmbcgsu7uyl@pengutronix.de> From: Rob Herring Date: Thu, 12 Oct 2023 14:48:43 -0500 X-Gmail-Original-Message-ID: Message-ID: Subject: Re: [PATCH] pwm: pxa: Explicitly include correct DT includes To: =?UTF-8?Q?Uwe_Kleine=2DK=C3=B6nig?= Cc: Thierry Reding , linux-pwm@vger.kernel.org, linux-kernel@vger.kernel.org Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Spam-Status: No, score=-1.2 required=5.0 tests=DKIMWL_WL_HIGH,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,MAILING_LIST_MULTI, SPF_HELO_NONE,SPF_PASS autolearn=unavailable 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]); Thu, 12 Oct 2023 12:50:04 -0700 (PDT) On Wed, Oct 11, 2023 at 3:41=E2=80=AFAM Uwe Kleine-K=C3=B6nig wrote: > > 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 includ= e > > 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. > > > > Signed-off-by: Rob Herring > > --- > > drivers/pwm/pwm-pxa.c | 2 +- > > 1 file changed, 1 insertion(+), 1 deletion(-) > > > > 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. Yes, that's just one of several: include/linux/pm_domain.h | 4 +++- include/linux/remoteproc.h | 3 ++- include/linux/thermal.h | 4 +++- include/linux/cpu_cooling.h | 1 - include/linux/fsl/bestcomm/bestcomm_priv.h | 1 - include/linux/mailbox_client.h | 4 ++-- include/linux/mailbox_controller.h | 2 +- include/linux/phy/phy.h | 5 +++-- include/linux/pwm.h | 4 +++- include/net/dsa.h | 2 +- > > 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 @@ > > #include > #include > -#include > > +struct of_phandle_args; Also used in the header: +struct device; +struct fwnode_handle; > struct pwm_chip; > > /** > > drivers/pmw/* compiles fine with this change. Agreed in what I tested so far. But I'm running out of gas on doing more of this, so once I get of_device.h and of_platform.h detangled, I'm probably done for a while at least. IOW, feel free to submit a patch for pwm.h. > > Other than that: > > Acked-by: Uwe Kleine-K=C3=B6nig Thanks! Rob