]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: hide unexported try-catch interface in try-catch-impl.h
authorAlan Maguire <alan.maguire@oracle.com>
Mon, 6 Jan 2020 22:28:19 +0000 (22:28 +0000)
committerShuah Khan <skhan@linuxfoundation.org>
Thu, 9 Jan 2020 23:42:09 +0000 (16:42 -0700)
commit0b0864b999a0522e8b37f14ab4fec788758af81f
tree0c21e5f93b63c6ae4ab468a4cc77ab060668a3ea
parentb776ee7fd7d8224b898b5353fd43d20fab496ef7
kunit: hide unexported try-catch interface in try-catch-impl.h

Define function as static inline in try-catch-impl.h to allow it to
be used in kunit itself and tests.  Also remove unused
kunit_generic_try_catch

Co-developed-by: Knut Omang <knut.omang@oracle.com>
Signed-off-by: Knut Omang <knut.omang@oracle.com>
Signed-off-by: Alan Maguire <alan.maguire@oracle.com>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Tested-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/try-catch.h
lib/kunit/test-test.c
lib/kunit/test.c
lib/kunit/try-catch-impl.h [new file with mode: 0644]
lib/kunit/try-catch.c