diff options
| author | Daniel Latypov <[email protected]> | 2021-05-03 13:58:34 -0700 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2021-06-25 11:31:03 -0600 |
| commit | 7122debb4367ee5c89237e5d36dcc0007d7ec43c (patch) | |
| tree | 2015be0047c56ff1b67c1754763eef3810cf868e /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c | |
| parent | 8a5124c0f33c65a0d94aacac8294e90a87ecf3f6 (diff) | |
kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpers
Add in:
* kunit_kmalloc_array() and wire up kunit_kmalloc() to be a special
case of it.
* kunit_kcalloc() for symmetry with kunit_kzalloc()
This should using KUnit more natural by making it more similar to the
existing *alloc() APIs.
And while we shouldn't necessarily be writing unit tests where overflow
should be a concern, it can't hurt to be safe.
Signed-off-by: Daniel Latypov <[email protected]>
Reviewed-by: David Gow <[email protected]>
Reviewed-by: Brendan Higgins <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c')
0 files changed, 0 insertions, 0 deletions