Message ID | 20231221103858.46010-1-rf@opensource.cirrus.com |
---|---|
State | Accepted |
Commit | fcbac39b7d5e776bed058281af5d3248b94f1282 |
Headers | show |
Series | [v2,1/2] kunit: Allow passing function pointer to kunit_activate_static_stub() | expand |
diff --git a/include/kunit/static_stub.h b/include/kunit/static_stub.h index 85315c80b303..bf940322dfc0 100644 --- a/include/kunit/static_stub.h +++ b/include/kunit/static_stub.h @@ -93,7 +93,7 @@ void __kunit_activate_static_stub(struct kunit *test, * The redirection can be disabled again with kunit_deactivate_static_stub(). */ #define kunit_activate_static_stub(test, real_fn_addr, replacement_addr) do { \ - typecheck_fn(typeof(&real_fn_addr), replacement_addr); \ + typecheck_fn(typeof(&replacement_addr), real_fn_addr); \ __kunit_activate_static_stub(test, real_fn_addr, replacement_addr); \ } while (0)