Received: by 2002:a05:6358:7058:b0:131:369:b2a3 with SMTP id 24csp5363060rwp; Mon, 17 Jul 2023 02:47:51 -0700 (PDT) X-Google-Smtp-Source: APBJJlHACC2wY7LPWmj7fKpjw3vH0+jjiuIjqhGuFK0bTUR+oL4FMeMDqRm+6yCe2hzzWC4jeR+q X-Received: by 2002:a17:902:d2c5:b0:1b7:d0b3:1678 with SMTP id n5-20020a170902d2c500b001b7d0b31678mr11220666plc.17.1689587271245; Mon, 17 Jul 2023 02:47:51 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1689587271; cv=none; d=google.com; s=arc-20160816; b=AkfpaEVqNFrbz1Dg0QUr22lGaMWnPKL3DXhFZw3gfLAb72WnQEPEUCrBJuolnzIgi4 iZdG5tsNjPd5XV9+7KdqP/YCsaaR262sXbnMS87aTtsEDXpomjhIeGI6oWsIZtnsxucm DqjQhdNNv6jYIZsWJNZ0gfkCg0DX/k2hl7PeWt6pQgyWIF9LZ0HnJG+vriBEFc15nWOI wJTf/7zrhIpwBMGsQj4FdlWxUVwurawRk30YTasg5F5KdozQnVNnXR1OPi7tDUC0DLlb wG0TCipDzZ62dJW/ElrNUzCMAF7BgRhdlehQOAA1EExXhFvkl44SFIMaxUSrvBqW9yGB 4P+g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to:from :references:cc:to:content-language:subject:user-agent:mime-version :date:message-id; bh=5CfmAvx51tiP6AFN6mxMzckIPTNjhR42Wij+RzLa/bI=; fh=7wktNwABenyPrsQylkPKAGfcvwf1hLyPX/pUGUkPJHY=; b=IN+dqGwgFTafjl61ZGWwifyWQlq0/imNN6rToGDR2OiLnq22QfhXEsLD4Y9/GiCqG9 hA5Rh9DpQCeqTuFfOnAv/JYexgX7C0jFcKyfIHE9bPuw2tkJN3EmOdHY1BOVj4AiCNAI QkeBHCQymGcpqhT5UY9jZpzUrWrLEQXxEcoYxjNNyEFi6wCZnRPe+82gjsQfRiu4zpIj ZOk7F6OyfZci6NbGIZa4Rro1S0w1hY1OoEonFbjp7AJFs6VITWSKNTSjkMeF1xVouskO g9zsK9xsFzUsSmM3m/LOeiCqo6JvYTs+xnx/AWIW6EIbzJNS+CWJTAxwD93Y1l9/zuWB 89Xg== 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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id f12-20020a170902ce8c00b001b8a7ec395asi11597539plg.604.2023.07.17.02.47.37; Mon, 17 Jul 2023 02:47:51 -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=fail (p=NONE sp=NONE dis=NONE) header.from=arm.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229925AbjGQJ0Q (ORCPT + 99 others); Mon, 17 Jul 2023 05:26:16 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:37356 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229564AbjGQJ0O (ORCPT ); Mon, 17 Jul 2023 05:26:14 -0400 Received: from foss.arm.com (foss.arm.com [217.140.110.172]) by lindbergh.monkeyblade.net (Postfix) with ESMTP id C8EDEC7; Mon, 17 Jul 2023 02:26:11 -0700 (PDT) Received: from usa-sjc-imap-foss1.foss.arm.com (unknown [10.121.207.14]) by usa-sjc-mx-foss1.foss.arm.com (Postfix) with ESMTP id 55B8BD75; Mon, 17 Jul 2023 02:26:54 -0700 (PDT) Received: from [10.1.197.1] (ewhatever.cambridge.arm.com [10.1.197.1]) by usa-sjc-imap-foss1.foss.arm.com (Postfix) with ESMTPSA id D29D23F73F; Mon, 17 Jul 2023 02:26:09 -0700 (PDT) Message-ID: Date: Mon, 17 Jul 2023 10:26:08 +0100 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:102.0) Gecko/20100101 Thunderbird/102.13.0 Subject: Re: [PATCH] hwtracing: coresight: Explicitly include correct DT includes Content-Language: en-US To: Rob Herring , Mike Leach , James Clark , Leo Yan , Alexander Shishkin Cc: devicetree@vger.kernel.org, coresight@lists.linaro.org, linux-arm-kernel@lists.infradead.org, linux-kernel@vger.kernel.org References: <20230714174611.4057415-1-robh@kernel.org> From: Suzuki K Poulose In-Reply-To: <20230714174611.4057415-1-robh@kernel.org> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,NICE_REPLY_A, RCVD_IN_DNSWL_BLOCKED,SPF_HELO_NONE,SPF_NONE,T_SCC_BODY_TEXT_LINE autolearn=ham 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 Hi Rob Thanks for the cleanup. Please find my comments below. On 14/07/2023 18:46, Rob Herring wrote: > 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/hwtracing/coresight/coresight-core.c | 2 +- > drivers/hwtracing/coresight/coresight-platform.c | 3 +-- > 2 files changed, 2 insertions(+), 3 deletions(-) > > diff --git a/drivers/hwtracing/coresight/coresight-core.c b/drivers/hwtracing/coresight/coresight-core.c > index 118fcf27854d..9fabe00a40d6 100644 > --- a/drivers/hwtracing/coresight/coresight-core.c > +++ b/drivers/hwtracing/coresight/coresight-core.c > @@ -17,7 +17,7 @@ > #include > #include > #include > -#include > +#include > #include > #include This looks correct to me. > > diff --git a/drivers/hwtracing/coresight/coresight-platform.c b/drivers/hwtracing/coresight/coresight-platform.c > index 3e2e135cb8f6..d94b0e77bcfc 100644 > --- a/drivers/hwtracing/coresight/coresight-platform.c > +++ b/drivers/hwtracing/coresight/coresight-platform.c > @@ -9,9 +9,8 @@ > #include > #include > #include > -#include > +#include We already include of.h two lines above, so we could skip this. > #include > -#include > #include > #include > #include Suzuki