Re: [PATCH] kunit: test: Avoid cast warning in when adding kfree() as an action

2023-11-06 Thread Richard Fitzgerald
On 6/11/23 17:23, Richard Fitzgerald wrote: In kunit_log_test() pass the kfree_wrapper() function to kunit_add_action() instead of directly passing kfree(). Aargh! Sorry, noticed spurious word in commit title. Will send a V2.

[PATCH] kunit: test: Avoid cast warning in when adding kfree() as an action

2023-11-06 Thread Richard Fitzgerald
In kunit_log_test() pass the kfree_wrapper() function to kunit_add_action() instead of directly passing kfree(). This prevents a cast warning: lib/kunit/kunit-test.c:565:25: warning: cast from 'void (*)(const void *)' to 'kunit_action_t *' (aka 'void (*)(void *)') converts to incompatible