From patchwork Fri Jul 14 17:47:57 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 702895 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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7C41FC001B0 for ; Fri, 14 Jul 2023 18:06:30 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235891AbjGNSG3 (ORCPT ); Fri, 14 Jul 2023 14:06:29 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:53258 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236236AbjGNSG1 (ORCPT ); Fri, 14 Jul 2023 14:06:27 -0400 Received: from mail-ot1-f48.google.com (mail-ot1-f48.google.com [209.85.210.48]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 3A4731FEE; Fri, 14 Jul 2023 11:05:51 -0700 (PDT) Received: by mail-ot1-f48.google.com with SMTP id 46e09a7af769-6b9b427b4fcso1305856a34.3; Fri, 14 Jul 2023 11:05:51 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689357884; x=1691949884; 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=qRlDs3/HYDJcI/NBAEppRFw1YZC9wRoCz9bMRVEtyc4=; b=KtMpWpSH+s6EraMPkBRt6kA52HtS/3r0nKyYEQ0m84UNLwmYE5+chWQZX00Q/fTiqk TS+7E7SI3hES6LMhCBxMkcPmNwH3Ijo44yPKMCxptV4I36thxDxApLS0CPkfTReWA2OM qgEuvZVcGnl/YWA247pIQy74Gnj9WEbHTcAQ142U+B3ldVgg8y0mlN7YERRA0WMYMaA9 hv//svaFnrKR4h9tHHyMWprOg5opU1N1ZO7s63vUzbqIkKCmPOHPsBV0L0rdrkA6Di34 mdApQJxL7UlrM0/YF9cjuktIvFSQCI+OxyVJyE9b0cwr+3g1XWR3Bi5qdyLLPOQqz3xz LK4w== X-Gm-Message-State: ABy/qLapwHLP8zNS2t2mwDI6WsHH+bvhatPk2KmLWxQdQSaBLNOXuOqk yYWFbDenmeg++KQ8xkcuygnWJBnYe8MH X-Google-Smtp-Source: APBJJlGxOIA4WwbdLm9RRj0waQRZ79ZN7FIkzgiGSOzi4R8+zo2m0wQih2gIo6anhDDNozgf/q4QbA== X-Received: by 2002:a92:d490:0:b0:347:7399:b170 with SMTP id p16-20020a92d490000000b003477399b170mr4262926ilg.32.1689356900357; Fri, 14 Jul 2023 10:48:20 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id o9-20020a92c049000000b00345cce526cdsm2917031ilf.54.2023.07.14.10.48.18 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:48:19 -0700 (PDT) Received: (nullmailer pid 4060842 invoked by uid 1000); Fri, 14 Jul 2023 17:48:00 -0000 From: Rob Herring To: Wolfgang Grandegger , Marc Kleine-Budde , "David S. Miller" , Eric Dumazet , Jakub Kicinski , Paolo Abeni Cc: devicetree@vger.kernel.org, linux-can@vger.kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] can: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:47:57 -0600 Message-Id: <20230714174757.4060748-1-robh@kernel.org> X-Mailer: git-send-email 2.40.1 MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: devicetree@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/net/can/grcan.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/net/can/grcan.c b/drivers/net/can/grcan.c index 3174efdae271..6d3ba71a6a73 100644 --- a/drivers/net/can/grcan.c +++ b/drivers/net/can/grcan.c @@ -30,8 +30,9 @@ #include #include #include +#include #include -#include +#include #include #include