diff options
author | 2024-01-30 09:41:07 +0800 | |
---|---|---|
committer | 2024-01-30 14:11:49 +0100 | |
commit | 66b3dc1f04135f89384af39ec4e38546b82e1510 (patch) | |
tree | f31f24b72e27959acef76e21358a114ebfbe8a7a /scripts/lib/kdoc/kdoc_parser.py | |
parent | mm/slub: make the description of slab_min_objects helpful in doc (diff) | |
download | wireguard-linux-66b3dc1f04135f89384af39ec4e38546b82e1510.tar.xz wireguard-linux-66b3dc1f04135f89384af39ec4e38546b82e1510.zip |
mm/slub: remove parameter 'flags' in create_kmalloc_caches()
After commit 16a1d968358a ("mm/slab: remove mm/slab.c and slab_def.h"),
parameter 'flags' is only passed as 0 in create_kmalloc_caches(), and
then it is only passed to new_kmalloc_cache().
So we can change parameter 'flags' to be a local variable with
initial value 0 in new_kmalloc_cache() and remove parameter 'flags'
in create_kmalloc_caches(). Also make new_kmalloc_cache() static
due to it is only used in mm/slab_common.c.
Signed-off-by: Zheng Yejian <zhengyejian1@huawei.com>
Acked-by: David Rientjes <rientjes@google.com>
Reviewed-by: Chengming Zhou <zhouchengming@bytedance.com>
Signed-off-by: Vlastimil Babka <vbabka@suse.cz>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions