From patchwork Fri Jul 14 17:51:29 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Rob Herring X-Patchwork-Id: 120657 Return-Path: Delivered-To: ouuuleilei@gmail.com Received: by 2002:a59:a6b2:0:b0:3e4:2afc:c1 with SMTP id c18csp2673285vqm; Fri, 14 Jul 2023 11:13:24 -0700 (PDT) X-Google-Smtp-Source: APBJJlEYM2rfLw9+vGxYT7Au08Ect0ulG1mj+ZsdO+YYR2sr12e356EBkLf26sYGFBbY3c8hgWFZ X-Received: by 2002:a17:902:c40f:b0:1ac:63ac:10a7 with SMTP id k15-20020a170902c40f00b001ac63ac10a7mr5057810plk.68.1689358404579; Fri, 14 Jul 2023 11:13:24 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689358404; cv=none; d=google.com; s=arc-20160816; b=TdgTuIPSQCJarphvzBhXUzIrCr1htzkd1ffm7C/bU1tdVYb/F8x6J3j8vCVRRIVMhU wtME3AvMU0IC7BChyQeGJ40KatQImq4s/hb7lcjcZPL9hkjDHvK9FzKIvWaeW/cGuGWo 8P/9hzY4fFxSumGg6pxPvqC4gdNK6wuFPm+wHEZ36J8RUJND8vshvKnuCzt+/FXe0fQA ffteDHzY5+bpf1wRv8v4WbPacaTt+dHI9lt9TAwxYDv1F9FNHWBU4hi0t/9Z0RlYpase /bEYFrqKXj7o3vOPge5O96/goZDH8bhVp4iDyFvWUPsBH7aYs7nvg1lygpfFLTnJUzTe iSDg== 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=zbnWXAP6JBrW+dHGKwXKkOfj8OfWH0aRyqnE7uTJeWs=; fh=Ul/RLyzwD4nUL3Dw51+KpVDiBL7aVOL3sLvTz/uy3n8=; b=XglY0tBT+6Y+dBJLVrW59BeC0y9d6LSMsPmxykosAMnyYtFogl3OwqBmd/pfN1QWSg 012OjjlvZbUYHKc7Q7CCPwu5oO4cT2iz0+n8l1HR1EGXMzcSHLTd1YYPSI+JJidxRnoe Ac1yUa41x0BY+zSpZO/yEIEXG8+EipmOk2cksTcaRBI/LymE0hF64ghLbCirC/1W4HFM kUDE/W7SH0sOrEjgmWO4GJD9oLJ1x8QHnZtAg5dX7Ov+W2swCenCnqL8lnOKsp9pjATi sRBh+QSFd5sebo9cBJOeXOf1no7MaohUkpfJCxA1TkF8r0IX8lX+UqCgjUQ2BYgOr0l9 6KzA== 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 z7-20020a170903018700b001b046acc853si2931632plg.589.2023.07.14.11.13.11; Fri, 14 Jul 2023 11:13: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 S236550AbjGNR67 (ORCPT + 99 others); Fri, 14 Jul 2023 13:58:59 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45768 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237052AbjGNR6g (ORCPT ); Fri, 14 Jul 2023 13:58:36 -0400 Received: from mail-io1-xd2f.google.com (mail-io1-xd2f.google.com [IPv6:2607:f8b0:4864:20::d2f]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 87D053C22; Fri, 14 Jul 2023 10:58:09 -0700 (PDT) Received: by mail-io1-xd2f.google.com with SMTP id ca18e2360f4ac-7872d448c5aso90289839f.0; Fri, 14 Jul 2023 10:58:09 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1689357118; x=1691949118; 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=zbnWXAP6JBrW+dHGKwXKkOfj8OfWH0aRyqnE7uTJeWs=; b=aODUPDw0eoHBj18TjlcxSfLEDixS/oBrXQmLWZbYgSdAUTwj747iNumRW2DZMBdnre lmk0zhJBsn6k1yGv2wsa0RYYphWhTX/FSR1ILH5HaDJm6EDchlFV7+rR2UPC1ea7BBvW GG5fLujFPkli2GNhWkkeUC+/nYAgIBJ+QMUch2alUcFSCBeQHFU4idKTPADrELKdQGHL Z7AfUqldhCl2oI8K6i6WjkApmGKC85BeW21bJClaIRnEY4JSsW7qIUrWrgK8hxZrE489 7h276ac2YF1Kfe0sP5p3Nb8PTEbYO5Lh8LJY8wUYqx8jBi0o51vO1WS3rM7FogG0S8Gy dXjQ== X-Gm-Message-State: ABy/qLYQ/fciCIfMZP9oA9K2kSZP3mXdfiFBAUatnSUAD9ySeWmPYi7/ wKp3yAppkYuNyNUR8lRYDw== X-Received: by 2002:a5e:8b49:0:b0:785:ca70:46a2 with SMTP id z9-20020a5e8b49000000b00785ca7046a2mr6042928iom.4.1689357118670; Fri, 14 Jul 2023 10:51:58 -0700 (PDT) Received: from robh_at_kernel.org ([64.188.179.250]) by smtp.gmail.com with ESMTPSA id u8-20020a5edd48000000b007862c74cec6sm2797330iop.1.2023.07.14.10.51.57 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 14 Jul 2023 10:51:57 -0700 (PDT) Received: (nullmailer pid 4067296 invoked by uid 1000); Fri, 14 Jul 2023 17:51:31 -0000 From: Rob Herring To: =?utf-8?b?UmFmYcWCIE1pxYJlY2tp?= , Florian Fainelli , Broadcom internal kernel review list Cc: devicetree@vger.kernel.org, linux-pm@vger.kernel.org, linux-mips@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] soc: bcm: Explicitly include correct DT includes Date: Fri, 14 Jul 2023 11:51:29 -0600 Message-Id: <20230714175130.4067236-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,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: 1771420678194300471 X-GMAIL-MSGID: 1771420678194300471 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 Reviewed-by: Philippe Mathieu-Daudé --- drivers/soc/bcm/bcm63xx/bcm-pmb.c | 1 - drivers/soc/bcm/bcm63xx/bcm63xx-power.c | 1 - 2 files changed, 2 deletions(-) diff --git a/drivers/soc/bcm/bcm63xx/bcm-pmb.c b/drivers/soc/bcm/bcm63xx/bcm-pmb.c index 9407cac47fdb..a72ba26ecf9d 100644 --- a/drivers/soc/bcm/bcm63xx/bcm-pmb.c +++ b/drivers/soc/bcm/bcm63xx/bcm-pmb.c @@ -8,7 +8,6 @@ #include #include #include -#include #include #include #include diff --git a/drivers/soc/bcm/bcm63xx/bcm63xx-power.c b/drivers/soc/bcm/bcm63xx/bcm63xx-power.c index aa72e13d5d0e..98b0c2430dbc 100644 --- a/drivers/soc/bcm/bcm63xx/bcm63xx-power.c +++ b/drivers/soc/bcm/bcm63xx/bcm63xx-power.c @@ -14,7 +14,6 @@ #include #include #include -#include struct bcm63xx_power_dev { struct generic_pm_domain genpd;