Message ID | 20230714174043.4040561-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 c18csp2659849vqm; Fri, 14 Jul 2023 10:48:39 -0700 (PDT) X-Google-Smtp-Source: APBJJlEWH941iOVkTHeLRqKNsTv9BhWCrYecMrwRTsh7CdbZqXuptc+iUET8DyTRHP/151dedoZv X-Received: by 2002:aa7:c386:0:b0:51e:309:2e11 with SMTP id k6-20020aa7c386000000b0051e03092e11mr4730834edq.36.1689356919232; Fri, 14 Jul 2023 10:48:39 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689356919; cv=none; d=google.com; s=arc-20160816; b=fmFXN1DYjkFJBh4/zlwYYVQ8NzdcoqIBN6bA19IeU32BszFbZuLDpKTUwU5AFvvNWk BxnWAKNQAv0SQ6SXzFc1ibWfOzknW+yKRhh9LAHs80Zai5UyY5AGf7FaLSXVqVcaDXD9 Tg++SKWemVWI/L2dDjOJKpsrEsXIseGCUswgRFzuSDNJmeVneGFSlIBne2PlPBA2Dqk0 0THcYc6amKqtfB28tIEREDpYL+7jfBjEGDgTckQTrCyioCn541pqdMliAPubKrpmsEpN 2GQpQ2o9oElN8IfIOjn1XKP43E1tezg2/g4H1Z1heXRA968RYeCSXAZlX3KhTbxek3xX BiuA== 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=aFT9PNMmBztDXyn5rk0S0F3jD8xFge6alwT8Dw67VL8=; fh=GqMOKicBYzTcBdbApGh8SDSt13I/xZiG4CvOW/xJJEg=; b=iLDCABnQRtCN3EHJO+kiwe+N+gNs+lkobB9rLwU7yImpkYrFPgKyOFiRKx85CbuSlN XYI+Ddvlvy3RZQO4pTAu1Hqnoa6TRym1I75ab6BvYLclPq9jB1CERCYo7CehtmgSJ6f6 uL5YZdEmsTe1dUDCqxuuvOfiBiUlVIQeBunUhRyk6PBHjQA37UGrML/CW0L3xiOc9JCn pcw1B/u2reT2kxPLyglb4C0mTeLIeSF5LjObCWT6tj26un/GsHsx/3jV1ihocOCxty9K 5SVFpPrc+ikQS8iwJRDra2MAMPg1U1m0kK9vfqcg8+BCDnR9JJvnpTrsOYvrPJqQhxZX V1Cw== 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 d2-20020a50fb02000000b0051e0d8c614fsi9282117edq.567.2023.07.14.10.48.15; Fri, 14 Jul 2023 10:48:39 -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 S236227AbjGNRlX (ORCPT <rfc822;hadasmailinglist@gmail.com> + 99 others); Fri, 14 Jul 2023 13:41:23 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56308 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236145AbjGNRlN (ORCPT <rfc822;linux-kernel@vger.kernel.org>); Fri, 14 Jul 2023 13:41:13 -0400 Received: from mail-io1-f45.google.com (mail-io1-f45.google.com [209.85.166.45]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 89584420E; Fri, 14 Jul 2023 10:40:49 -0700 (PDT) Received: by mail-io1-f45.google.com with SMTP id ca18e2360f4ac-785ccf19489so87695239f.3; Fri, 14 Jul 2023 10:40:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356448; x=1691948448; 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=aFT9PNMmBztDXyn5rk0S0F3jD8xFge6alwT8Dw67VL8=; b=WobTP2wlki2RRB2C/X2wBS5UvzvKOFbCqWDXytEQOwr2BPobWt19lHNG31W3EktBki gl7at0UVDMJMia+vK1ANssvp0dNU/5kmCfEuwyNoJB+h18bNIKqbp+1Y2zUhnxwvGm5G OQGSjfaDTAwXY1v3c85V++KfQAya1wc4zmVN7cgryl6FHXeE6+78yEaQk9M+lEmSej/N vgVvF9/spTwDr27JB1+26MEFOkRGayJ45ToUtZg6tUhSPn1iBhrad12zQiU7ieWs2AzK cSWnSfRbUNEqwODhaRy7KvW+s4q7+aIvbSErw0PkNMQcAyZ+5FOjwZbfgv56xKeQY9cZ eQfg== X-Gm-Message-State: ABy/qLabzZOdQVh6iPvBbzIq/0Vm4cxXZe2ToIqrDWULqn52BSq1MuYD uWKkOoswBdgR3yJ7i7Qt89GBz/yp7Q== X-Received: by 2002:a92:de0e:0:b0:347:70a8:1749 with SMTP id x14-20020a92de0e000000b0034770a81749mr4817126ilm.24.1689356448356; Fri, 14 Jul 2023 10:40:48 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id w17-20020a92c891000000b0034233fd80d3sm2889354ilo.22.2023.07.14.10.40.47 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:40:47 -0700 (PDT) Received: (nullmailer pid 4040658 invoked by uid 1000); Fri, 14 Jul 2023 17:40:46 -0000 From: Rob Herring <robh@kernel.org> To: Paul Walmsley <paul.walmsley@sifive.com>, Palmer Dabbelt <palmer@dabbelt.com>, Albert Ou <aou@eecs.berkeley.edu> Cc: devicetree@vger.kernel.org, linux-riscv@lists.infradead.org, linux-kernel@vger.kernel.org Subject: [PATCH] riscv: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:40:43 -0600 Message-Id: <20230714174043.4040561-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: 1771419120706960394 X-GMAIL-MSGID: 1771419120706960394 |
Series |
riscv: 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/riscv/kernel/cpufeature.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/arch/riscv/kernel/cpufeature.c b/arch/riscv/kernel/cpufeature.c index bdcf460ea53d..d75941be9826 100644 --- a/arch/riscv/kernel/cpufeature.c +++ b/arch/riscv/kernel/cpufeature.c @@ -13,7 +13,6 @@ #include <linux/memory.h> #include <linux/module.h> #include <linux/of.h> -#include <linux/of_device.h> #include <asm/acpi.h> #include <asm/alternative.h> #include <asm/cacheflush.h>