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)
commit361b57df62de249dc0b2acbf48823662a5001bcd
tree7f9888bb0e3540474ba3b495c63f333b55cd6cf3
parenta8cf90332ae3e2b53813a146a99261b6a5e16a73
kunit: fix kernel-doc warnings due to mismatched arg names

Commit 7122debb4367 ("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: 7122debb4367 ("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