]> git.baikalelectronics.ru Git - kernel.git/commit
kunit: fix kernel-doc warnings due to mismatched arg names
authorDaniel Latypov <dlatypov@google.com>
Tue, 5 Oct 2021 20:46:32 +0000 (13:46 -0700)
committerShuah Khan <skhan@linuxfoundation.org>
Wed, 6 Oct 2021 23:54:07 +0000 (17:54 -0600)
commitf7e2b357def736fb740307f11c15335f15e0aaf8
tree7f9888bb0e3540474ba3b495c63f333b55cd6cf3
parentcf29411bef166f626baafff1b5433f2f842febc0
kunit: fix kernel-doc warnings due to mismatched arg names

Commit 8f07ad143296 ("kunit: introduce
kunit_kmalloc_array/kunit_kcalloc() helpers") added new functions but
called last arg `flags`, unlike the existing code that used `gfp`.
This only is an issue in test.h, test.c still used `gfp`.

But the documentation was copy-pasted with the old names, leading to
kernel-doc warnings.

Do s/flags/gfp to make the names consistent and fix the warnings.

Fixes: 8f07ad143296 ("kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpers")
Reported-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Daniel Latypov <dlatypov@google.com>
Reviewed-by: Randy Dunlap <rdunlap@infradead.org>
Reviewed-by: Brendan Higgins <brendanhiggins@google.com>
Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
include/kunit/test.h