From patchwork Fri Jul 14 17:44:09 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Rob Herring (Arm)" X-Patchwork-Id: 13313925 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D57A8C001DC for ; Fri, 14 Jul 2023 17:44:52 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender: Content-Transfer-Encoding:Content-Type:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:Message-Id:Date:Subject:Cc :To:From:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To:References: List-Owner; bh=SZKRLwj5X9dUvR9m5123AVLEtpBmyv6lKPFZJZ5jbVU=; b=smb05kiQyoWCHo FkXLnc4/7Tl2Tj95dPrr7brNWCe7IfWhWTs2DGmC1kj20e4WffaJcYQplS91QKVMyTd1DiwFOZ4Cz g80E7JgSfVbhbk3aXX9+47820nuYqEl9ZYq57uvUZSOdc1IdqY3Vxe+JhY7HugHrCpEddhxLlEqzA Z1SItxbyhhQLE2PabVMZL+D+IE4N/6r8YhtUeAZUcV62r+qWQ+zRFag+GjmFJzuVCoGxkU9iqUb3Y UocjjbmzJY3K6sGWsJJlRCHLeu9Zke83BSqebz1LzT3rqAn0XhMf2RRQSqR5NyFjcwy3Ks7uU1hlE YstzOIvC42pCciGVm/3g==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.96 #2 (Red Hat Linux)) id 1qKMq7-006n9E-1h; Fri, 14 Jul 2023 17:44:23 +0000 Received: from mail-il1-f172.google.com ([209.85.166.172]) by bombadil.infradead.org with esmtps (Exim 4.96 #2 (Red Hat Linux)) id 1qKMq4-006n5R-1f; Fri, 14 Jul 2023 17:44:22 +0000 Received: by mail-il1-f172.google.com with SMTP id e9e14a558f8ab-3460815fde5so10360925ab.2; Fri, 14 Jul 2023 10:44:16 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689356656; x=1691948656; 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=g8skStFDOXTknvcj3hj7vs1tDZ9Dye1jTlfDv2JHfSA=; b=S5aDnuBshLiEe/I2nrwQzR6JUBfv9FNTKoBwhbSwG0zpXriSPXMvpSQJBnC0BceBYi BYcrPFOU3ETU1tV5yGgIfq9tOgFS6GtaSsIYYS9t7ZDhcHL2V2fc3g01RVunaYhIjGB/ ho8R1NrncVjN2HPRJn6InmdHEFMWXa0VT/Gk+csoSbryDbGJJU7OFd3BufL9qftGjzM8 1cQBW99VbnGBJMPxcY1e6qZVRDL8JeElXTKAzorQ3AjLPk5CbdNdETGcku3lxrSkBnNL /FvzAYs5XX4IvJ2bzJl0BSR4Mdx+mCoMri2mbaK7CIRDvUYAN5tJk9DHtctFVNE+UsWv MWoA== X-Gm-Message-State: ABy/qLYewbvr2j89gmw7h+lfLPUORYvhVlZaH5RndhWwbkAApbPk6HDN LaZmUW048RCNp34XfbUveQ== X-Google-Smtp-Source: APBJJlGiTa/QUw4kYTN/GCYI+lP9irbXOHggTxTC1FEOM5XlHlp6a7ydxOnN43/wbfPexuMMZ/Vgag== X-Received: by 2002:a92:690c:0:b0:346:191b:1e02 with SMTP id e12-20020a92690c000000b00346191b1e02mr4927984ilc.29.1689356655947; Fri, 14 Jul 2023 10:44:15 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id 18-20020a92c652000000b00345ffd35a29sm2909624ill.68.2023.07.14.10.44.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:44:15 -0700 (PDT) Received: (nullmailer pid 4053967 invoked by uid 1000); Fri, 14 Jul 2023 17:44:13 -0000 From: Rob Herring To: Daniel Lezcano , Thomas Gleixner , Florian Fainelli , Ray Jui , Scott Branden , Broadcom internal kernel review list , Michal Simek , Jean-Marie Verdun , Nick Hawkins , Thierry Reding , Jonathan Hunter Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org, linux-rpi-kernel@lists.infradead.org, linux-arm-kernel@lists.infradead.org, linux-tegra@vger.kernel.org Subject: [PATCH] clocksource: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:44:09 -0600 Message-Id: <20230714174409.4053843-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20230714_104420_555470_14EF5FD4 X-CRM114-Status: GOOD ( 13.16 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=archiver.kernel.org@lists.infradead.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/clocksource/bcm2835_timer.c | 2 +- drivers/clocksource/nomadik-mtu.c | 2 +- drivers/clocksource/sh_cmt.c | 1 - drivers/clocksource/timer-cadence-ttc.c | 1 + drivers/clocksource/timer-gxp.c | 1 + drivers/clocksource/timer-integrator-ap.c | 2 +- drivers/clocksource/timer-tegra186.c | 1 - drivers/clocksource/timer-ti-dm.c | 1 - 8 files changed, 5 insertions(+), 6 deletions(-) diff --git a/drivers/clocksource/bcm2835_timer.c b/drivers/clocksource/bcm2835_timer.c index 1592650b2c92..319c0c780a15 100644 --- a/drivers/clocksource/bcm2835_timer.c +++ b/drivers/clocksource/bcm2835_timer.c @@ -10,9 +10,9 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/drivers/clocksource/nomadik-mtu.c b/drivers/clocksource/nomadik-mtu.c index 1cf3304652d6..53d0159cc6be 100644 --- a/drivers/clocksource/nomadik-mtu.c +++ b/drivers/clocksource/nomadik-mtu.c @@ -10,9 +10,9 @@ #include #include #include +#include #include #include -#include #include #include #include diff --git a/drivers/clocksource/sh_cmt.c b/drivers/clocksource/sh_cmt.c index e81c588d9afe..26919556ef5f 100644 --- a/drivers/clocksource/sh_cmt.c +++ b/drivers/clocksource/sh_cmt.c @@ -18,7 +18,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/clocksource/timer-cadence-ttc.c b/drivers/clocksource/timer-cadence-ttc.c index 0d52e28fea4d..32daaac9b132 100644 --- a/drivers/clocksource/timer-cadence-ttc.c +++ b/drivers/clocksource/timer-cadence-ttc.c @@ -13,6 +13,7 @@ #include #include #include +#include #include #include #include diff --git a/drivers/clocksource/timer-gxp.c b/drivers/clocksource/timer-gxp.c index fe4fa8d7b3f1..57aa2e2cce53 100644 --- a/drivers/clocksource/timer-gxp.c +++ b/drivers/clocksource/timer-gxp.c @@ -8,6 +8,7 @@ #include #include #include +#include #include #define TIMER0_FREQ 1000000 diff --git a/drivers/clocksource/timer-integrator-ap.c b/drivers/clocksource/timer-integrator-ap.c index b0fcbaac58b0..a4c700b11dc0 100644 --- a/drivers/clocksource/timer-integrator-ap.c +++ b/drivers/clocksource/timer-integrator-ap.c @@ -7,9 +7,9 @@ #include #include +#include #include #include -#include #include #include #include diff --git a/drivers/clocksource/timer-tegra186.c b/drivers/clocksource/timer-tegra186.c index 83d08591ea0a..304537dadf2c 100644 --- a/drivers/clocksource/timer-tegra186.c +++ b/drivers/clocksource/timer-tegra186.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/clocksource/timer-ti-dm.c b/drivers/clocksource/timer-ti-dm.c index 349236a7ba5f..09ab29cb7f64 100644 --- a/drivers/clocksource/timer-ti-dm.c +++ b/drivers/clocksource/timer-ti-dm.c @@ -27,7 +27,6 @@ #include #include #include -#include #include #include