diff options
author | Vlastimil Babka <vbabka@suse.cz> | 2024-02-23 19:27:18 +0100 |
---|---|---|
committer | Vlastimil Babka <vbabka@suse.cz> | 2024-02-26 10:10:07 +0100 |
commit | cc61eb851c9ae38546d7df6076fd883d3dbc322d (patch) | |
tree | a2103acc92def90e1de4f23de700f201e92a0bbb /drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c | |
parent | cdeeaaba174886aa6c1ff4c0c5449c5066dbe82f (diff) |
mm, slab: use an enum to define SLAB_ cache creation flags
The values of SLAB_ cache creation flags are defined by hand, which is
tedious and error-prone. Use an enum to assign the bit number and a
__SLAB_FLAG_BIT() macro to #define the final flags.
This renumbers the flag values, which is OK as they are only used
internally.
Also define a __SLAB_FLAG_UNUSED macro to assign value to flags disabled
by their respective config options in a unified and sparse-friendly way.
Reviewed-and-tested-by: Xiongwei Song <xiongwei.song@windriver.com>
Reviewed-by: Chengming Zhou <chengming.zhou@linux.dev>
Reviewed-by: Roman Gushchin <roman.gushchin@linux.dev>
Acked-by: David Rientjes <rientjes@google.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_mca.c')
0 files changed, 0 insertions, 0 deletions