Received: by 2002:a05:6a10:8395:0:0:0:0 with SMTP id n21csp360908pxh; Wed, 10 Nov 2021 03:01:50 -0800 (PST) X-Google-Smtp-Source: ABdhPJyDhi82WOMvUzZI2K21Im/zpNT6206AnLaa4I5aq46qS1HJjtHmMkYuJueMB21Vj2kbyEg/ X-Received: by 2002:a02:624c:: with SMTP id d73mr11553923jac.32.1636542110380; Wed, 10 Nov 2021 03:01:50 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1636542110; cv=none; d=google.com; s=arc-20160816; b=ipU73qcNbs+Oma+rU1NC9B0toxPTpD/NiNBpis0f8Vd8m8TxcuriHChxF57E2QFHyv fdHhWI4Uxf8l/zssL+WzC75AUzC0li4kkXtxRKlhIvGLXmKivaTUbyiDJw2wtLDtFYfA hiziyFkz44D+/i1M4IXYzpxiVcObkNVJUlce5w8LMKlmS6+XfPkKJRovb3AjHb86xuGt rIlW1d36KnBoNyhB/NX6n0LK5u5aCQBrQwM58eOvzDa4Dom4tgbNB1pB3AHSVWrpLIP9 qgJ4I6sXCzh+Mn8qAjZFm2wbUPKqPDuoefuL3oR+W7lXzUFC/Q08SzM7EMtlZIJOQt9q iP4A== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=gdO6mJhYdqv1Df305hdfTp2G1AEECQghZOhqGbmR6co=; b=nPJz5abDpSowpkFHT6Ptp/woaAJrZaI28+aHtrWTYKAvzkea4cc/LtpLOCvsd7XaGm Q4VxiUIujC/k6gBXubO61QNnEloIOHqFEic7GyH7lBxxOWe8JrNfLWcKwnQF96FRiCa3 cRMTCnjTya8WxtbzRSEpO/8g3anMGLvlE51ZrfoiGtnUSXuEpPJ0GaVX1djuWjjpDX0N ww8gMwWWtzhtYHW9i4i0HAGMQhgZINxD9TCOJS9MDF79m2jtMEhWnxTN83fDXL+0hsmQ 5J8Az93syk3RH/z4pXFnts98bWt1heau0F0UNxwa02cVGc6af+eo6ylzLzpWgB8RfZ2O EzpA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id u13si4191116ill.116.2021.11.10.03.01.34; Wed, 10 Nov 2021 03:01:50 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=intel.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231511AbhKJLCr (ORCPT + 99 others); Wed, 10 Nov 2021 06:02:47 -0500 Received: from mga01.intel.com ([192.55.52.88]:58735 "EHLO mga01.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbhKJLCn (ORCPT ); Wed, 10 Nov 2021 06:02:43 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10163"; a="256337087" X-IronPort-AV: E=Sophos;i="5.87,223,1631602800"; d="scan'208";a="256337087" Received: from fmsmga008.fm.intel.com ([10.253.24.58]) by fmsmga101.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 10 Nov 2021 02:59:56 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.87,223,1631602800"; d="scan'208";a="545970351" Received: from black.fi.intel.com ([10.237.72.28]) by fmsmga008.fm.intel.com with ESMTP; 10 Nov 2021 02:59:54 -0800 Received: by black.fi.intel.com (Postfix, from userid 1003) id C735027B; Wed, 10 Nov 2021 12:59:56 +0200 (EET) From: Andy Shevchenko To: Andy Shevchenko , linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Cc: Li Yang , Qiang Zhao Subject: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions Date: Wed, 10 Nov 2021 12:59:52 +0200 Message-Id: <20211110105952.62013-3-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211110105952.62013-1-andriy.shevchenko@linux.intel.com> References: <20211110105952.62013-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org When kernel.h is used in the headers it adds a lot into dependency hell, especially when there are circular dependencies are involved. Replace kernel.h inclusion with the list of what is really being used. Signed-off-by: Andy Shevchenko --- v2: updated Cc list based on previous changes to MAINTAINERS include/soc/fsl/dpaa2-fd.h | 3 ++- include/soc/fsl/qe/immap_qe.h | 3 ++- include/soc/fsl/qe/qe_tdm.h | 4 +++- include/soc/fsl/qe/ucc_fast.h | 2 +- include/soc/fsl/qe/ucc_slow.h | 2 +- 5 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/soc/fsl/dpaa2-fd.h b/include/soc/fsl/dpaa2-fd.h index 90ae8d191f1a..bae490cac0aa 100644 --- a/include/soc/fsl/dpaa2-fd.h +++ b/include/soc/fsl/dpaa2-fd.h @@ -7,7 +7,8 @@ #ifndef __FSL_DPAA2_FD_H #define __FSL_DPAA2_FD_H -#include +#include +#include /** * DOC: DPAA2 FD - Frame Descriptor APIs for DPAA2 diff --git a/include/soc/fsl/qe/immap_qe.h b/include/soc/fsl/qe/immap_qe.h index 7614fee532f1..edd601f53f5d 100644 --- a/include/soc/fsl/qe/immap_qe.h +++ b/include/soc/fsl/qe/immap_qe.h @@ -13,7 +13,8 @@ #define _ASM_POWERPC_IMMAP_QE_H #ifdef __KERNEL__ -#include +#include + #include #define QE_IMMAP_SIZE (1024 * 1024) /* 1MB from 1MB+IMMR */ diff --git a/include/soc/fsl/qe/qe_tdm.h b/include/soc/fsl/qe/qe_tdm.h index b6febe225071..43ea830cfe1f 100644 --- a/include/soc/fsl/qe/qe_tdm.h +++ b/include/soc/fsl/qe/qe_tdm.h @@ -10,8 +10,8 @@ #ifndef _QE_TDM_H_ #define _QE_TDM_H_ -#include #include +#include #include #include @@ -19,6 +19,8 @@ #include #include +struct device_node; + /* SI RAM entries */ #define SIR_LAST 0x0001 #define SIR_BYTE 0x0002 diff --git a/include/soc/fsl/qe/ucc_fast.h b/include/soc/fsl/qe/ucc_fast.h index 9696a5b9b5d1..ad60b87a3c69 100644 --- a/include/soc/fsl/qe/ucc_fast.h +++ b/include/soc/fsl/qe/ucc_fast.h @@ -10,7 +10,7 @@ #ifndef __UCC_FAST_H__ #define __UCC_FAST_H__ -#include +#include #include #include diff --git a/include/soc/fsl/qe/ucc_slow.h b/include/soc/fsl/qe/ucc_slow.h index 11a216e4e919..7548ce8a202d 100644 --- a/include/soc/fsl/qe/ucc_slow.h +++ b/include/soc/fsl/qe/ucc_slow.h @@ -11,7 +11,7 @@ #ifndef __UCC_SLOW_H__ #define __UCC_SLOW_H__ -#include +#include #include #include -- 2.33.0