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: 120668 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2684932vqm; Fri, 14 Jul 2023 11:38:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlFDHJnUHNpID+ZikSMDo0Vylozks8xalRoAQw/b4lVvI77vxtXovpNSxqKUv4BWA8+fLcae X-Received: by 2002:a05:6870:2d6:b0:1b7:4655:2ac3 with SMTP id r22-20020a05687002d600b001b746552ac3mr7778792oaf.13.1689359904677; Fri, 14 Jul 2023 11:38:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689359904; cv=none; d=google.com; s=arc-20160816; b=IQJyiGByOrzzTbPngVJYoPfMUlcqkyZYXZ1nkME2CZBZKx0DSCtWBVvSkKxpsbpMOn mud4iWLng9KXVLpzGAVUajU2qdT5oikswqFNjnXpwjFtZR16NZCcZGuoJpfolzURg70E ubeRI41C9W2KkXQuHKIZfXnLBn3QMbwF6l9/sjLOHoA5z/oy5ceCDthWV9G9YNAj+Hxg qA2rTB0SjLJRD3pXASEnbIDa0KJ2CbYuVgwiIeS5J3eXT+X/gI99xMDqNUsW6VQHVbHF /B2ShyZXphALU05lgnjXuU7x2b1HmsHxQoB+VJLHiXBqg7/lSDNXp5X5rHYVIqW+91OF BXUw== 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=qRlDs3/HYDJcI/NBAEppRFw1YZC9wRoCz9bMRVEtyc4=; fh=N+j3AboGhO1z29w8qyTZLiQnq6XGvj53NudPB5XSam4=; b=F0QEN9QCjK+fSOY+vFjwLxHpeXRTKnDlQHsasYxVKTiWf7+rJ1H68TYMaV1kjMkmOJ JJYgJqxxW37fMTlSqT+e1CjtlGQHw6ammKdr+Pk6b5ylWwon4IdvmCSEB9ep/YfKQ8Jb 5aHpzE9mHY5Y7DFEk1kryY28FPbk9B7LNBUNjUiPKJ3Jp/2DMfwAnbjcoSZbzSI1VOyv NoqH4JhnAnwz5X9N4lI4/l4YGJKwCyLLK9BU/qB7NWfdBxNBsP7trk8np51R/xGedDzC ffbosanNw43qYu4poUvQ1W+Zvu3Gb0QvkoXdNP1zBu9aG2Ap2gNePuruRRNQu9UhnE2n nt4g== 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 x5-20020a654145000000b0053f265b0eecsi4929272pgp.133.2023.07.14.11.38.11; Fri, 14 Jul 2023 11:38:24 -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 S236517AbjGNSGa (ORCPT + 99 others); Fri, 14 Jul 2023 14:06:30 -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-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 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_NONE,RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL,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 X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771422251228327777 X-GMAIL-MSGID: 1771422251228327777 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