mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Yury Norov <yury.norov@gmail.com>
To: "Matthew Wilcox (Oracle)" <willy@infradead.org>
Cc: linux-kernel@vger.kernel.org,
	Andrew Morton <akpm@linux-foundation.org>,
	"Liam R . Howlett" <Liam.Howlett@oracle.com>,
	Ingo Molnar <mingo@kernel.org>
Subject: Re: [PATCH] tools: Fix compilation after gfp_types.h split
Date: Fri, 2 Sep 2022 15:20:44 -0700	[thread overview]
Message-ID: <YxKBvExWNAB8xN3b@yury-laptop> (raw)
In-Reply-To: <20220902191923.1735933-1-willy@infradead.org>

On Fri, Sep 02, 2022 at 08:19:23PM +0100, Matthew Wilcox (Oracle) wrote:
> When gfp_types.h was split from gfp.h, it broke the radix test suite.
> Fix the test suite by using gfp_types.h in the tools gfp.h header.
> 
> Reported-by: Liam R. Howlett <Liam.Howlett@oracle.com>
> Fixes: cb5a065b4ea9 (headers/deps: mm: Split <linux/gfp_types.h> out of <linux/gfp.h>)
> Cc: Ingo Molnar <mingo@kernel.org>
> Cc: Yury Norov <yury.norov@gmail.com>
> Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>

Reviewed-by: Yury Norov <yury.norov@gmail.com>

> ---
>  tools/include/linux/gfp.h       | 21 +--------------------
>  tools/include/linux/gfp_types.h |  1 +
>  2 files changed, 2 insertions(+), 20 deletions(-)
>  create mode 100644 tools/include/linux/gfp_types.h
> 
> diff --git a/tools/include/linux/gfp.h b/tools/include/linux/gfp.h
> index b238dbc9eb85..6a10ff5f5be9 100644
> --- a/tools/include/linux/gfp.h
> +++ b/tools/include/linux/gfp.h
> @@ -3,26 +3,7 @@
>  #define _TOOLS_INCLUDE_LINUX_GFP_H
>  
>  #include <linux/types.h>
> -
> -#define __GFP_BITS_SHIFT 26
> -#define __GFP_BITS_MASK ((gfp_t)((1 << __GFP_BITS_SHIFT) - 1))
> -
> -#define __GFP_HIGH		0x20u
> -#define __GFP_IO		0x40u
> -#define __GFP_FS		0x80u
> -#define __GFP_NOWARN		0x200u
> -#define __GFP_ZERO		0x8000u
> -#define __GFP_ATOMIC		0x80000u
> -#define __GFP_ACCOUNT		0x100000u
> -#define __GFP_DIRECT_RECLAIM	0x400000u
> -#define __GFP_KSWAPD_RECLAIM	0x2000000u
> -
> -#define __GFP_RECLAIM	(__GFP_DIRECT_RECLAIM | __GFP_KSWAPD_RECLAIM)
> -
> -#define GFP_ZONEMASK	0x0fu
> -#define GFP_ATOMIC	(__GFP_HIGH | __GFP_ATOMIC | __GFP_KSWAPD_RECLAIM)
> -#define GFP_KERNEL	(__GFP_RECLAIM | __GFP_IO | __GFP_FS)
> -#define GFP_NOWAIT	(__GFP_KSWAPD_RECLAIM)
> +#include <linux/gfp_types.h>
>  
>  static inline bool gfpflags_allow_blocking(const gfp_t gfp_flags)
>  {
> diff --git a/tools/include/linux/gfp_types.h b/tools/include/linux/gfp_types.h
> new file mode 100644
> index 000000000000..5f9f1ed190a0
> --- /dev/null
> +++ b/tools/include/linux/gfp_types.h
> @@ -0,0 +1 @@
> +#include "../../../include/linux/gfp_types.h"
> -- 
> 2.35.1

      reply	other threads:[~2022-09-02 22:20 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-02 19:19 Matthew Wilcox (Oracle)
2022-09-02 22:20 ` Yury Norov [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=YxKBvExWNAB8xN3b@yury-laptop \
    --to=yury.norov@gmail.com \
    --cc=Liam.Howlett@oracle.com \
    --cc=akpm@linux-foundation.org \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mingo@kernel.org \
    --cc=willy@infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®