From mboxrd@z Thu Jan 1 00:00:00 1970 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 kanga.kvack.org (kanga.kvack.org [205.233.56.17]) by smtp.lore.kernel.org (Postfix) with ESMTP id 4DBCCC433F5 for ; Thu, 9 Dec 2021 20:40:31 +0000 (UTC) Received: by kanga.kvack.org (Postfix) id 45ACE6B0072; Thu, 9 Dec 2021 15:40:20 -0500 (EST) Received: by kanga.kvack.org (Postfix, from userid 40) id 3E5B46B0073; Thu, 9 Dec 2021 15:40:20 -0500 (EST) X-Delivered-To: int-list-linux-mm@kvack.org Received: by kanga.kvack.org (Postfix, from userid 63042) id 2AAAC6B0074; Thu, 9 Dec 2021 15:40:20 -0500 (EST) X-Delivered-To: linux-mm@kvack.org Received: from forelay.hostedemail.com (smtprelay0252.hostedemail.com [216.40.44.252]) by kanga.kvack.org (Postfix) with ESMTP id 175C96B0072 for ; Thu, 9 Dec 2021 15:40:20 -0500 (EST) Received: from smtpin20.hostedemail.com (10.5.19.251.rfc1918.com [10.5.19.251]) by forelay01.hostedemail.com (Postfix) with ESMTP id C20EE180C850D for ; Thu, 9 Dec 2021 20:40:09 +0000 (UTC) X-FDA: 78899422938.20.CEFE97E Received: from mail-qk1-f177.google.com (mail-qk1-f177.google.com [209.85.222.177]) by imf29.hostedemail.com (Postfix) with ESMTP id 060A612000E for ; Thu, 9 Dec 2021 20:40:08 +0000 (UTC) Received: by mail-qk1-f177.google.com with SMTP id b67so5993075qkg.6 for ; Thu, 09 Dec 2021 12:40:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=5cbjPR8V32UhlFm9qsloDchGghKjugVek16cCsnJHSA=; b=e+I/by4bT7Si9FVAycMvQSptSYA6MUvEuizXNNGSmN/nbc7y5HEze7jHTIwUp1mFpP YGlHFY+ZF7ty+pb3j7UOAPIAy9Ny3apULC8VBMk9MrexeE9Ph01CfWFmXcZrDLbF50fP Mf6f6OGp5Zlnst3e8k3UGbhLsg12lnEERoX9u8NcYNM9z//qcyz2/DlRAoKTC2NF3AEG zOB7Z+x7cZUxfTcT2Ud4o0RzyUWtNdT+VgZOb5AyluIOA2+ldan/rtXbufMp1EkYjWmS PWgRBxx4eH96W/kEuEhQcKCrQlVsaxxomBH0pMicRIh7ei0vA9b6Lfj/eqTgITSv42xt hcjg== X-Gm-Message-State: AOAM531JMsBXZvsUPmqgbL4nh5T0nTQQHHd81RRqO0BrwCF3y5LV/+Hy x3SYrUMibaadEitaoJMVCdU= X-Google-Smtp-Source: ABdhPJwpsY5mERenb55w41K1LFFG6m6k32ejx8rHLGpKk25AU16nKcF56PbrN3yxgGcA1MBVcb8atA== X-Received: by 2002:a37:b53:: with SMTP id 80mr16026972qkl.91.1639082408763; Thu, 09 Dec 2021 12:40:08 -0800 (PST) Received: from fedora (pool-173-68-57-129.nycmny.fios.verizon.net. [173.68.57.129]) by smtp.gmail.com with ESMTPSA id b6sm577679qtk.91.2021.12.09.12.40.07 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 09 Dec 2021 12:40:08 -0800 (PST) Date: Thu, 9 Dec 2021 15:40:06 -0500 From: Dennis Zhou To: Andy Shevchenko Cc: Pavel Begunkov , linux-mm@kvack.org, linux-kernel@vger.kernel.org, Dennis Zhou , Tejun Heo , Christoph Lameter Subject: Re: [PATCH v1 1/1] percpu_ref: Replace kernel.h with the necessary inclusions Message-ID: References: <20211209123033.3492-1-andriy.shevchenko@linux.intel.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20211209123033.3492-1-andriy.shevchenko@linux.intel.com> X-Rspamd-Server: rspam03 X-Rspamd-Queue-Id: 060A612000E X-Stat-Signature: tffm81di3d6yfcdtyjz35sr83wx7p3a1 Authentication-Results: imf29.hostedemail.com; dkim=none; spf=pass (imf29.hostedemail.com: domain of dennisszhou@gmail.com designates 209.85.222.177 as permitted sender) smtp.mailfrom=dennisszhou@gmail.com; dmarc=fail reason="SPF not aligned (relaxed), No valid DKIM" header.from=kernel.org (policy=none) X-HE-Tag: 1639082408-85005 X-Bogosity: Ham, tests=bogofilter, spamicity=0.000002, version=1.2.4 Sender: owner-linux-mm@kvack.org Precedence: bulk X-Loop: owner-majordomo@kvack.org List-ID: Hello, On Thu, Dec 09, 2021 at 02:30:33PM +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 > --- > include/linux/percpu-refcount.h | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > > diff --git a/include/linux/percpu-refcount.h b/include/linux/percpu-refcount.h > index b31d3f3312ce..d73a1c08c3e3 100644 > --- a/include/linux/percpu-refcount.h > +++ b/include/linux/percpu-refcount.h > @@ -51,9 +51,9 @@ > #define _LINUX_PERCPU_REFCOUNT_H > > #include > -#include > #include > #include > +#include > #include > > struct percpu_ref; > -- > 2.33.0 > Applied to for-5.16-fixes. Thanks, Dennis