[PATCH v2 01/22] liveupdate: Export symbols needed by modules

Samiullah Khawaja skhawaja at google.com
Tue Feb 24 09:08:11 PST 2026


On Thu, Jan 29, 2026 at 09:24:48PM +0000, David Matlack wrote:
>Export liveupdate_enabled(), liveupdate_register_file_handler(), and
>liveupdate_unregister_file_handler(). All of these will be used by
>vfio-pci in a subsequent commit, which can be built as a module.
>
>Signed-off-by: David Matlack <dmatlack at google.com>
>---
> kernel/liveupdate/luo_core.c | 1 +
> kernel/liveupdate/luo_file.c | 2 ++
> 2 files changed, 3 insertions(+)
>
>diff --git a/kernel/liveupdate/luo_core.c b/kernel/liveupdate/luo_core.c
>index dda7bb57d421..59d7793d9444 100644
>--- a/kernel/liveupdate/luo_core.c
>+++ b/kernel/liveupdate/luo_core.c
>@@ -255,6 +255,7 @@ bool liveupdate_enabled(void)
> {
> 	return luo_global.enabled;
> }
>+EXPORT_SYMBOL_GPL(liveupdate_enabled);
>
> /**
>  * DOC: LUO ioctl Interface
>diff --git a/kernel/liveupdate/luo_file.c b/kernel/liveupdate/luo_file.c
>index 35d2a8b1a0df..32759e846bc9 100644
>--- a/kernel/liveupdate/luo_file.c
>+++ b/kernel/liveupdate/luo_file.c
>@@ -872,6 +872,7 @@ int liveupdate_register_file_handler(struct liveupdate_file_handler *fh)
> 	luo_session_resume();
> 	return err;
> }
>+EXPORT_SYMBOL_GPL(liveupdate_register_file_handler);
>
> /**
>  * liveupdate_unregister_file_handler - Unregister a liveupdate file handler
>@@ -917,3 +918,4 @@ int liveupdate_unregister_file_handler(struct liveupdate_file_handler *fh)
> 	liveupdate_test_register(fh);
> 	return err;
> }
>+EXPORT_SYMBOL_GPL(liveupdate_unregister_file_handler);
>-- 
>2.53.0.rc1.225.gd81095ad13-goog
>

Reviewed-by: Samiullah Khawaja <skhawaja at google.com>



More information about the kexec mailing list