Message ID | 20230714174023.4039938-1-robh@kernel.org |
---|---|
State | New |
Headers |
Return-Path: <linux-kernel-owner@vger.kernel.org> Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2660385vqm; Fri, 14 Jul 2023 10:49:53 -0700 (PDT) X-Google-Smtp-Source: APBJJlHfYsrHnO+TfCdWUwDITrLzVRjr05m5q9KCyrZ1W5T4BphWz5dljG/Q+SaIYFgeHHAWlF+D X-Received: by 2002:a17:906:9e:b0:982:8c28:c50d with SMTP id 30-20020a170906009e00b009828c28c50dmr4952610ejc.58.1689356993067; Fri, 14 Jul 2023 10:49:53 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689356993; cv=none; d=google.com; s=arc-20160816; b=FObq+XuzNPz8XIUslkkiS6uEoXXM4Jg+ZmdY2UUgjatmucMrPVn5ZGRvUtV7j1yLNV m+sG+rATfwzk61A4WNkM3z1rNRY/6269Un6Z6HKwCDwifs2N1mWbOrEza03ZMj4bJP+8 4sdfOWbieIgmfuimt3U+KnwIYR87GPX+o1VYA8LKHstR4kBX3SciK/b1hZ4a4jfida4i brjFSSO248lyZpEqYpUJM8eCUpj90uQ+ojQz6YzD8wnXoeN0IPgW/BnWJ0zq/xVm1Y9M naaU5WD92/PNkbyLM7Xb2xFOilPa/gNK4Ec/488LTuuFdRvMjQXnIuSAktFwXBonBtXB th1Q== 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; bh=Me3eQAxtkYEt1As/TJ8gtlG9I7mp3faMQUIZ1X3guVM=; fh=4TWm14uCsZsDPoajDiAqxJCGtp0md+s1UGKweWMBaFg=; b=hJ6QusJPxAf7/Vy1uX3zJIUF83RG3vRoDOJKKkH04PE5S5EuomseJgI/dPgN/jKoyb FiicK/3+O14oydmgW2TU2uUmfR3RmnEI3KMiFeoRtsPtDyIgUfZmHSFlrD7qjWjYvcga 53Dk+HRC1HyNSTU6EKJEqS6Nr3F8gfk5427lUJfGohqjdmtYg/SNv5hNPNLp9GEexaPW W8iSlRh4TzhF9wGDZSwrgbC543fB2Q6m80BXAN9f8OK39tqDMbzUYMTg24zk0Ha2q/HL WjQcKJvwMKv0ABTiCczgBu7EeZ1MIRd1Kj3xc+l5325yoPmQZFv3eEWX6+cGq820pQJs pnqg== 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; 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 d22-20020a170906345600b009942c859e77si6475452ejb.193.2023.07.14.10.49.28; Fri, 14 Jul 2023 10:49:53 -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; 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 S236124AbjGNRkh (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Fri, 14 Jul 2023 13:40:37 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:55584 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236126AbjGNRkd (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Jul 2023 13:40:33 -0400 Received: from mail-io1-f42.google.com (mail-io1-f42.google.com [209.85.166.42]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E1FBE3A94; Fri, 14 Jul 2023 10:40:29 -0700 (PDT) Received: by mail-io1-f42.google.com with SMTP id ca18e2360f4ac-78666f06691so88019239f.0; Fri, 14 Jul 2023 10:40:29 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356429; x=1691948429; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=Me3eQAxtkYEt1As/TJ8gtlG9I7mp3faMQUIZ1X3guVM=; b=EqVhtWli27ME9+FIFN/qQWDHJno30DtkuzDhhhIA5ecE1IxtKsoze647erJl5UMptz s8JjQSVx4o5PG/c6/ojmyMhBsJF5cVUCX33apuAYms8bQAT4OBZrYchybes+tFT2v15k X6Hn8AbXEQ3zf1RqaF+8NmjwhGGSTbRt9TKbiCSwqntkNwaHYQBdUgrZNqtz7EoX371S 6STyDlD1I54FZ8Mf6oId/TpFTd0stuw4wU4DgHqpxku90rKGuYEjH0Ss/6fmJTHsXdM/ BqtZLedePQQYe4ohLVkGvM0mUkxL47ODQ747bC+DfQmuTXiNObwCJIk0G/QzNo887+yW /asw== X-Gm-Message-State: ABy/qLaa+9xGD4knNMk3LIiSpmrvzXIxQCkgO+WA/ijk08fr30A0wcso XAajKSgxXH2Ewrjmkgtd6Onb6qSuUA== X-Received: by 2002:a5d:924c:0:b0:785:d06d:7b04 with SMTP id e12-20020a5d924c000000b00785d06d7b04mr5250377iol.1.1689356429010; Fri, 14 Jul 2023 10:40:29 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id i15-20020a02cc4f000000b0042b35c7b8c5sm2812180jaq.61.2023.07.14.10.40.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:40:28 -0700 (PDT) Received: (nullmailer pid 4040049 invoked by uid 1000); Fri, 14 Jul 2023 17:40:27 -0000 From: Rob Herring <robh@kernel.org> To: Michal Simek <monstr@monstr.eu> Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] microblaze: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:40:23 -0600 Message-Id: <20230714174023.4039938-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.2 required=5.0 tests=BAYES_00, FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FORGED_FROMDOMAIN,FREEMAIL_FROM, HEADER_FROM_DIFFERENT_DOMAINS,RCVD_IN_DNSWL_BLOCKED,RCVD_IN_MSPIKE_H2, SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=no 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: <linux-kernel.vger.kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771419198526644306 X-GMAIL-MSGID: 1771419198526644306 |
Series |
microblaze: Explicitly include correct DT includes
|
|
Commit Message
Rob Herring
July 14, 2023, 5:40 p.m. UTC
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 <robh@kernel.org>
---
arch/microblaze/kernel/reset.c | 1 -
1 file changed, 1 deletion(-)
Comments
pá 14. 7. 2023 v 19:40 odesílatel Rob Herring <robh@kernel.org> napsal: > > 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 <robh@kernel.org> > --- > arch/microblaze/kernel/reset.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/arch/microblaze/kernel/reset.c b/arch/microblaze/kernel/reset.c > index 5f4722908164..2f66c7963084 100644 > --- a/arch/microblaze/kernel/reset.c > +++ b/arch/microblaze/kernel/reset.c > @@ -9,7 +9,6 @@ > > #include <linux/init.h> > #include <linux/delay.h> > -#include <linux/of_platform.h> > #include <linux/reboot.h> > > void machine_shutdown(void) > -- > 2.40.1 > Applied. M
diff --git a/arch/microblaze/kernel/reset.c b/arch/microblaze/kernel/reset.c index 5f4722908164..2f66c7963084 100644 --- a/arch/microblaze/kernel/reset.c +++ b/arch/microblaze/kernel/reset.c @@ -9,7 +9,6 @@ #include <linux/init.h> #include <linux/delay.h> -#include <linux/of_platform.h> #include <linux/reboot.h> void machine_shutdown(void)