Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id 7ADD3C433FE for ; Mon, 15 Nov 2021 11:32:14 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 6475361A56 for ; Mon, 15 Nov 2021 11:32:14 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233656AbhKOLdv (ORCPT ); Mon, 15 Nov 2021 06:33:51 -0500 Received: from mga18.intel.com ([134.134.136.126]:23084 "EHLO mga18.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231477AbhKOLdX (ORCPT ); Mon, 15 Nov 2021 06:33:23 -0500 X-IronPort-AV: E=McAfee;i="6200,9189,10168"; a="220311037" X-IronPort-AV: E=Sophos;i="5.87,236,1631602800"; d="scan'208";a="220311037" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2021 03:30:25 -0800 X-IronPort-AV: E=Sophos;i="5.87,236,1631602800"; d="scan'208";a="671472663" Received: from smile.fi.intel.com ([10.237.72.184]) by orsmga005-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 15 Nov 2021 03:30:24 -0800 Received: from andy by smile.fi.intel.com with local (Exim 4.95) (envelope-from ) id 1mmaBj-0072iF-S4; Mon, 15 Nov 2021 13:30:15 +0200 Date: Mon, 15 Nov 2021 13:30:15 +0200 From: Andy Shevchenko To: linux-kernel@vger.kernel.org, linuxppc-dev@lists.ozlabs.org, linux-arm-kernel@lists.infradead.org Cc: Li Yang , Qiang Zhao Subject: Re: [PATCH v2 3/3] soc: fsl: Replace kernel.h with the necessary inclusions Message-ID: References: <20211110105952.62013-1-andriy.shevchenko@linux.intel.com> <20211110105952.62013-3-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211110105952.62013-3-andriy.shevchenko@linux.intel.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Nov 10, 2021 at 12:59:52PM +0200, Andy Shevchenko wrote: > 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 Any comments on this, please? I really want to decrease amount of kernel.h usage in the common headers. So others won't copy'n'paste bad example. -- With Best Regards, Andy Shevchenko