[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CAGS_qxoK_TMa_34BZR9QnVXjGYpG4i7MA+4N11GgybyJTC_9Tg@mail.gmail.com>
Date: Tue, 5 Oct 2021 13:48:15 -0700
From: Daniel Latypov <dlatypov@...gle.com>
To: Randy Dunlap <rdunlap@...radead.org>
Cc: linux-kernel@...r.kernel.org,
Brendan Higgins <brendanhiggins@...gle.com>,
linux-kselftest@...r.kernel.org, kunit-dev@...glegroups.com,
Shuah Khan <skhan@...uxfoundation.org>
Subject: Re: [PATCH] kunit: fix kernel-doc warnings in doc. build
On Tue, Oct 5, 2021 at 11:54 AM Randy Dunlap <rdunlap@...radead.org> wrote:
>
> On 10/5/21 9:21 AM, Daniel Latypov wrote:
> > On Mon, Oct 4, 2021 at 10:30 PM Randy Dunlap <rdunlap@...radead.org> wrote:
> >>
> >> Fix documentation build warnings in <kunit/test.h>:
> >>
> >> ../include/kunit/test.h:616: warning: Function parameter or member 'flags' not described in 'kunit_kmalloc_array'
> >> ../include/kunit/test.h:616: warning: Excess function parameter 'gfp' description in 'kunit_kmalloc_array'
> >> ../include/kunit/test.h:661: warning: Function parameter or member 'flags' not described in 'kunit_kcalloc'
> >> ../include/kunit/test.h:661: warning: Excess function parameter 'gfp' description in 'kunit_kcalloc'
> >>
> >> Fixes: 0a756853586c ("kunit: test: add test resource management API")
> >> Fixes: 7122debb4367 ("kunit: introduce kunit_kmalloc_array/kunit_kcalloc() helpers")
> >> Signed-off-by: Randy Dunlap <rdunlap@...radead.org>
> >> Cc: Brendan Higgins <brendanhiggins@...gle.com>
> >> Cc: linux-kselftest@...r.kernel.org
> >> Cc: kunit-dev@...glegroups.com
> >> Cc: Daniel Latypov <dlatypov@...gle.com>
> >> Cc: Shuah Khan <skhan@...uxfoundation.org>
> >> ---
> >> include/kunit/test.h | 4 ++--
> >> 1 file changed, 2 insertions(+), 2 deletions(-)
> >>
> >> --- lnx-515-rc4.orig/include/kunit/test.h
> >> +++ lnx-515-rc4/include/kunit/test.h
> >> @@ -607,7 +607,7 @@ void kunit_remove_resource(struct kunit
> >> * @test: The test context object.
> >> * @n: number of elements.
> >> * @size: The size in bytes of the desired memory.
> >> - * @gfp: flags passed to underlying kmalloc().
> >> + * @flags: gfp flags passed to underlying kmalloc().
> >
> > Thanks for catching this.
> > But can we instead rename the parameters?
> > I can send out a patch for that if you'd prefer.
> >
> > The other funcs here use `gfp_t gfp`, which is why this copy-pasted
> > comment does too.
> > In test.c, kmalloc_array() actually calls the parameter `gfp` as well.
> >
>
> Sure, go ahead with it, please.
https://lore.kernel.org/linux-kselftest/20211005204632.3132652-1-dlatypov@google.com
Ran `make htmldocs` and I don't see any references to kunit in the
stdout or stderr, so I assume we're good now.
>
> --
> ~Randy
Powered by blists - more mailing lists