[PATCH v3 01/18] memfd: export memfd_get_seals()
From: Samiullah Khawaja
Date: Sun Jun 14 2026 - 19:37:41 EST
memfd_get_seals() is used by iommufd during preservation to make sure
that he preserved memfd was sealed when it was mapped into iommufd.
Since iommufd can be built as a module, export memfd_get_seals() to
avoid linker error.
Cc: Hugh Dickins <hughd@xxxxxxxxxx>
Cc: Baolin Wang <baolin.wang@xxxxxxxxxxxxxxxxx>
Cc: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
Cc: linux-mm@xxxxxxxxx
Signed-off-by: Samiullah Khawaja <skhawaja@xxxxxxxxxx>
---
mm/memfd.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/mm/memfd.c b/mm/memfd.c
index fb425f4e315f..1f45fa6d4e9c 100644
--- a/mm/memfd.c
+++ b/mm/memfd.c
@@ -315,6 +315,7 @@ int memfd_get_seals(struct file *file)
return seals ? *seals : -EINVAL;
}
+EXPORT_SYMBOL_GPL(memfd_get_seals);
long memfd_fcntl(struct file *file, unsigned int cmd, unsigned int arg)
{
--
2.54.0.1136.gdb2ca164c4-goog