mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-24 12:44:11 +08:00
kunit: declare kunit_assert structs as const
Everywhere we use the assert structs now takes them via const*, as of
commit 7466886b40
("kunit: take `kunit_assert` as `const`").
So now let's properly declare the structs as const as well.
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: David Gow <davidgow@google.com>
Reviewed-by: Miguel Ojeda <ojeda@kernel.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
This commit is contained in:
parent
97d453bc40
commit
c1144e0106
@ -478,7 +478,7 @@ void kunit_do_failed_assertion(struct kunit *test,
|
||||
|
||||
#define _KUNIT_FAILED(test, assert_type, assert_class, assert_format, INITIALIZER, fmt, ...) do { \
|
||||
static const struct kunit_loc __loc = KUNIT_CURRENT_LOC; \
|
||||
struct assert_class __assertion = INITIALIZER; \
|
||||
const struct assert_class __assertion = INITIALIZER; \
|
||||
kunit_do_failed_assertion(test, \
|
||||
&__loc, \
|
||||
assert_type, \
|
||||
|
Loading…
Reference in New Issue
Block a user