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 vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id E2214C433EF for ; Sat, 2 Jul 2022 12:05:50 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230429AbiGBMFu (ORCPT ); Sat, 2 Jul 2022 08:05:50 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45632 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229934AbiGBMFu (ORCPT ); Sat, 2 Jul 2022 08:05:50 -0400 Received: from mga11.intel.com (mga11.intel.com [192.55.52.93]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id BFE1613E9C; Sat, 2 Jul 2022 05:05:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1656763548; x=1688299548; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=1X9AhfDF/UQuIagUhUV1PLkN0an++X08KVSCFikKIto=; b=CbNrDOLAw+NA+C1iRbwuoB6O1SR8axvmJtHVLrNNhbdbg1ZH0f42cjr9 NicEzGRinCUr8KAubhKjoy4UBN7K1+S2TXVeF3pfAwlRY+ntFlVxaHeM/ 4TNa6FZg6WIwTFoVgW01H4bXL3ZStk/LiqT/SUUbcR+EUX/aUd7bED1yC MBIFzGvQbCIW/qK4rkSjEsb18FEcfJqnX84kpLAdWkP4t9Py1oYcXpscQ svpOiMeTDL8OhCq7FAv3NxrTBr+fqMbfWIH/8tQooWyBYNZ1OomiDSeVf e4f/tVhNGxbVIb+KZquStc0PgxFoM5xTWvpSA5y5zTVJEYf8Paq6zs9fh Q==; X-IronPort-AV: E=McAfee;i="6400,9594,10395"; a="280381326" X-IronPort-AV: E=Sophos;i="5.92,239,1650956400"; d="scan'208";a="280381326" Received: from fmsmga007.fm.intel.com ([10.253.24.52]) by fmsmga102.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2022 05:05:48 -0700 X-IronPort-AV: E=Sophos;i="5.92,239,1650956400"; d="scan'208";a="596550381" Received: from smile.fi.intel.com ([10.237.72.54]) by fmsmga007-auth.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 02 Jul 2022 05:05:44 -0700 Received: from andy by smile.fi.intel.com with local (Exim 4.96) (envelope-from ) id 1o7bsZ-0013b7-1H; Sat, 02 Jul 2022 15:05:39 +0300 Date: Sat, 2 Jul 2022 15:05:39 +0300 From: Andy Shevchenko To: Yury Norov Cc: linux-kernel@vger.kernel.org, Andrew Morton , David Howells , Geert Uytterhoeven , Jonathan Corbet , "Kirill A . Shutemov" , Matthew Wilcox , NeilBrown , Rasmus Villemoes , Russell King , Vlastimil Babka , William Kucharski , linux-doc@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-mm@kvack.org Subject: Re: [PATCH 7/8] mm: split include/linux/gfp.h Message-ID: References: <20220701125430.2907638-1-yury.norov@gmail.com> <20220701125430.2907638-8-yury.norov@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220701125430.2907638-8-yury.norov@gmail.com> Organization: Intel Finland Oy - BIC 0357606-4 - Westendinkatu 7, 02160 Espoo Precedence: bulk List-ID: X-Mailing-List: linux-doc@vger.kernel.org On Fri, Jul 01, 2022 at 05:54:29AM -0700, Yury Norov wrote: > gfp.h belongs to many include paths, and it causes circular dependencies > when, for example, trying to keep cpumask one-line wrappers in headers. > > In many cases, sources need only gfp flags. This patch splits gfp.h by > moving flags to include/linux/gfp_flags.h. It helps to move trivial > wrappers from c-file to header in the following patch for cpumask. Wondering if you checked Ingo's gigantic series [1] for something similar. Maybe you may utilize his work if there is anything like this. [1]: https://git.kernel.org/pub/scm/linux/kernel/git/mingo/tip.git/log/?h=sched/headers -- With Best Regards, Andy Shevchenko