[PATCH v8 01/18] liveupdate: Export symbols needed by modules

From: Samiullah Khawaja

Date: Sun Nov 22 2026 - 23:50:02 EST


From: Vipin Sharma <vipinsh@xxxxxxxxxx>

Export liveupdate_register_file_handler() and
liveupdate_unregister_file_handler() so live update file handlers can
be registered from modules. iommufd uses them in a subsequent commit,
and it can be built as a module.

Reviewed-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>
Reviewed-by: Pranjal Shrivastava <praan@xxxxxxxxxx>
Signed-off-by: David Matlack <dmatlack@xxxxxxxxxx>
Signed-off-by: Vipin Sharma <vipinsh@xxxxxxxxxx>
[skhawaja: reworded the commit message for iommufd]
Signed-off-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>
---
kernel/liveupdate/luo_file.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/kernel/liveupdate/luo_file.c b/kernel/liveupdate/luo_file.c
index a39992da504f..dac7a1c4590d 100644
--- a/kernel/liveupdate/luo_file.c
+++ b/kernel/liveupdate/luo_file.c
@@ -931,6 +931,7 @@ int liveupdate_register_file_handler(struct liveupdate_file_handler *fh)
up_write(&luo_register_rwlock);
return err;
}
+EXPORT_SYMBOL_GPL(liveupdate_register_file_handler);

/**
* liveupdate_unregister_file_handler - Unregister a liveupdate file handler
@@ -948,6 +949,7 @@ void liveupdate_unregister_file_handler(struct liveupdate_file_handler *fh)
luo_flb_unregister_all(fh);
list_del(&ACCESS_PRIVATE(fh, list));
}
+EXPORT_SYMBOL_GPL(liveupdate_unregister_file_handler);

/**
* liveupdate_get_token_outgoing - Get the token for a preserved file.
--
2.56.1.809.ga0b61035b5-goog