[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <CABVgOSnT+d9p1syCDKLwU8jdtYCcbPVUEkdfm9aPPMCNaUJ68g@mail.gmail.com>
Date: Fri, 22 Dec 2023 16:38:57 +0800
From: David Gow <davidgow@...gle.com>
To: Richard Fitzgerald <rf@...nsource.cirrus.com>
Cc: brendan.higgins@...ux.dev, rmoar@...gle.com,
linux-kselftest@...r.kernel.org, kunit-dev@...glegroups.com,
linux-kernel@...r.kernel.org, patches@...nsource.cirrus.com
Subject: Re: [PATCH v2 2/2] kunit: Add example of kunit_activate_static_stub()
with pointer-to-function
On Thu, 21 Dec 2023 at 18:39, Richard Fitzgerald
<rf@...nsource.cirrus.com> wrote:
>
> Adds a variant of example_static_stub_test() that shows use of a
> pointer-to-function with kunit_activate_static_stub().
>
> A const pointer to the add_one() function is declared. This
> pointer-to-function is passed to kunit_activate_static_stub() and
> kunit_deactivate_static_stub() instead of passing add_one directly.
>
> Signed-off-by: Richard Fitzgerald <rf@...nsource.cirrus.com>
> ---
Reviewed-by: David Gow <davidgow@...gle.com>
Thanks,
-- David
Download attachment "smime.p7s" of type "application/pkcs7-signature" (4003 bytes)
Powered by blists - more mailing lists