From patchwork Fri Jul 14 17:51:51 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 120647 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2671667vqm; Fri, 14 Jul 2023 11:10:29 -0700 (PDT) X-Google-Smtp-Source: APBJJlGJPvd9fy1Tv2v8mRW7HziUveUNTijcw2r075HTjHjaOCKbtgr2awOE+pfQXBvXPxarOU0t X-Received: by 2002:a05:6a00:3908:b0:675:ef91:7922 with SMTP id fh8-20020a056a00390800b00675ef917922mr5293101pfb.4.1689358229094; Fri, 14 Jul 2023 11:10:29 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689358229; cv=none; d=google.com; s=arc-20160816; b=KZZKsq24wZh6IZRw65bYSkRtjvYEyevlgSQ/Gqi1rRPXr06i/dARQM4RV7RbsjuCgW x9R78JW0sLO6SAbs3RmFDWeEDicm1JmgLJ0vPckRryJLkXC01muY3OzhK04CbxNI0wOW MEFbuIPnc5r6GcIv4oRTszMwSjBURvWM3HUGnkGzscngPAHbSV2fD36t8kKlKDq9iimy n2VIzKur8MDNx7WM59GMFIqzOVGBf0AtGoyc8KOzdMP4yFcSliMw8IfkrsDgyvsdQFaQ CPVLiTkVXStScFzTglzCc9S6/yd2/a2ioWXnKykx/P0cpDLcoVwTUqqHAhYaR91bwwJD 6oww== 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=QClPpmwO/HygdGxUVkymGnsqhcX8BPsEQP+ZwgNTHR4=; fh=heqbeW0BOaViSuFIjVBJ0ajBrOiGVwECYDiqQqusJxs=; b=OcoI+JWfa8xsdnsTN4S6YJRxhamhdCXBs3PYrX7ky0oQSUCo6Idxhg3Bwx3JsqiG6V za7m5cKgbhrhFa1CT0RgYldVK3GdWF0xOcuSq+tMswfQVy9KOEydporUxCOhh/eeJpS2 HaWF9BwIf6JOFW/so6+evFjoc4D4gie3IYrJC3QolRsxntX9OfVnvn5VAMMepOAiaGa6 NeehXCKGvyl5hEWQeimnB1uGpt007LCNXsnrANXUYf2MiMz6YnQ9l9s+WKe6Pc5K5IHZ Q3Dpa88G9RXbiqZKggkZwD2Z5Co0PX0PQ86JlVWHIXWT1MAbWpmv7pcK5IjL2UhUM+wf 5HDQ== 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 t33-20020a634461000000b005582ab00bedsi7518595pgk.387.2023.07.14.11.10.16; Fri, 14 Jul 2023 11:10:29 -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 S236805AbjGNRyT (ORCPT + 99 others); Fri, 14 Jul 2023 13:54:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:40108 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236608AbjGNRxw (ORCPT ); Fri, 14 Jul 2023 13:53:52 -0400 Received: from mail-io1-f53.google.com (mail-io1-f53.google.com [209.85.166.53]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 5BCB44211; Fri, 14 Jul 2023 10:53:24 -0700 (PDT) Received: by mail-io1-f53.google.com with SMTP id ca18e2360f4ac-783546553ddso86078739f.0; Fri, 14 Jul 2023 10:53:24 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689357140; x=1691949140; 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=QClPpmwO/HygdGxUVkymGnsqhcX8BPsEQP+ZwgNTHR4=; b=GD/EOlhc5OOieCNzgQHAOadosFH3KoAzLDsTCMVE0aS5qhH5LLiIVb6Q3uYXGnRJIO VA4zwj6ytl/ND+fheywmjLuihJxXEUINalTDESuM2dNI+J4zqrT8rfc0q71khcnGFubK vx7vdkh7FRXXZeIZKfVSjTH9YbW1+MAe0uf2nRKJdITfyTEBWgkbpdgAZUfTCywykKtI vrVgt7bJattukuCNBot8WMlmNjww9KzQr04zcsJ9BroR0bGyeDQKQ4OJBjD3XZmI0gMC YMD9k3dwdx7ZK5hZ9oWQIEvkwtITGe54u5lQxACDnhZDtVwAt9+0Cg33i95tDadzlmod kXHw== X-Gm-Message-State: ABy/qLYk1JXgptwL6tDsqY35AG04iXDcWE4v66G3K1id0F1AOedGxes9 eo6rnbvUpUkb01xhYrxYbA== X-Received: by 2002:a05:6e02:80c:b0:340:79ff:c1b6 with SMTP id u12-20020a056e02080c00b0034079ffc1b6mr5166464ilm.4.1689357140597; Fri, 14 Jul 2023 10:52:20 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id m22-20020a02c896000000b0042b56b57a50sm2614585jao.171.2023.07.14.10.52.19 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:52:19 -0700 (PDT) Received: (nullmailer pid 4068370 invoked by uid 1000); Fri, 14 Jul 2023 17:51:54 -0000 From: Rob Herring To: Chen-Yu Tsai , Jernej Skrabec , Samuel Holland Cc: devicetree@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-sunxi@lists.linux.dev, linux-kernel@vger.kernel.org Subject: [PATCH] soc: sunxi: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:51:51 -0600 Message-Id: <20230714175152.4068286-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_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: X-Mailing-List: linux-kernel@vger.kernel.org X-getmail-retrieved-from-mailbox: INBOX X-GMAIL-THRID: 1771420494505324524 X-GMAIL-MSGID: 1771420494505324524 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/soc/sunxi/sun20i-ppu.c | 2 +- drivers/soc/sunxi/sunxi_sram.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/soc/sunxi/sun20i-ppu.c b/drivers/soc/sunxi/sun20i-ppu.c index 98cb41d36560..8700f9dd5f75 100644 --- a/drivers/soc/sunxi/sun20i-ppu.c +++ b/drivers/soc/sunxi/sun20i-ppu.c @@ -5,7 +5,7 @@ #include #include #include -#include +#include #include #include #include diff --git a/drivers/soc/sunxi/sunxi_sram.c b/drivers/soc/sunxi/sunxi_sram.c index 4c4864cd2342..4458b2e0562b 100644 --- a/drivers/soc/sunxi/sunxi_sram.c +++ b/drivers/soc/sunxi/sunxi_sram.c @@ -15,7 +15,7 @@ #include #include #include -#include +#include #include #include