Received: by 2002:a05:6a10:d5a5:0:0:0:0 with SMTP id gn37csp1198654pxb; Thu, 7 Oct 2021 02:57:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzZwQ4EKUzOIcA+WZE9vpAipIdh1MgRxVKDyywaMMM/aqIasztV/3Sf3ntGEztZkFtUl1EE X-Received: by 2002:a17:906:7805:: with SMTP id u5mr4571274ejm.26.1633600625993; Thu, 07 Oct 2021 02:57:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1633600625; cv=none; d=google.com; s=arc-20160816; b=mY01W1C84Qd59kFtIWU1A+KKTnavxooIXQNHdqThdCLcTF1tt4Wqdry/rIocrwCN16 aP0gfkjNynYmpzFkLiGVE15ULCvqapKoC0fb3/Pf5310SHvl24pRwTIYSVIkUOxQhvWf OH1GjuyyCDaobeXQZV6WVxYfKmJVszE7RAozJP1DVys0GvL2PeKZlyee/I5/riyyjGSr lcm3iYT3cimyyhGgop5mngltAG5yyKjMAA8wWOq+FMSHpkw0nSz7vUUIrXYQ0haWKYAw dxnRY2DrRlY+8OXDCi+nKDijIoNveKdqXxdVZY+eRanD2odvSfKzdmPn36/Xf2aL/F1M Qd/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:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=9w48AHDPrflsSlO4XvYhPwUURHI5NEnceXeusNZ6pyI=; b=R7jVyR4KvXR3HJ0ifwq0+vBl16feUtKtcBrItxXTCy15z1z8oJ2oo87FN6/vRH64bf txylWKYLDtJmcqHf2FYdoZjD1PXbw5L7qRWYnLxhbJ/9xXVP/AC2oSIaZDrVrbbGsz82 HxuCjD5v5/OZzEJT4Ed+pMqkFKt8Bi2osDV+wKQU6Snofb4dvrfBgTAhoKwE1A331Z3B 3fd20dMzoNW17RA7bvSzzcZKIFbcOabOtAKvqP4NAO8ZYe8vh27m575cW3UlUPH4UjFU pawiMOQTablwJ6zaXo6OicKiKaz1ek8S7s4o8XyIjIWu7qbwUrYOWw5gtbmplL9KoT/Q nNfw== 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 a6si22228022edx.494.2021.10.07.02.56.42; Thu, 07 Oct 2021 02:57:05 -0700 (PDT) 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 S240798AbhJGJxh (ORCPT + 99 others); Thu, 7 Oct 2021 05:53:37 -0400 Received: from mga07.intel.com ([134.134.136.100]:13166 "EHLO mga07.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S240540AbhJGJx3 (ORCPT ); Thu, 7 Oct 2021 05:53:29 -0400 X-IronPort-AV: E=McAfee;i="6200,9189,10129"; a="289712384" X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="289712384" Received: from orsmga005.jf.intel.com ([10.7.209.41]) by orsmga105.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 07 Oct 2021 02:51:35 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="5.85,354,1624345200"; d="scan'208";a="657327911" Received: from black.fi.intel.com ([10.237.72.28]) by orsmga005.jf.intel.com with ESMTP; 07 Oct 2021 02:51:29 -0700 Received: by black.fi.intel.com (Postfix, from userid 1003) id 294313DB; Thu, 7 Oct 2021 12:51:36 +0300 (EEST) From: Andy Shevchenko To: Andy Shevchenko , Peter Zijlstra , Thomas Gleixner , Randy Dunlap , linux-kernel@vger.kernel.org, linux-kselftest@vger.kernel.org, kunit-dev@googlegroups.com, linux-media@vger.kernel.org, netdev@vger.kernel.org Cc: Brendan Higgins , Greg Kroah-Hartman , "Rafael J. Wysocki" , Ingo Molnar , Will Deacon , Waiman Long , Boqun Feng , Sakari Ailus , Laurent Pinchart , Mauro Carvalho Chehab , Thomas Graf , Herbert Xu , Andrew Morton Subject: [PATCH v2 4/4] kunit: Replace kernel.h with the necessary inclusions Date: Thu, 7 Oct 2021 12:51:29 +0300 Message-Id: <20211007095129.22037-5-andriy.shevchenko@linux.intel.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20211007095129.22037-1-andriy.shevchenko@linux.intel.com> References: <20211007095129.22037-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 --- include/kunit/test.h | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/include/kunit/test.h b/include/kunit/test.h index 4d498f496790..d88d9f7ead0a 100644 --- a/include/kunit/test.h +++ b/include/kunit/test.h @@ -12,12 +12,20 @@ #include #include +#include #include -#include +#include +#include +#include +#include +#include #include #include +#include +#include #include -#include + +#include struct kunit_resource; -- 2.33.0