diff options
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/assoc_array.c | 3 | ||||
| -rw-r--r-- | lib/kunit/executor.c | 3 | ||||
| -rw-r--r-- | lib/tests/test_ratelimit.c | 3 |
3 files changed, 3 insertions, 6 deletions
diff --git a/lib/assoc_array.c b/lib/assoc_array.c index 25a3e8ab22cb..bcc6e0a013eb 100644 --- a/lib/assoc_array.c +++ b/lib/assoc_array.c @@ -1204,8 +1204,7 @@ found_leaf: node = parent; /* Create a new node to collapse into */ - new_n0 = kzalloc_obj(struct assoc_array_node, - GFP_KERNEL); + new_n0 = kzalloc_obj(struct assoc_array_node); if (!new_n0) goto enomem; edit->new_meta[0] = assoc_array_node_to_ptr(new_n0); diff --git a/lib/kunit/executor.c b/lib/kunit/executor.c index 04736a804e4c..1fef217de11d 100644 --- a/lib/kunit/executor.c +++ b/lib/kunit/executor.c @@ -194,8 +194,7 @@ kunit_filter_suites(const struct kunit_suite_set *suite_set, /* Parse attribute filters */ if (filters) { filter_count = kunit_get_filter_count(filters); - parsed_filters = kzalloc_objs(*parsed_filters, filter_count, - GFP_KERNEL); + parsed_filters = kzalloc_objs(*parsed_filters, filter_count); if (!parsed_filters) { *err = -ENOMEM; goto free_parsed_glob; diff --git a/lib/tests/test_ratelimit.c b/lib/tests/test_ratelimit.c index 365f1fc1f256..33cea5f3d28b 100644 --- a/lib/tests/test_ratelimit.c +++ b/lib/tests/test_ratelimit.c @@ -104,8 +104,7 @@ static void test_ratelimit_stress(struct kunit *test) int i; const int n_stress_kthread = cpumask_weight(cpu_online_mask); struct stress_kthread skt = { 0 }; - struct stress_kthread *sktp = kzalloc_objs(*sktp, n_stress_kthread, - GFP_KERNEL); + struct stress_kthread *sktp = kzalloc_objs(*sktp, n_stress_kthread); KUNIT_EXPECT_NOT_NULL_MSG(test, sktp, "Memory allocation failure"); for (i = 0; i < n_stress_kthread; i++) { |
