linux-mm.kvack.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 09/11] tools headers: Sync linux/gfp_types.h with kernel sources
       [not found] <20251222225716.3565649-1-namhyung@kernel.org>
@ 2025-12-22 22:57 ` Namhyung Kim
  2025-12-23  1:00   ` SeongJae Park
  0 siblings, 1 reply; 3+ messages in thread
From: Namhyung Kim @ 2025-12-22 22:57 UTC (permalink / raw)
  To: Arnaldo Carvalho de Melo
  Cc: Ian Rogers, Jiri Olsa, Adrian Hunter, James Clark,
	Peter Zijlstra, Ingo Molnar, LKML, linux-perf-users, linux-mm

To pick up changes from:

  4c0a17e28340e458 ("slab: prevent recursive kmalloc() in alloc_empty_sheaf()")

This would be used to handle GFP masks in the perf code and address these
tools/perf build warnings:

  Warning: Kernel ABI header differences:
    diff -u tools/include/linux/gfp_types.h include/linux/gfp_types.h

Please see tools/include/README.kernel-copies.

Cc: linux-mm@kvack.org
Signed-off-by: Namhyung Kim <namhyung@kernel.org>
---
 tools/include/linux/gfp_types.h | 6 ------
 1 file changed, 6 deletions(-)

diff --git a/tools/include/linux/gfp_types.h b/tools/include/linux/gfp_types.h
index 65db9349f9053c70..3de43b12209ee79f 100644
--- a/tools/include/linux/gfp_types.h
+++ b/tools/include/linux/gfp_types.h
@@ -55,9 +55,7 @@ enum {
 #ifdef CONFIG_LOCKDEP
 	___GFP_NOLOCKDEP_BIT,
 #endif
-#ifdef CONFIG_SLAB_OBJ_EXT
 	___GFP_NO_OBJ_EXT_BIT,
-#endif
 	___GFP_LAST_BIT
 };
 
@@ -98,11 +96,7 @@ enum {
 #else
 #define ___GFP_NOLOCKDEP	0
 #endif
-#ifdef CONFIG_SLAB_OBJ_EXT
 #define ___GFP_NO_OBJ_EXT       BIT(___GFP_NO_OBJ_EXT_BIT)
-#else
-#define ___GFP_NO_OBJ_EXT       0
-#endif
 
 /*
  * Physical address zone modifiers (see linux/mmzone.h - low four bits)
-- 
2.52.0.351.gbe84eed79e-goog



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 09/11] tools headers: Sync linux/gfp_types.h with kernel sources
  2025-12-22 22:57 ` [PATCH 09/11] tools headers: Sync linux/gfp_types.h with kernel sources Namhyung Kim
@ 2025-12-23  1:00   ` SeongJae Park
  2025-12-23 18:06     ` Namhyung Kim
  0 siblings, 1 reply; 3+ messages in thread
From: SeongJae Park @ 2025-12-23  1:00 UTC (permalink / raw)
  To: Namhyung Kim
  Cc: SeongJae Park, Arnaldo Carvalho de Melo, Ian Rogers, Jiri Olsa,
	Adrian Hunter, James Clark, Peter Zijlstra, Ingo Molnar, LKML,
	linux-perf-users, linux-mm

On Mon, 22 Dec 2025 14:57:14 -0800 Namhyung Kim <namhyung@kernel.org> wrote:

> To pick up changes from:
> 
>   4c0a17e28340e458 ("slab: prevent recursive kmalloc() in alloc_empty_sheaf()")
> 
> This would be used to handle GFP masks in the perf code and address these
> tools/perf build warnings:
> 
>   Warning: Kernel ABI header differences:
>     diff -u tools/include/linux/gfp_types.h include/linux/gfp_types.h
> 
> Please see tools/include/README.kernel-copies.

Nit.  I don't find the file on linux-next tree.  Do you mean
tools/include/uapi/README [1]?

[1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/tools/include/uapi/README

> 
> Cc: linux-mm@kvack.org
> Signed-off-by: Namhyung Kim <namhyung@kernel.org>

Other than the above trivial nit,

Acked-by: SeongJae Park <sj@kernel.org>


Thanks,
SJ

[...]


^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 09/11] tools headers: Sync linux/gfp_types.h with kernel sources
  2025-12-23  1:00   ` SeongJae Park
@ 2025-12-23 18:06     ` Namhyung Kim
  0 siblings, 0 replies; 3+ messages in thread
From: Namhyung Kim @ 2025-12-23 18:06 UTC (permalink / raw)
  To: SeongJae Park
  Cc: Arnaldo Carvalho de Melo, Ian Rogers, Jiri Olsa, Adrian Hunter,
	James Clark, Peter Zijlstra, Ingo Molnar, LKML, linux-perf-users,
	linux-mm

Hi SeongJae,

On Mon, Dec 22, 2025 at 05:00:57PM -0800, SeongJae Park wrote:
> On Mon, 22 Dec 2025 14:57:14 -0800 Namhyung Kim <namhyung@kernel.org> wrote:
> 
> > To pick up changes from:
> > 
> >   4c0a17e28340e458 ("slab: prevent recursive kmalloc() in alloc_empty_sheaf()")
> > 
> > This would be used to handle GFP masks in the perf code and address these
> > tools/perf build warnings:
> > 
> >   Warning: Kernel ABI header differences:
> >     diff -u tools/include/linux/gfp_types.h include/linux/gfp_types.h
> > 
> > Please see tools/include/README.kernel-copies.
> 
> Nit.  I don't find the file on linux-next tree.  Do you mean
> tools/include/uapi/README [1]?
> 
> [1] https://git.kernel.org/pub/scm/linux/kernel/git/next/linux-next.git/tree/tools/include/uapi/README

Oops, you're right.  I've used a wrong template.  Will fix.

> 
> > 
> > Cc: linux-mm@kvack.org
> > Signed-off-by: Namhyung Kim <namhyung@kernel.org>
> 
> Other than the above trivial nit,
> 
> Acked-by: SeongJae Park <sj@kernel.org>

Thanks for your review!
Namhyung



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2025-12-23 18:06 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <20251222225716.3565649-1-namhyung@kernel.org>
2025-12-22 22:57 ` [PATCH 09/11] tools headers: Sync linux/gfp_types.h with kernel sources Namhyung Kim
2025-12-23  1:00   ` SeongJae Park
2025-12-23 18:06     ` Namhyung Kim

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox