Re: [PATCH] livepatch: Call klp_match_callback() in klp_find_callback() to avoid code duplication

From: Luis Chamberlain
Date: Thu Dec 08 2022 - 19:22:26 EST


On Thu, Dec 08, 2022 at 04:11:06PM -0800, Song Liu wrote:
> On Tue, Dec 6, 2022 at 7:25 PM Zhen Lei <thunder.leizhen@xxxxxxxxxx> wrote:
> >
> > The implementation of function klp_match_callback() is identical to the
> > partial implementation of function klp_find_callback(). So call function
> > klp_match_callback() in function klp_find_callback() instead of the
> > duplicated code.
> >
> > Signed-off-by: Zhen Lei <thunder.leizhen@xxxxxxxxxx>
>
> Acked-by: Song Liu <song@xxxxxxxxxx>

Thanks, applied to modules-next given this depends on the kallsyms stuff there.
Pushed out.

Luis