From 1fead62f11c9b47dcdb8dff2bb47c78df21a9875 Mon Sep 17 00:00:00 2001 From: Jian-Min Liu Date: Mon, 5 Jun 2023 12:46:44 +0000 Subject: [PATCH] nvmap: Explicitly import fs symbol for ACK Android Common Kernel (ACK) places restrictions on the use of symbols like close_fd, kernel_write, filp_open, etc, exported by the fs subsystem. These symbols have to be explicitly imported using MODULE_IMPORT_NS to avoid build errors. Eventually, synbol usage needs to be deprecated. Bug 3974840 Change-Id: Iea8518162c97062b205e80bf4b81c35c873b7729 Signed-off-by: Jian-Min Liu Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2915728 GVS: Gerrit_Virtual_Submit Reviewed-by: Laxman Dewangan Reviewed-by: svcacv --- drivers/video/tegra/nvmap/nvmap_ioctl.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/tegra/nvmap/nvmap_ioctl.c b/drivers/video/tegra/nvmap/nvmap_ioctl.c index b8a22681..e86839d8 100644 --- a/drivers/video/tegra/nvmap/nvmap_ioctl.c +++ b/drivers/video/tegra/nvmap/nvmap_ioctl.c @@ -44,6 +44,10 @@ #endif /* !NVMAP_LOADABLE_MODULE */ #endif +#ifdef NV_BUILD_KERNEL_ACK +MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver); +#endif + extern struct device tegra_vpr_dev; static ssize_t rw_handle(struct nvmap_client *client, struct nvmap_handle *h,