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 <jianminl@nvidia.com>
Reviewed-on: https://git-master.nvidia.com/r/c/linux-nv-oot/+/2915728
GVS: Gerrit_Virtual_Submit <buildbot_gerritrpt@nvidia.com>
Reviewed-by: Laxman Dewangan <ldewangan@nvidia.com>
Reviewed-by: svcacv <svcacv@nvidia.com>
This commit is contained in:
Jian-Min Liu
2023-06-05 12:46:44 +00:00
committed by mobile promotions
parent 90b394e5a6
commit 1fead62f11

View File

@@ -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,