linux-next/Documentation
Maíra Canal 4c392516ac Documentation: KUnit: Fix example with compilation error
The Parameterized Testing example contains a compilation error, as the
signature for the description helper function is void(*)(const struct
sha1_test_case *, char *), and the struct is non-const. This is
warned by Clang:

error: initialization of ‘void (*)(struct sha1_test_case *, char *)’
from incompatible pointer type ‘void (*)(const struct sha1_test_case *,
char *)’ [-Werror=incompatible-pointer-types]
33 | KUNIT_ARRAY_PARAM(sha1, cases, case_to_desc);
   |                                ^~~~~~~~~~~~
../include/kunit/test.h:1339:70: note: in definition of macro
‘KUNIT_ARRAY_PARAM’
1339 |                         void
   (*__get_desc)(typeof(__next), char *) = get_desc; \

Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
2022-07-28 13:06:35 -06:00
..
2022-06-03 11:48:47 -07:00
2022-05-26 14:20:14 -07:00
2022-05-26 10:50:30 -07:00
2022-06-01 11:54:29 -07:00
2022-05-04 11:06:13 +02:00
2022-05-04 22:35:19 +02:00
2022-05-26 12:09:50 -07:00
2022-04-16 02:54:32 -06:00
2022-05-24 13:50:39 -07:00
2022-05-26 14:20:14 -07:00
2022-06-05 09:12:28 -07:00