summaryrefslogtreecommitdiff
path: root/Documentation/dev-tools/kunit/usage.rst
diff options
context:
space:
mode:
authorDavid Gow <davidgow@google.com>2023-05-25 12:21:30 +0800
committerShuah Khan <skhan@linuxfoundation.org>2023-05-25 08:53:07 -0600
commit57e3cded99e9c840bc5310878d0a7f4e7768a296 (patch)
treeb6ebb8c7d1f421a849499664268b44f9e4732533 /Documentation/dev-tools/kunit/usage.rst
parent00e63f8afcfc6bf93d75141c51d35e8a40e86363 (diff)
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 'Documentation/dev-tools/kunit/usage.rst')
0 files changed, 0 insertions, 0 deletions