From patchwork Mon Jul 17 22:53:58 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 121642 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:c923:0:b0:3e4:2afc:c1 with SMTP id j3csp1398704vqt; Mon, 17 Jul 2023 16:16:38 -0700 (PDT) X-Google-Smtp-Source: APBJJlE8qqSm9+n1fk48KlOkI0LsOJDrO7UQka+uA0jpG8WGnNq3xfcR/qQzbNDgGcR/UUqt3Me1 X-Received: by 2002:a17:906:1009:b0:994:5340:22f4 with SMTP id 9-20020a170906100900b00994534022f4mr9052125ejm.6.1689635798538; Mon, 17 Jul 2023 16:16:38 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689635798; cv=none; d=google.com; s=arc-20160816; b=wdFUYLuJOg3xZDNWLg84eym5Z3tjxhGrQT0Fuas6ExnFteOeNbODCEf+A5wXU46MOs hN4o3bCKU72oJo8IB632/IOHLzCYayLVb2nVwtSxPh0jajFcAbq+RjcFkYczsFiwXSvW JRBElm5nQKvNxnvKdDwCTKjPKGG52UH0xNpDAyDD+oYVoAaxFJHioiSQtPLER+YA3JMC +HRjsWl/Woq/7g2pvspV9ntjLFqGlYWuekghxKEkCxr77zvf4YDX+pkUsmVTGZdWjdZv RIMAk7SwUswEIaMukWz/HKi2AMi05xtPVwF045LBTfbwYx6AfG8PyG71J3xyza5lBmc0 3lnA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :message-id:date:subject:cc:to:from:dkim-signature; bh=+F2l9xCRBrtLYdq2ePdPq+Mm7/43+HSyxtRn+xacLDY=; fh=vy04PAkmXcJXLlhkixj/HPDAfJpLLJOJAHrbX9eSqS8=; b=Bqv5Xp3LJW1b/iI43/Wx9NTYwr0nHuiyDhjHLqHO6sAcTSZG2FJte6iZFKUxXyhXCo 3V3Nf4erVQp5/rBwvwQTHRoILdubMB658P8ZQ+F4d/9uUGNqzQjK4+RX8PUw6FoV8lL4 hvwTVnATQ6/YNobl5Zun26V56vwxa++XCbhba/zHhs5V6XuSc+OJkrT3GV2IbhbJrIgN FKCzUzypRUACs9xwbMkrWCfVsoc3MgmDSlumLV66DcdiCei9M3JroX/yfOPgs0IZq6Ol g5SMSnjTd3qWMNKapa9hCdR8Vyvp7AxkJshOCJQayfwd3o+3Ju35nCNRWHaJYWx6au3g BPBg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=k20201202 header.b=LADelvwc; 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: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id a27-20020a17090640db00b009929af2f7d1si314195ejk.376.2023.07.17.16.16.15; Mon, 17 Jul 2023 16:16:38 -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=LADelvwc; 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 S230506AbjGQXAs (ORCPT + 99 others); Mon, 17 Jul 2023 19:00:48 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:52476 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230497AbjGQXAq (ORCPT ); Mon, 17 Jul 2023 19:00:46 -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 EAE591981 for ; Mon, 17 Jul 2023 16:00:14 -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 51757612FE for ; Mon, 17 Jul 2023 23:00:13 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 68024C433C8; Mon, 17 Jul 2023 23:00:11 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1689634812; bh=MEiv1XO5K8mi2ZdTkf/xnwnFqxVhWUJFvFcGHpWtU+4=; h=From:To:Cc:Subject:Date:From; b=LADelvwcPBbRFhDqogEGDousdIMe4Gy/YLiiXw7lbd9i5jfMdvDxcDF59nJeVcX+j iZqSQ9KU9t8fiQHXLcH0hxMPV7fOJwbv/XAMrZexIYUkCf0nHxuox6De1eH6Jf1Wdm MHGsS2j3olh/b1SDVUvYf96tJ+O9qjict5JpjJM//YVqgI7HhK7BYFcLFTYqljzLZk /v03AUZskMrWeHHTSCubWLImMwS+21vbDY3YuTC4tr5wD7yAA3zijiF6Y3ymCJmuij 6HvR5PzBD6P1s0QbVPqnbgn2qu6T1Gm0H8mUy6tHgidw/eyLVNP2mUnF6CfVi1NqGb e1mvEOe6fAFqQ== Received: (nullmailer pid 3210866 invoked by uid 1000); Mon, 17 Jul 2023 22:54:11 -0000 From: Rob Herring To: Russell King , Michal Simek Cc: linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] ARM: zynq: Explicitly include correct DT includes Date: Mon, 17 Jul 2023 16:53:58 -0600 Message-Id: <20230717225358.3210536-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771711546681253148 X-GMAIL-MSGID: 1771711546681253148 The DT of_device.h and of_platform.h date back to the separate of_platform_bus_type before it was 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 --- arch/arm/mach-zynq/pm.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arch/arm/mach-zynq/pm.c b/arch/arm/mach-zynq/pm.c index 8ba450ab559c..61ad965ef3ac 100644 --- a/arch/arm/mach-zynq/pm.c +++ b/arch/arm/mach-zynq/pm.c @@ -8,8 +8,8 @@ */ #include +#include #include -#include #include "common.h" /* register offsets */