Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp2783587rwp; Fri, 14 Jul 2023 11:13:27 -0700 (PDT) X-Google-Smtp-Source: APBJJlG2mMrjveZRXqOKMWeCavbTVBC0DzS3np/Oq832PGpWbHsRIF+peNOFXrvp5i5EcZzNg6vP X-Received: by 2002:a05:6a21:6d8b:b0:125:4c0b:93cd with SMTP id wl11-20020a056a216d8b00b001254c0b93cdmr5099851pzb.34.1689358407212; Fri, 14 Jul 2023 11:13:27 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689358407; cv=none; d=google.com; s=arc-20160816; b=CSf1RhaAPzdUjEs35ffwMtw5ZbtpsmMpxybAKlBAxZVf9U4b9O912XEfcPJsX2/m/w mFkQLKBj5SRPJkB16ZmUsh4oDA2WZcHL664SrzBSFhw8CswqHFngbg5Iu52Z45pix3Ye GRQsxKeEa6ntx+tHx2pEGwicplUJZkOMS/yXDJ2FzXYjU/IKpqdnGWmLft7xqRmyfcfw llsdFuvw2y6Kejuq5jffX4/rbqkNNQmKMhA3yZXs2ggZVzzWlMEs7Ntjv3eb3fGme+er E4dzRYM2+UrYkmPg+nIdvnZYVSc3lvOpzEUBq6S1+xTO8RVTpKo8kLLGKM/SChIfUymw /0mw== 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=tsm18Z/x+l+oB943/XiV2kuKPcdxzHAhIxFuPRhImLE=; fh=p5YjwlzvybZNaH4CQ18f9y02JkghapyalOKMud52jpc=; b=O60R9AwFjSIOb8U/IMK8zol4qgKgq6UmM7zWD+OHsNTBrho4ofMk5H6kbTXxITBKNh dxH2o0V1B8hIFyuxvYZref72G8PXYFsh6Aw2umpU+7cEdFx14MiRi0399UGq0ioTZHWS ycrSOGDi7qowMNy+uNDRcAT3/P1eAC+sWXqz4T8UpJ6PY/WsSJt87K1DqtEavD84c69F AP+R8DovqEbciVmhf09rIbdOEVa/U55kfZCtzBS6bAtJ6YFlVvkRFrgqb2NOnAgnCumk I/O/jn75UxybwGI3F3dd0lA03sd6nycBI93Rj02+e8oKRnAIo9qTza86/ouseWUUVpPt lFqw== 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 Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id v10-20020a056a00148a00b006825e2dba7asi7524147pfu.254.2023.07.14.11.13.15; Fri, 14 Jul 2023 11:13:27 -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 S236664AbjGNR7B (ORCPT + 99 others); Fri, 14 Jul 2023 13:59:01 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45284 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236876AbjGNR6O (ORCPT ); Fri, 14 Jul 2023 13:58:14 -0400 Received: from mail-io1-xd32.google.com (mail-io1-xd32.google.com [IPv6:2607:f8b0:4864:20::d32]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id A58DE1BD4; Fri, 14 Jul 2023 10:57:49 -0700 (PDT) Received: by mail-io1-xd32.google.com with SMTP id ca18e2360f4ac-78666994bc2so90382239f.0; Fri, 14 Jul 2023 10:57:49 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689357086; x=1691949086; 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=tsm18Z/x+l+oB943/XiV2kuKPcdxzHAhIxFuPRhImLE=; b=QBNZsBu9hmnVp2P8ZWjG65b36gOrlcvmphn+vlGf53MGz1d1zVu/FnMmOQPmEEMZIS VelPW3OGf/jyOXAHGhjvoLd2Z7J+vjclo0M8x6C6Uz838DRAPQAkVrgfM9+G6kgQGPNB 6sjFDUSrDrl2XAWoV7Qgj0jCkJOQqn+mdxWplk2qCi67/CanLwOg94S6P4LdSFsJEpJX TKPocKSkySBOfWCbozP5sX8lzKS8WO7A7y7b1ZDRJvXrnG4vBIYFc/oRnSR4IiallSFC HYP5IYbVjLYAkawgnP5oT2r2GoDdf42ggJU/Xs90tHcUy3U8nSQvCtotURhhyZXIJ1yW yCxQ== X-Gm-Message-State: ABy/qLbcmawuDItYenG9WlG2HLg0mgN+S7mQ4KDa6EDTHuvwnjHFKoJQ OakQkhlVSz2OXxmjoGCoTw== X-Received: by 2002:a5e:a916:0:b0:785:fbe8:1da0 with SMTP id c22-20020a5ea916000000b00785fbe81da0mr5454406iod.15.1689357086619; Fri, 14 Jul 2023 10:51:26 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id dm26-20020a0566023b9a00b0077a1d1029fcsm2850098iob.28.2023.07.14.10.51.25 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:51:25 -0700 (PDT) Received: (nullmailer pid 4065617 invoked by uid 1000); Fri, 14 Jul 2023 17:50:38 -0000 From: Rob Herring To: Helge Deller , Michal Simek Cc: devicetree@vger.kernel.org, linux-fbdev@vger.kernel.org, dri-devel@lists.freedesktop.org, linux-kernel@vger.kernel.org, linux-omap@vger.kernel.org, linux-arm-kernel@lists.infradead.org Subject: [PATCH] fb: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:50:34 -0600 Message-Id: <20230714175035.4065508-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,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: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/video/fbdev/bw2.c | 3 ++- drivers/video/fbdev/cg14.c | 3 ++- drivers/video/fbdev/cg3.c | 3 ++- drivers/video/fbdev/cg6.c | 3 ++- drivers/video/fbdev/ffb.c | 3 ++- drivers/video/fbdev/grvga.c | 3 +-- drivers/video/fbdev/leo.c | 3 ++- drivers/video/fbdev/mb862xx/mb862xxfb_accel.c | 4 +--- drivers/video/fbdev/mb862xx/mb862xxfbdrv.c | 6 +++--- drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c | 2 +- drivers/video/fbdev/p9100.c | 3 ++- drivers/video/fbdev/platinumfb.c | 4 ++-- drivers/video/fbdev/sbuslib.c | 6 +++--- drivers/video/fbdev/sunxvr1000.c | 3 ++- drivers/video/fbdev/sunxvr2500.c | 2 +- drivers/video/fbdev/sunxvr500.c | 2 +- drivers/video/fbdev/tcx.c | 3 ++- drivers/video/fbdev/xilinxfb.c | 5 ++--- 18 files changed, 33 insertions(+), 28 deletions(-) diff --git a/drivers/video/fbdev/bw2.c b/drivers/video/fbdev/bw2.c index 025d663dc6fd..39f438de0d6b 100644 --- a/drivers/video/fbdev/bw2.c +++ b/drivers/video/fbdev/bw2.c @@ -17,7 +17,8 @@ #include #include #include -#include +#include +#include #include #include diff --git a/drivers/video/fbdev/cg14.c b/drivers/video/fbdev/cg14.c index 832a82f45c80..90fdc9d9bf5a 100644 --- a/drivers/video/fbdev/cg14.c +++ b/drivers/video/fbdev/cg14.c @@ -17,7 +17,8 @@ #include #include #include -#include +#include +#include #include #include diff --git a/drivers/video/fbdev/cg3.c b/drivers/video/fbdev/cg3.c index 6335cd364c74..98c60f72046a 100644 --- a/drivers/video/fbdev/cg3.c +++ b/drivers/video/fbdev/cg3.c @@ -17,7 +17,8 @@ #include #include #include -#include +#include +#include #include #include diff --git a/drivers/video/fbdev/cg6.c b/drivers/video/fbdev/cg6.c index 6884572efea1..6427b85f1a94 100644 --- a/drivers/video/fbdev/cg6.c +++ b/drivers/video/fbdev/cg6.c @@ -17,7 +17,8 @@ #include #include #include -#include +#include +#include #include #include diff --git a/drivers/video/fbdev/ffb.c b/drivers/video/fbdev/ffb.c index c6d3111dcbb0..c473841eb6ff 100644 --- a/drivers/video/fbdev/ffb.c +++ b/drivers/video/fbdev/ffb.c @@ -16,7 +16,8 @@ #include #include #include -#include +#include +#include #include #include diff --git a/drivers/video/fbdev/grvga.c b/drivers/video/fbdev/grvga.c index 9aa15be29ea9..d4a9a58b3691 100644 --- a/drivers/video/fbdev/grvga.c +++ b/drivers/video/fbdev/grvga.c @@ -12,8 +12,7 @@ #include #include -#include -#include +#include #include #include #include diff --git a/drivers/video/fbdev/leo.c b/drivers/video/fbdev/leo.c index 3ffc0a725f89..89ca48235dbe 100644 --- a/drivers/video/fbdev/leo.c +++ b/drivers/video/fbdev/leo.c @@ -16,8 +16,9 @@ #include #include #include -#include #include +#include +#include #include diff --git a/drivers/video/fbdev/mb862xx/mb862xxfb_accel.c b/drivers/video/fbdev/mb862xx/mb862xxfb_accel.c index 61aed7fc0b8d..c35a7479fbf2 100644 --- a/drivers/video/fbdev/mb862xx/mb862xxfb_accel.c +++ b/drivers/video/fbdev/mb862xx/mb862xxfb_accel.c @@ -15,9 +15,7 @@ #include #include #include -#if defined(CONFIG_OF) -#include -#endif + #include "mb862xxfb.h" #include "mb862xx_reg.h" #include "mb862xxfb_accel.h" diff --git a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c index b5c8fcab9940..9dc347d163cf 100644 --- a/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c +++ b/drivers/video/fbdev/mb862xx/mb862xxfbdrv.c @@ -18,11 +18,11 @@ #include #include #include -#if defined(CONFIG_OF) +#include #include #include -#include -#endif +#include + #include "mb862xxfb.h" #include "mb862xx_reg.h" diff --git a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c b/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c index ba94a0a7bd4f..77fce1223a64 100644 --- a/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c +++ b/drivers/video/fbdev/omap2/omapfb/displays/panel-dsi-cm.c @@ -15,12 +15,12 @@ #include #include #include +#include #include #include #include #include #include -#include #include