* [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
@ 2026-07-14 7:40 Hongfu Li
2026-07-14 8:58 ` Pratyush Yadav
2026-07-15 6:36 ` Mike Rapoport
0 siblings, 2 replies; 3+ messages in thread
From: Hongfu Li @ 2026-07-14 7:40 UTC (permalink / raw)
To: pasha.tatashin, rppt, pratyush; +Cc: kexec, linux-kernel, Hongfu Li
From: Hongfu Li <lihongfu@kylinos.cn>
luo_session_alloc() calls INIT_LIST_HEAD(&session->file_set.files_list)
followed immediately by luo_file_set_init(), which also performs
INIT_LIST_HEAD() on the same list head. Remove the duplicate call.
Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
---
kernel/liveupdate/luo_session.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/kernel/liveupdate/luo_session.c b/kernel/liveupdate/luo_session.c
index b79b2a488974..90ae3810e6cf 100644
--- a/kernel/liveupdate/luo_session.c
+++ b/kernel/liveupdate/luo_session.c
@@ -154,7 +154,6 @@ static struct luo_session *luo_session_alloc(const char *name)
return ERR_PTR(-ENOMEM);
strscpy(session->name, name, sizeof(session->name));
- INIT_LIST_HEAD(&session->file_set.files_list);
luo_file_set_init(&session->file_set);
INIT_LIST_HEAD(&session->list);
mutex_init(&session->mutex);
--
2.54.0
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
2026-07-14 7:40 [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc Hongfu Li
@ 2026-07-14 8:58 ` Pratyush Yadav
2026-07-15 6:36 ` Mike Rapoport
1 sibling, 0 replies; 3+ messages in thread
From: Pratyush Yadav @ 2026-07-14 8:58 UTC (permalink / raw)
To: Hongfu Li; +Cc: pasha.tatashin, rppt, pratyush, kexec, linux-kernel, Hongfu Li
On Tue, Jul 14 2026, Hongfu Li wrote:
> From: Hongfu Li <lihongfu@kylinos.cn>
>
> luo_session_alloc() calls INIT_LIST_HEAD(&session->file_set.files_list)
> followed immediately by luo_file_set_init(), which also performs
> INIT_LIST_HEAD() on the same list head. Remove the duplicate call.
>
> Signed-off-by: Hongfu Li <lihongfu@kylinos.cn>
Reviewed-by: Pratyush Yadav <pratyush@kernel.org>
[...]
--
Regards,
Pratyush Yadav
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
2026-07-14 7:40 [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc Hongfu Li
2026-07-14 8:58 ` Pratyush Yadav
@ 2026-07-15 6:36 ` Mike Rapoport
1 sibling, 0 replies; 3+ messages in thread
From: Mike Rapoport @ 2026-07-15 6:36 UTC (permalink / raw)
To: pasha.tatashin, pratyush, Hongfu Li; +Cc: kexec, linux-kernel, Hongfu Li
On Tue, 14 Jul 2026 15:40:56 +0800, Hongfu Li wrote:
> liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
Applied to misc branch of liveupdate/linux.git tree, thanks!
[1/1] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc
commit: 4867ab462d8d69e73c239b9a1a98e42a222f17a2
tree: https://git.kernel.org/pub/scm/linux/kernel/git/liveupdate/linux
branch: misc
--
Sincerely yours,
Mike.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-07-15 6:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-07-14 7:40 [PATCH] liveupdate: Remove redundant INIT_LIST_HEAD in luo_session_alloc Hongfu Li
2026-07-14 8:58 ` Pratyush Yadav
2026-07-15 6:36 ` Mike Rapoport
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox