Lines Matching refs:list

20   struct test **list, *t;  in test_zeroed()  local
23 list = kmalloc(sizeof(*list) * 10, __GFP_ZERO); in test_zeroed()
24 if (list == NULL) in test_zeroed()
28 t = list[i]; in test_zeroed()
31 kfree(list); // no-warning in test_zeroed()
35 struct test **list, *t; in test_nonzero() local
38 list = kmalloc(sizeof(*list) * 10, 0); in test_nonzero()
39 if (list == NULL) in test_nonzero()
43 t = list[i]; // expected-warning{{undefined}} in test_nonzero()
46 kfree(list); in test_nonzero()
50 struct test **list, *t; in test_indeterminate() local
53 list = kmalloc(sizeof(*list) * 10, flags); in test_indeterminate()
54 if (list == NULL) in test_indeterminate()
58 t = list[i]; // expected-warning{{undefined}} in test_indeterminate()
61 kfree(list); in test_indeterminate()
73 struct test **list, *t; in test_3arg_malloc() local
76 list = malloc(sizeof(*list) * 10, mtp, __GFP_ZERO); in test_3arg_malloc()
77 if (list == NULL) in test_3arg_malloc()
81 t = list[i]; in test_3arg_malloc()
84 kfree(list); // no-warning in test_3arg_malloc()
88 struct test **list, *t; in test_3arg_malloc_nonzero() local
91 list = malloc(sizeof(*list) * 10, mtp, 0); in test_3arg_malloc_nonzero()
92 if (list == NULL) in test_3arg_malloc_nonzero()
96 t = list[i]; // expected-warning{{undefined}} in test_3arg_malloc_nonzero()
99 kfree(list); in test_3arg_malloc_nonzero()
103 struct test **list, *t; in test_3arg_malloc_indeterminate() local
106 list = malloc(sizeof(*list) * 10, mtp, flags); in test_3arg_malloc_indeterminate()
107 if (list == NULL) in test_3arg_malloc_indeterminate()
111 t = list[i]; // expected-warning{{undefined}} in test_3arg_malloc_indeterminate()
114 kfree(list); in test_3arg_malloc_indeterminate()
118 struct test **list; in test_3arg_malloc_leak() local
120 list = malloc(sizeof(*list) * 10, mtp, flags); in test_3arg_malloc_leak()
121 if (list == NULL) in test_3arg_malloc_leak()