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)
commit9bbb11c6be4623e38fdef8af0178c174acded9a6
tree0c21e5f93b63c6ae4ab468a4cc77ab060668a3ea
parent109fb06fdc6f6788df7dfbc235f7636a38e28fd4
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