diff options
author | David Gow <davidgow@google.com> | 2023-05-25 12:21:30 +0800 |
---|---|---|
committer | Shuah Khan <skhan@linuxfoundation.org> | 2023-05-25 08:53:07 -0600 |
commit | 57e3cded99e9c840bc5310878d0a7f4e7768a296 (patch) | |
tree | b6ebb8c7d1f421a849499664268b44f9e4732533 /lib/base64.c | |
parent | 00e63f8afcfc6bf93d75141c51d35e8a40e86363 (diff) | |
download | linux-57e3cded99e9c840bc5310878d0a7f4e7768a296.tar.gz linux-57e3cded99e9c840bc5310878d0a7f4e7768a296.tar.bz2 linux-57e3cded99e9c840bc5310878d0a7f4e7768a296.zip |
kunit: kmalloc_array: Use kunit_add_action()
The kunit_add_action() function is much simpler and cleaner to use that
the full KUnit resource API for simple things like the
kunit_kmalloc_array() functionality.
Replacing it allows us to get rid of a number of helper functions, and
leaves us with no uses of kunit_alloc_resource(), which has some
usability problems and is going to have its behaviour modified in an
upcoming patch.
Note that we need to use kunit_defer_trigger_all() to implement
kunit_kfree().
Reviewed-by: Benjamin Berg <benjamin.berg@intel.com>
Reviewed-by: Maxime Ripard <maxime@cerno.tech>
Tested-by: Maxime Ripard <maxime@cerno.tech>
Signed-off-by: David Gow <davidgow@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'lib/base64.c')
0 files changed, 0 insertions, 0 deletions