diff options
author | Christian Brauner <[email protected]> | 2024-09-05 09:56:55 +0200 |
---|---|---|
committer | Vlastimil Babka <[email protected]> | 2024-09-10 11:42:58 +0200 |
commit | b2e7456b5c25c41eda7a8a15f7ccaa4e7579949f (patch) | |
tree | bc15f0c9a565c7a9f786c6d0be5a168d98927e5f /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | 199cd13a745eb44fb4828bca373155293cdcfa5c (diff) |
slab: create kmem_cache_create() compatibility layer
Use _Generic() to create a compatibility layer that type switches on the
third argument to either call __kmem_cache_create() or
__kmem_cache_create_args(). If NULL is passed for the struct
kmem_cache_args argument use default args making porting for callers
that don't care about additional arguments easy.
Reviewed-by: Kees Cook <[email protected]>
Reviewed-by: Jens Axboe <[email protected]>
Signed-off-by: Christian Brauner <[email protected]>
Reviewed-by: Mike Rapoport (Microsoft) <[email protected]>
Reviewed-by: Roman Gushchin <[email protected]>
Signed-off-by: Vlastimil Babka <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions