diff options
author | 2022-02-11 17:42:41 +0100 | |
---|---|---|
committer | 2022-04-04 14:29:02 -0600 | |
commit | caae9458db3aef14b96921cf02c6093340350c4a (patch) | |
tree | 94afb63d6b917218c3059b84f3f01bf376b72888 /kernel/Makefile | |
parent | kunit: tool: simplify code since build_dir can't be None (diff) | |
download | linux-caae9458db3aef14b96921cf02c6093340350c4a.tar.gz linux-caae9458db3aef14b96921cf02c6093340350c4a.tar.bz2 linux-caae9458db3aef14b96921cf02c6093340350c4a.zip |
kunit: Introduce _NULL and _NOT_NULL macros
Today, when we want to check if a pointer is NULL and not ERR we have
two options:
KUNIT_EXPECT_TRUE(test, ptr == NULL);
or
KUNIT_EXPECT_PTR_NE(test, ptr, (struct mystruct *)NULL);
Create a new set of macros that take care of NULL checks.
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Reviewed-by: Daniel Latypov <dlatypov@google.com>
Signed-off-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Diffstat (limited to 'kernel/Makefile')
0 files changed, 0 insertions, 0 deletions