Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5139697rwp; Sun, 16 Jul 2023 20:57:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlF+UwtE4yrITOm43J98ePEToPYvRe7ZmZ/1ehsi/ZUZPaM7nlRR1lmJLsIQZsCPr9wjB1on X-Received: by 2002:a50:fb02:0:b0:51d:b89d:9819 with SMTP id d2-20020a50fb02000000b0051db89d9819mr10710309edq.1.1689566270832; Sun, 16 Jul 2023 20:57:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689566270; cv=none; d=google.com; s=arc-20160816; b=ZBwMBTswNqO30TpcG84OpEdMg3y7bh/otm2FxqolH3mRC4NdWrAxafhd93ZFq/gyPv 4U2DGj4n4eJ77mEMAq3BNcsp8DSiOBLUhsFKk9N0ArRRAmftrBexxG9Gq3/wP2FVHXOl o3rJJbjq7aOE2wd97sIxpizt/MYq9NEdqdRN1hw2BIxxTYJjEBcMU9FNijk2VA70ydjc TPAUvtqOky8CrG8GqRpTTijWts8nJGXt1bY/PnrPtA9Eh56+2h8+LwaGD/NxFLf6zYe4 SNQXZrlXZPTFSyFewt+61KlZa0Y4aSD2gtJwGq9rsAmnbcvMxDr6lMEXk/M/bakWGNgg MVUQ== 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=ThJqnpXl60lo1YqIOffjKddp7wtYaqEbJcBitHV5mG4=; fh=11lvFSKokhXtlf2+dzmhWRHABIh1bPE1LnkqZDX+zug=; b=tUykB4OPseLm/M45BctsbC5NvNVl3hvUXWuRUVIiAejnoaBrkBrtltbTM7BgJf2x7r F37AHWocUi2p054okfRKWBcTo90CQrbewyJ9lorxxBiwEFt9xora4+R4NgNU4X9A6x46 hFhg7ma+uROEXjxyi5Q7O11+2R2S6zPWVcHbsDf7L7VwJCz7z12mTXuYPa/6lZSaDT7K x5rbYnbmD9Lz3W4L7WV/Xoxa1UTAUyTExL5AWVcl35Bf5TO1GKgDtePHP9CqTgLWOvLp qCHY38op9YlssoWPUJE7X3OyYZGV28hZ1yTRMh68Uf1tZKRgJujMTi0SEsll6+eu72An aedA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=tDuYNli+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id l9-20020aa7c3c9000000b00521820ef02asi2424562edr.222.2023.07.16.20.57.26; Sun, 16 Jul 2023 20:57:50 -0700 (PDT) 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=@kernel.org header.s=k20201202 header.b=tDuYNli+; 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; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230173AbjGQDuV (ORCPT + 99 others); Sun, 16 Jul 2023 23:50:21 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:48096 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229725AbjGQDuT (ORCPT ); Sun, 16 Jul 2023 23:50:19 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 340ADF4; Sun, 16 Jul 2023 20:50:18 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id BD34960EBD; Mon, 17 Jul 2023 03:50:17 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 970EAC433C7; Mon, 17 Jul 2023 03:50:15 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689565817; bh=gXfYH7V2kM1Y538mSmiEnBw9D2Olq+4SnpNIVM3FhNU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=tDuYNli+lCUffUuvmVeq+JucDtgYy9hvhCBF5b7KYRdTGh4g03kmMB5x3XS6Jkrp2 5193jfvFuoerRJqNPNV0+Wvlc5aOEsdXA0dGWiQZ0LaHTOH97QdbksGKpKlCTO/n0o O/WENGr6HGKjhW54yM+rWQRRd0Y6QzBCetlyD/jbsEfD2i72LLfMtPUwE3NXwABQJp jfRN7MZF6DySzTLq01L55Rt38hTGImMgCWXvGtYwU5bO61VAgHfqTG6sz+QEZ5OcAa AYTM2u6RQlfQFgNTZssR3v2nYb7PM9ER+Ige0FH/qUgOTPi53n87PuoyPSuTRAoSNp 0B+dQxPNQNwYA== Date: Mon, 17 Jul 2023 11:50:13 +0800 From: Tzung-Bi Shih To: Rob Herring Cc: Benson Leung , Guenter Roeck , Hans de Goede , Mark Gross , Vadim Pasternak , devicetree@vger.kernel.org, chrome-platform@lists.linux.dev, linux-kernel@vger.kernel.org, platform-driver-x86@vger.kernel.org Subject: Re: [PATCH] platform: Explicitly include correct DT includes Message-ID: References: <20230714174909.4062739-1-robh@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20230714174909.4062739-1-robh@kernel.org> X-Spam-Status: No, score=-4.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_MED, 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, Jul 14, 2023 at 11:49:09AM -0600, 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. > > Signed-off-by: Rob Herring For cros_ec: Reviewed-by: Tzung-Bi Shih The driver uses platform_device_unregister() which is in platform_device.h. > diff --git a/drivers/platform/chrome/cros_ec.c b/drivers/platform/chrome/cros_ec.c > index 8b7949220382..5d36fbc75e1b 100644 > --- a/drivers/platform/chrome/cros_ec.c > +++ b/drivers/platform/chrome/cros_ec.c > @@ -12,6 +12,7 @@ > #include > #include > #include > +#include > #include > #include > #include nit: if we want to maintain the sort, "platform_device" should come after "platform_data".