Re: [PATCH v2 1/1] livepatch: Add using attribute to klp_func for using function show
From: zhang warden
Date: Tue Aug 06 2024 - 11:21:38 EST
> On Aug 5, 2024, at 14:46, zhangyongde.zyd <zhangwarden@xxxxxxxxx> wrote:
>
> From: Wardenjohn <zhangwarden@xxxxxxxxx>
>
>
> static void klp_init_func_early(struct klp_object *obj,
> struct klp_func *func)
> {
> + func->using = false;
> kobject_init(&func->kobj, &klp_ktype_func);
> list_add_tail(&func->node, &obj->func_list);
> }
I reviewed my mail again and found some typos and point them out first.
func->using = false
is a remaining mistake by the previous patch which will remove in the next patch.
>
> + *
> + * When this patch is in transition, all functions of this patch will
> + * set to be unknown
> */
This comment is left and become useless, it will be removed in the next patch.
Thanks!
Wardenjohn.