Re: linux-next: build warnings after merge of the kunit-next tree

2020-10-15 Thread Vitor Massaru Iha
Hi Shuah, I already sent the patch: https://patchwork.kernel.org/project/linux-kselftest/patch/20201015120851.229242-1-vi...@massaru.org On Thu, Oct 15, 2020 at 3:01 PM Shuah Khan wrote: > > On 10/15/20 4:43 AM, Vitor Massaru Iha wrote: > > Hi Stephen, > > > > On Thu,

Re: [PATCH v2] lib: kunit: add list_sort test conversion to KUnit

2020-10-15 Thread Vitor Massaru Iha
On Thu, Oct 15, 2020 at 2:47 PM Andy Shevchenko wrote: > > On Wed, Oct 14, 2020 at 10:46:16PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_list_sort, > > from `lib/test_list_sort.c` to KUnit tests. > > > r

Re: [PATCH v2] lib: kunit: add list_sort test conversion to KUnit

2020-10-15 Thread Vitor Massaru Iha
On Thu, Oct 15, 2020 at 7:50 AM Andy Shevchenko wrote: > > On Wed, Oct 14, 2020 at 10:46:16PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_list_sort, > > from `lib/test_list_sort.c` to KUnit tests. > > Please, provide better com

[PATCH v3] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-15 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_min_heap, from `lib/test_min_heap.c` to KUnit tests. Signed-off-by: Vitor Massaru Iha --- v2: * change Kconfig entries to be more adherent to KUnit documentation, min_heap test runs when enabling full test coverage

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-15 Thread Vitor Massaru Iha
Hi Ian, On Thu, Oct 15, 2020 at 1:30 PM Ian Rogers wrote: > > On Wed, Oct 14, 2020 at 4:49 PM Vitor Massaru Iha wrote: > > > > Hi Ian, > > > > > > On Wed, Jul 29, 2020 at 7:57 PM Ian Rogers wrote: > > > > > > On Wed, J

[PATCH] lib: kunit: Fix compilation test when using TEST_BIT_FIELD_COMPILE

2020-10-15 Thread Vitor Massaru Iha
A build condition was missing around a compilation test, this compilation test comes from the original test_bitfield code. And removed unnecessary code for this test. Fixes: d2585f5164c2 ("lib: kunit: add bitfield test conversion to KUnit") Signed-off-by: Vitor Massaru Iha Li

Re: linux-next: build warnings after merge of the kunit-next tree

2020-10-15 Thread Vitor Massaru Iha
Hi Stephen, On Thu, Oct 15, 2020 at 2:31 AM Stephen Rothwell wrote: > > Hi all, > > After merging the kunit-next tree, today's linux-next build (x86_64 > allmodconfig) produced this warning: > > lib/bitfield_kunit.c: In function 'test_bitfields_compile': > lib/bitfield_kunit.c:136:21: warning:

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-14 Thread Vitor Massaru Iha
Hi Ian, On Wed, Jul 29, 2020 at 7:57 PM Ian Rogers wrote: > > On Wed, Jul 29, 2020 at 1:11 PM Vitor Massaru Iha wrote: > > > > This adds the conversion of the runtime tests of test_min_heap, > > from `lib/test_min_heap.c` to KUnit tests. > > > > Please appl

[PATCH v2] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-14 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_min_heap, from `lib/test_min_heap.c` to KUnit tests. Signed-off-by: Vitor Massaru Iha --- v2: * min_heap test now runs when enabling full test coverage (KUNIT_ALL_TESTS). --- lib/Kconfig.debug | 29 -- lib

[RESEND PATCH v2] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-14 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_min_heap, from `lib/test_min_heap.c` to KUnit tests. Signed-off-by: Vitor Massaru Iha --- v2: * change Kconfig entries to be more adherent to KUnit documentation, min_heap test runs when enabling full test coverage

[PATCH v2] lib: kunit: add list_sort test conversion to KUnit

2020-10-14 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_list_sort, from `lib/test_list_sort.c` to KUnit tests. Signed-off-by: Vitor Massaru Iha --- v2: * fix KUNIT_TEST sufix; * make kconfig help more concise; * remove obsolete commit comments; * change Kconfig entries to be more adherent

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-10-14 Thread Vitor Massaru Iha
On Wed, Oct 14, 2020 at 5:00 PM Peter Zijlstra wrote: > > On Wed, Oct 14, 2020 at 11:16:10AM -0700, Ian Rogers wrote: > > > There were some issues in the original patch, they should be easy to > > fix. I'm more concerned that Peter's issues are addressed about the > > general direction of the

Re: [PATCH] lib: kunit: add list_sort test conversion to KUnit

2020-08-27 Thread Vitor Massaru Iha
On Thu, Aug 27, 2020 at 7:23 AM Marco Elver wrote: > > On Wed, Jul 29, 2020 at 04:23PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_list_sort, > > from `lib/test_list_sort.c` to KUnit tests. > > > > Please apply this commi

Re: [PATCH v2] lib: kunit: Provides a userspace memory context when tests are compiled as module

2020-08-19 Thread Vitor Massaru Iha
On Wed, Aug 19, 2020 at 6:05 PM Brendan Higgins wrote: > > On Fri, Jul 17, 2020 at 5:50 PM Vitor Massaru Iha wrote: > > > > KUnit test cases run on kthreads, and kthreads don't have an > > adddress space (current->mm is NULL), but processes have mm. > > > >

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-08-04 Thread Vitor Massaru Iha
Hi Peter, On Tue, Aug 4, 2020 at 11:23 AM wrote: > > On Tue, Aug 04, 2020 at 10:46:21AM -0300, Vitor Massaru Iha wrote: > > On Tue, Aug 4, 2020 at 10:25 AM wrote: > > > On Wed, Jul 29, 2020 at 06:57:17PM -0300, Vitor Massaru Iha wrote: > > > > >

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-08-04 Thread Vitor Massaru Iha
Hi Peter, On Tue, Aug 4, 2020 at 10:25 AM wrote: > > On Wed, Jul 29, 2020 at 06:57:17PM -0300, Vitor Massaru Iha wrote: > > > The results can be seen this way: > > > > This is an excerpt from the test.log with the result in TAP format: > > [snip] > > ok

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-07-29 Thread Vitor Massaru Iha
Hi Ian, On Wed, Jul 29, 2020 at 7:57 PM 'Ian Rogers' via KUnit Development wrote: > > On Wed, Jul 29, 2020 at 1:11 PM Vitor Massaru Iha wrote: > > > > This adds the conversion of the runtime tests of test_min_heap, > > from `lib/test_min_heap.c` to KUnit tests. > >

Re: [PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-07-29 Thread Vitor Massaru Iha
Hi Peter, On Wed, Jul 29, 2020 at 5:39 PM wrote: > > On Wed, Jul 29, 2020 at 05:11:46PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_min_heap, > > from `lib/test_min_heap.c` to KUnit tests. > > > > Please apply this commi

Re: [PATCH v2] lib: kunit: Convert test_sort to KUnit test

2020-07-29 Thread Vitor Massaru Iha
On Wed, Jul 29, 2020 at 4:19 PM Andy Shevchenko wrote: > > On Wed, Jul 29, 2020 at 04:11:51PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the test_sort.c to KUnit test. > > > > Please apply this commit first (lin

[PATCH] lib: kunit: add test_min_heap test conversion to KUnit

2020-07-29 Thread Vitor Massaru Iha
Massaru Iha --- lib/Kconfig.debug | 29 -- lib/Makefile | 2 +- lib/{test_min_heap.c => min_heap_kunit.c} | 117 -- 3 files changed, 83 insertions(+), 65 deletions(-) rename lib/{test_min_heap.c => min_heap_kunit.

[PATCH] lib: kunit: add list_sort test conversion to KUnit

2020-07-29 Thread Vitor Massaru Iha
Documentation: [0] Signed-off-by: Vitor Massaru Iha Link: [0] https://lore.kernel.org/linux-kselftest/20200620054944.167330-1-david...@google.com/T/#u --- lib/Kconfig.debug | 29 +--- lib/Makefile| 2 +- lib/{test_list_sort.c

[PATCH v2] lib: kunit: Convert test_sort to KUnit test

2020-07-29 Thread Vitor Massaru Iha
Massaru Iha Reported-by: kernel test robot Link: [0] https://lore.kernel.org/linux-kselftest/20200620054944.167330-1-david...@google.com/T/#u --- v2: * Add Kunit Code Style reference in commit message; * Fix l...@intel.com warning report; --- lib/Kconfig.debug | 26

[PATCH] lib: kunit: add bitfield test conversion to KUnit

2020-07-29 Thread Vitor Massaru Iha
Documentation: [0] Signed-off-by: Vitor Massaru Iha Link: [0] https://lore.kernel.org/linux-kselftest/20200620054944.167330-1-david...@google.com/T/#u --- lib/Kconfig.debug | 23 -- lib/Makefile | 2 +- lib/{test_bitfield.c => bitfield_kunit.c} |

Re: [PATCH v3] lib: overflow_kunit: add KUnit test conversion of check_*_overflow

2020-07-23 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 8:47 PM 'Brendan Higgins' via KUnit Development wrote: > > On Tue, Jul 21, 2020 at 12:38 PM Vitor Massaru Iha wrote: > > > > On Tue, Jul 21, 2020 at 3:55 PM Kees Cook wrote: > > > > > > On Mon, Jul 20, 2020 at 07:44:18PM -0300, Vitor

Re: [PATCH] lib: kunit: Convert test_sort to KUnit test

2020-07-23 Thread Vitor Massaru Iha
On Thu, Jul 23, 2020 at 5:04 AM Andy Shevchenko wrote: > > On Wed, Jul 22, 2020 at 09:08:07PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the test_sort.c to KUnit test. > > > > Please apply this commit first (lin

[PATCH] lib: kunit: Convert test_sort to KUnit test

2020-07-22 Thread Vitor Massaru Iha
This adds the conversion of the test_sort.c to KUnit test. Please apply this commit first (linux-kselftest/kunit-fixes): 3f37d14b8a3152441f36b6bc74000996679f0998 kunit: kunit_config: Fix parsing of CONFIG options with space Signed-off-by: Vitor Massaru Iha --- lib/Kconfig.debug

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-22 Thread Vitor Massaru Iha
On Wed, Jul 22, 2020 at 4:45 PM Kees Cook wrote: > > On Wed, Jul 22, 2020 at 03:29:27PM -0300, Vitor Massaru Iha wrote: > > On Tue, Jul 21, 2020 at 11:12 PM Kees Cook wrote: > > > > > > On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > >

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-22 Thread Vitor Massaru Iha
On Wed, Jul 22, 2020 at 4:45 PM Kees Cook wrote: > > On Wed, Jul 22, 2020 at 03:29:27PM -0300, Vitor Massaru Iha wrote: > > On Tue, Jul 21, 2020 at 11:12 PM Kees Cook wrote: > > > > > > On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > >

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-22 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 11:12 PM Kees Cook wrote: > > On Tue, Jul 21, 2020 at 07:19:12PM -0300, Vitor Massaru Iha wrote: > > When you talk about end-of-test summary, is it what is written in > > dmesg and not the kunit-tool? > > Right, if I build this as a module and do &

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-21 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 7:19 PM Vitor Massaru Iha wrote: > > On Tue, Jul 21, 2020 at 4:09 PM Kees Cook wrote: > > > > On Tue, Jul 21, 2020 at 02:46:54PM -0300, Vitor Massaru Iha wrote: > > > This adds the conversion of the runtime tests of test_user_cop

Re: [PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-21 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 4:09 PM Kees Cook wrote: > > On Tue, Jul 21, 2020 at 02:46:54PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_user_copy fuctions, > > from `lib/test_user_copy.c`to KUnit tests. > > > > Si

Re: [PATCH v3] lib: kunit: Provides a userspace memory context when tests are compiled as module

2020-07-21 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 4:06 PM Kees Cook wrote: > > On Tue, Jul 21, 2020 at 02:40:36PM -0300, Vitor Massaru Iha wrote: > > KUnit test cases run on kthreads, and kthreads don't have an > > adddress space (current->mm is NULL), but processes have mm. > > > > The

Re: [PATCH v3] lib: overflow_kunit: add KUnit test conversion of check_*_overflow

2020-07-21 Thread Vitor Massaru Iha
On Tue, Jul 21, 2020 at 3:55 PM Kees Cook wrote: > > On Mon, Jul 20, 2020 at 07:44:18PM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of check_*_overflow functions, > > from `lib/test_overflow.c`to KUnit tests. > > > > The log si

[PATCH v3] lib: Convert test_user_copy to KUnit test

2020-07-21 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_user_copy fuctions, from `lib/test_user_copy.c`to KUnit tests. Signed-off-by: Vitor Massaru Iha --- v2: * splitted patch in 3: - Allows to install and load modules in root filesystem; - Provides an userspace memory context

[PATCH v3] lib: kunit: Provides a userspace memory context when tests are compiled as module

2020-07-21 Thread Vitor Massaru Iha
ess that loaded the module to borrow mm. This allows, for example, tests such as user_copy_kunit, which uses vm_mmap, which needs current->mm. Signed-off-by: Vitor Massaru Iha --- v2: * splitted patch in 3: - Allows to install and load modules in root filesystem; - Pr

[RFC v3] kunit: Allows to install and load modules in root filesystem

2020-07-21 Thread Vitor Massaru Iha
:$USER .uml_rootfs For the kunit-tool to correctly capture the test results, uml_utilities must be installed on the host to halt uml. Signed-off-by: Vitor Massaru Iha Reviewed-by: Brendan Higgins --- v2: * splitted patch in 3: - Allows to install and load modules in root filesystem

[PATCH v3] lib: overflow_kunit: add KUnit test conversion of check_*_overflow

2020-07-20 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of check_*_overflow functions, from `lib/test_overflow.c`to KUnit tests. The log similar to the one seen in dmesg running test_overflow.c can be seen in `test.log`. Signed-off-by: Vitor Massaru Iha Tested-by: David Gow --- v2: * moved lib

[PATCH v2] lib: Convert test_user_copy to KUnit test

2020-07-17 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_user_copy fuctions, from `lib/test_user_copy.c` to KUnit tests. Signed-off-by: Vitor Massaru Iha --- v2: * splitted patch in 3: - Allows to install and load modules in root filesystem; - Provides an userspace memory

[PATCH v2] lib: kunit: Provides a userspace memory context when tests are compiled as module

2020-07-17 Thread Vitor Massaru Iha
ess that loaded the module to borrow mm. This allows, for example, tests such as user_copy_kunit, which uses vm_mmap, which needs current->mm. Signed-off-by: Vitor Massaru Iha --- v2: * splitted patch in 3: - Allows to install and load modules in root filesystem; - Pr

[RFC v2] kunit: tool: Allows to install and load modules in root filesystem

2020-07-17 Thread Vitor Massaru Iha
:$USER .uml_rootfs For the kunit-tool to correctly capture the test results, uml_utilities must be installed on the host to halt uml. Signed-off-by: Vitor Massaru Iha Reviewed-by: Brendan Higgins --- v2: * splitted patch in 3: - Allows to install and load modules in root filesystem

Re: [RFC 3/3] lib: Convert test_user_copy to KUnit test

2020-07-16 Thread Vitor Massaru Iha
On Wed, 2020-07-15 at 19:34 -0700, Kees Cook wrote: > On Wed, Jul 15, 2020 at 12:11:20AM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of test_user_copy > > fuctions, > > from `lib/test_user_copy.c`to KUnit tests. > > > >

Re: [RFC 3/3] lib: Convert test_user_copy to KUnit test

2020-07-16 Thread Vitor Massaru Iha
On Wed, 2020-07-15 at 17:40 -0700, Brendan Higgins wrote: > On Tue, Jul 14, 2020 at 8:11 PM Vitor Massaru Iha > wrote: > > This adds the conversion of the runtime tests of test_user_copy > > fuctions, > > from `lib/test_user_copy.c`to KUnit tests. > > > &

Re: [RFC 2/3] lib: Allows to borrow mm in userspace on KUnit

2020-07-16 Thread Vitor Massaru Iha
On Wed, 2020-07-15 at 17:37 -0700, Brendan Higgins wrote: > On Tue, Jul 14, 2020 at 8:11 PM Vitor Massaru Iha > wrote: > > Probably want to add more of a description here as what you are doing > is not entirely trivial to someone not familiar with mm contexts. > > > Sign

Re: [RFC 2/3] lib: Allows to borrow mm in userspace on KUnit

2020-07-16 Thread Vitor Massaru Iha
On Wed, 2020-07-15 at 17:37 -0700, Brendan Higgins wrote: > On Tue, Jul 14, 2020 at 8:11 PM Vitor Massaru Iha > wrote: > > Probably want to add more of a description here as what you are doing > is not entirely trivial to someone not familiar with mm contexts. > > > Sign

Re: [RFC 1/3] kunit: tool: Add support root filesystem in kunit-tool

2020-07-16 Thread Vitor Massaru Iha
On Wed, 2020-07-15 at 17:29 -0700, 'Brendan Higgins' via KUnit Development wrote: > On Tue, Jul 14, 2020 at 8:11 PM Vitor Massaru Iha > wrote: > > This makes it possible to use KUnit tests as modules. > > And with that the tests can run in userspace. > > > > Th

Re: [RFC 0/3] kunit: add support to use modules

2020-07-16 Thread Vitor Massaru Iha
On Wed, 2020-07-15 at 19:41 -0700, Kees Cook wrote: > On Wed, Jul 15, 2020 at 11:47:11AM +0800, David Gow wrote: > > - The inheriting of the mm stuff still means that > > copy_{from,to}_user() will only work if loaded as a module. This > > really needs to be documented. (Ideally, we'd find a way

Re: [RFC 0/3] kunit: add support to use modules

2020-07-16 Thread Vitor Massaru Iha
On Wed, 2020-07-15 at 11:47 +0800, David Gow wrote: > On Wed, Jul 15, 2020 at 11:11 AM Vitor Massaru Iha > wrote: > > Currently, KUnit does not allow the use of tests as a module. > > This prevents the implementation of tests that require userspace. > > If this is wh

[RFC 3/3] lib: Convert test_user_copy to KUnit test

2020-07-14 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of test_user_copy fuctions, from `lib/test_user_copy.c`to KUnit tests. Signed-off-by: Vitor Massaru Iha --- lib/Kconfig.debug | 17 ++ lib/Makefile| 2 +- lib/{test_user_copy.c

[RFC 0/3] kunit: add support to use modules

2020-07-14 Thread Vitor Massaru Iha
Currently, KUnit does not allow the use of tests as a module. This prevents the implementation of tests that require userspace. This patchset makes this possible by introducing the use of the root filesystem in KUnit. And it allows the use of tests that can be compiled as a module Vitor Massaru

[RFC 2/3] lib: Allows to borrow mm in userspace on KUnit

2020-07-14 Thread Vitor Massaru Iha
Signed-off-by: Vitor Massaru Iha --- include/kunit/test.h | 1 + lib/kunit/try-catch.c | 15 ++- 2 files changed, 15 insertions(+), 1 deletion(-) diff --git a/include/kunit/test.h b/include/kunit/test.h index 59f3144f009a..49c38bdcb93e 100644 --- a/include/kunit/test.h +++ b

[RFC 1/3] kunit: tool: Add support root filesystem in kunit-tool

2020-07-14 Thread Vitor Massaru Iha
For the kunit-tool to correctly capture the test results, uml_utilities must be installed on the host to halt uml. Signed-off-by: Vitor Massaru Iha --- tools/testing/kunit/kunit.py| 37 -- tools/testing/kunit/kunit_kernel.py | 105 2 files changed

Re: [RESEND, PATCH v2] lib: overflow-test: add KUnit test of check_*_overflow functions

2020-06-19 Thread Vitor Massaru Iha
On Thu, 2020-06-18 at 20:05 -0700, Kees Cook wrote: > On Thu, Jun 18, 2020 at 11:08:14AM -0300, Vitor Massaru Iha wrote: > > This adds the conversion of the runtime tests of check_*_overflow > > functions, > > from `lib/test_overflow.c`to KUnit tests. > > > >

Re: [PATCH] kunit: fix KconfigParseError by ignoring CC_VERSION_TEXT

2020-06-18 Thread Vitor Massaru Iha
On Thu, 2020-06-18 at 13:29 -0700, Brendan Higgins wrote: > On Wed, Jun 17, 2020 at 8:57 PM Vitor Massaru Iha > wrote: > > Commit 8b59cd81dc5 ("kbuild: ensure full rebuild when the compiler > > is updated") added the environment variable CC_VERSION_TEXT, > >

[RESEND, PATCH v2] lib: overflow-test: add KUnit test of check_*_overflow functions

2020-06-18 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of check_*_overflow functions, from `lib/test_overflow.c`to KUnit tests. The log similar to the one seen in dmesg running test_overflow.c can be seen in `test.log`. Signed-off-by: Vitor Massaru Iha Tested-by: David Gow --- v2: * moved lib

[PATCH v2] lib: overflow-test: add KUnit test of check_*_overflow functions

2020-06-18 Thread Vitor Massaru Iha
This adds the conversion of the runtime tests of check_*_overflow functions, from `lib/test_overflow.c`to KUnit tests. The log similar to the one seen in dmesg running test_overflow.c can be seen in `test.log`. Signed-off-by: Vitor Massaru Iha --- v2: * moved lib/test_overflow.c to lib

[PATCH v2] kunit: fix KconfigParseError handling CC_VERSION_TEXT

2020-06-18 Thread Vitor Massaru Iha
"/home/iha/lkmp/linux/tools/testing/kunit/kunit_config.py", line 85, in parse_from_string raise KconfigParseError('Failed to parse: ' + line) kunit_config.KconfigParseError: Failed to parse: CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.1.1 20200507 (Red Hat 10.1.1-1)" Signed-off-b

[PATCH] kunit: fix KconfigParseError by ignoring CC_VERSION_TEXT

2020-06-17 Thread Vitor Massaru Iha
ools/testing/kunit/kunit_config.py", line 85, in parse_from_string raise KconfigParseError('Failed to parse: ' + line) kunit_config.KconfigParseError: Failed to parse: CONFIG_CC_VERSION_TEXT="gcc (GCC) 10.1.1 20200507 (Red Hat 10.1.1-1)" Signed-off-by: Vitor Massaru Iha --- t

Re: [PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions

2020-06-15 Thread Vitor Massaru Iha
On Sat, 2020-06-13 at 14:56 +0800, David Gow wrote: > On Fri, Jun 12, 2020 at 5:55 AM Vitor Massaru Iha > wrote: > > This adds the convertion of the runtime tests of check_*_overflow > > fuctions, > > from `lib/test_overflow.c`to KUnit tests. > > Nit: couple o

Re: [PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions

2020-06-15 Thread Vitor Massaru Iha
On Fri, 2020-06-12 at 15:36 -0700, Kees Cook wrote: > On Thu, Jun 11, 2020 at 06:55:01PM -0300, Vitor Massaru Iha wrote: > > This adds the convertion of the runtime tests of check_*_overflow > > fuctions, > > from `lib/test_overflow.c`to KUnit tests. > > > >

[PATCH] lib: kunit_test_overflow: add KUnit test of check_*_overflow functions

2020-06-11 Thread Vitor Massaru Iha
This adds the convertion of the runtime tests of check_*_overflow fuctions, from `lib/test_overflow.c`to KUnit tests. The log similar to the one seen in dmesg running test_overflow can be seen in `test.log`. Signed-off-by: Vitor Massaru Iha --- lib/Kconfig.debug | 17 ++ lib/Makefile

[PATCH] kunit: Fix TabError, remove defconfig code and handle when there is no kunitconfig

2020-05-29 Thread Vitor Massaru Iha
elf._kconfig.read_from_file(kunitconfig_path) File "/home/iha/sdb/opensource/lkmp/linux/tools/testing/kunit/kunit_config.py", line 88, in read_from_file with open(path, 'r') as f: FileNotFoundError: [Errno 2] No such file or directory: '.kunit/.kunitconfig' Signed-off-by: Vitor Massaru

Re: [fixup v2] kunit: use --build_dir=.kunit as default

2020-05-29 Thread Vitor Massaru Iha
On Thu, May 28, 2020 at 2:28 PM Shuah Khan wrote: > > On 5/26/20 6:34 PM, Vitor Massaru Iha wrote: > > To make KUnit easier to use, and to avoid overwriting object and > > .config files, the default KUnit build directory is set to .kunit > > > > Fixed up mino

[fixup v2] kunit: use --build_dir=.kunit as default

2020-05-26 Thread Vitor Massaru Iha
--defconfig File "tools/testing/kunit/kunit.py", line 254 if not linux: ^ TabError: inconsistent use of tabs and spaces in indentation Signed-off-by: Vitor Massaru Iha Reviewed-by: Brendan Higgins Signed-off-by: Shuah Khan Link: https://bugzilla.kernel.org/show_

Re: [fixup] kunit: use --build_dir=.kunit as default

2020-05-26 Thread Vitor Massaru Iha
On Tue, 2020-05-26 at 16:29 -0600, Shuah Khan wrote: > On 5/26/20 12:34 PM, Vitor Massaru Iha wrote: > > To make KUnit easier to use, and to avoid overwriting object and > > .config files, the default KUnit build directory is set to .kunit > > > > * Related bug:

[fixup] kunit: use KUnit defconfig by default

2020-05-26 Thread Vitor Massaru Iha
To improve the usability of KUnit, defconfig is used by default if no kunitconfig is present. * https://bugzilla.kernel.org/show_bug.cgi?id=205259 Fixed up minor merge conflicts - Shuah Khan Signed-off-by: Vitor Massaru Iha Reviewed-by: Brendan Higgins Signed-off-by: Shuah Khan --- Version

[fixup] kunit: use --build_dir=.kunit as default

2020-05-26 Thread Vitor Massaru Iha
To make KUnit easier to use, and to avoid overwriting object and .config files, the default KUnit build directory is set to .kunit * Related bug: https://bugzilla.kernel.org/show_bug.cgi?id=205221 Fixed up minor merge conflicts - Shuah Khan Signed-off-by: Vitor Massaru Iha Reviewed

Re: [RESEND] kunit: use --build_dir=.kunit as default

2020-05-25 Thread Vitor Massaru Iha
On Mon, 2020-05-25 at 22:52 -0300, Vitor Massaru Iha wrote: > Hi Shuah, > > On Fri, 2020-05-22 at 16:40 -0600, shuah wrote: > > On 4/16/20 5:11 PM, Brendan Higgins wrote: > > > On Tue, Apr 14, 2020 at 4:09 PM Vitor Massaru Iha < > > > vi...@massaru.org> wro

Re: [RESEND] kunit: use --build_dir=.kunit as default

2020-05-25 Thread Vitor Massaru Iha
Hi Shuah, On Fri, 2020-05-22 at 16:40 -0600, shuah wrote: > On 4/16/20 5:11 PM, Brendan Higgins wrote: > > On Tue, Apr 14, 2020 at 4:09 PM Vitor Massaru Iha < > > vi...@massaru.org> wrote: > > > To make KUnit easier to use, and to avoid overwriting object and &g

Re: [PATCH] docs: s390: Fix wrong label Guest2 instead of Guest3

2020-05-05 Thread Vitor Massaru Iha
On Tue, 2020-05-05 at 09:46 -0600, Jonathan Corbet wrote: > On Thu, 30 Apr 2020 19:12:38 -0300 > Vitor Massaru Iha wrote: > > > This fixes: > > > > Documentation/s390/vfio-ap.rst:488: WARNING: duplicate label > > s390/vfio-ap:guest2, other instance in > >

[RESEND] doc: misc-device: add uacce to toctree(index)

2020-04-30 Thread Vitor Massaru Iha
This fixes: Documentation/misc-devices/uacce.rst: WARNING: document isn't included in any toctree Signed-off-by: Vitor Massaru Iha --- Documentation/misc-devices/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/misc-devices/index.rst b/Documentation/misc-devices

[PATCH] doc: misc-device: add uaccee to toctree(index)

2020-04-30 Thread Vitor Massaru Iha
This fixes: Documentation/misc-devices/uacce.rst: WARNING: document isn't included in any toctree Signed-off-by: Vitor Massaru Iha --- Documentation/misc-devices/index.rst | 1 + 1 file changed, 1 insertion(+) diff --git a/Documentation/misc-devices/index.rst b/Documentation/misc-devices

[PATCH] docs: s390: Fix wrong label Guest2 instead of Guest3

2020-04-30 Thread Vitor Massaru Iha
This fixes: Documentation/s390/vfio-ap.rst:488: WARNING: duplicate label s390/vfio-ap:guest2, other instance in /home/iha/sdb/opensource/lkmp/linux_doc/Documentation/s390/vfio-ap.rst Signed-off-by: Vitor Massaru Iha --- Documentation/s390/vfio-ap.rst | 2 +- 1 file changed, 1 insertion(+), 1

Re: [PATCH] Documentation: fix `make htmldocs ` warning

2020-04-30 Thread Vitor Massaru Iha
On Thu, 2020-04-30 at 15:05 -0600, Jonathan Corbet wrote: > On Thu, 30 Apr 2020 17:54:47 -0300 > Vitor Massaru Iha wrote: > > > Fix 'make htmldocs' warning: > > Documentation/virt/kvm/amd-memory-encryption.rst:76: WARNING: > > Inline literal start-string without end-

[PATCH] Documentation: fix `make htmldocs ` warning

2020-04-30 Thread Vitor Massaru Iha
Fix 'make htmldocs' warning: Documentation/virt/kvm/amd-memory-encryption.rst:76: WARNING: Inline literal start-string without end-string. Signed-off-by: Vitor Massaru Iha --- Documentation/virt/kvm/amd-memory-encryption.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git

[PATCH] docs: coresight: fix `make htmldocs` warning

2020-04-30 Thread Vitor Massaru Iha
Fix `make htmldocs` warning: Documentation/trace/coresight/coresight-ect.rst:2: WARNING: Explicit markup ends without a blank line; unexpected unindent. Signed-off-by: Vitor Massaru Iha --- Documentation/trace/coresight/coresight-ect.rst | 1 + 1 file changed, 1 insertion(+) diff --git

Re: [PATCH] docs: filesystems: fix `make htmldocs` warning

2020-04-30 Thread Vitor Massaru Iha
On Thu, 2020-04-30 at 14:04 -0600, Jonathan Corbet wrote: > On Thu, 30 Apr 2020 16:57:24 -0300 > Vitor Massaru Iha wrote: > > > Sorry about that. I searched but I didn't find the documentation > > tree. > > Could you point me to the git url? > > The MAINTAINERS

Re: [PATCH] docs: filesystems: fix `make htmldocs` warning

2020-04-30 Thread Vitor Massaru Iha
Hi Jon, On Thu, 2020-04-30 at 13:47 -0600, Jonathan Corbet wrote: > On Thu, 30 Apr 2020 16:07:37 -0300 > Vitor Massaru Iha wrote: > > > make htmldocs > > Documentation/filesystems/orangefs.rst:124: WARNING: Literal block > > expected; none found. > > >

[PATCH] docs: filesystems: fix `make htmldocs` warning

2020-04-30 Thread Vitor Massaru Iha
make htmldocs Documentation/filesystems/orangefs.rst:124: WARNING: Literal block expected; none found. Signed-off-by: Vitor Massaru Iha --- Documentation/filesystems/orangefs.rst | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Documentation/filesystems/orangefs.rst b

[PATCH] scsi: mptfusion: fix `make htmldocs` Warning

2020-04-30 Thread Vitor Massaru Iha
make htmldocs ./drivers/message/fusion/mptbase.c:5057: WARNING: Definition list ends without a blank line; unexpected unindent. Signed-off-by: Vitor Massaru Iha --- drivers/message/fusion/mptbase.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/message/fusion/mptbase.c b/drivers

Re: [PATCH] dma-buf: Documentation: fix: `make htmldocs` warnings

2020-04-29 Thread Vitor Massaru Iha
On Wed, 2020-04-29 at 19:06 -0700, Randy Dunlap wrote: > On 4/29/20 6:59 PM, Vitor Massaru Iha wrote: > > Add missed ":" on kernel-doc function parameter. > > > > This patch fixes this warnings from `make htmldocs`: > > ./drivers/dma-buf/dma-buf.c:678: warn

[PATCH] dma-buf: Documentation: fix: `make htmldocs` warnings

2020-04-29 Thread Vitor Massaru Iha
parameter or member 'importer_priv' not described in 'dma_buf_dynamic_attach' Signed-off-by: Vitor Massaru Iha --- drivers/dma-buf/dma-buf.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/dma-buf/dma-buf.c b/drivers/dma-buf/dma-buf.c index ccc9eda1bc28..0756d2155