Try the following:
$ sudo apt install build-essential bc dkms git
$ cd /usr/src/linux-headers-5.10.110-rockchip-rk3588/
$ sudo make modules_prepare -k -i
$ cd ~
$ mkdir 8812au_driver
$ cd 8812au_driver
$ git clone https://github.com/morrownr/8812au-20210629.git
$ cd 8812au-20210629/os_dep/
$ nano osdep_service.c
Each time you find a filp_open() function call (you can find it with Ctrl+W), add the following line before, save the file (Ctrl+O) and exit (Ctrl+X):
MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
After that, continue:
$ cd ..
$ sudo ./install-driver.sh
Restart computer...
If you don't want to edit the file manually, here is the DIFF file:
diff --git a/os_dep/osdep_service.c b/os_dep/osdep_service.c
index 42d8832..0228768 100644
--- a/os_dep/osdep_service.c
+++ b/os_dep/osdep_service.c
@@ -2393,6 +2393,7 @@ static int openFile(struct file **fpp, const char *path, int flag, int mode)
{
struct file *fp;
+ MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
fp = filp_open(path, flag, mode);
if (IS_ERR(fp)) {
*fpp = NULL;
@@ -2505,6 +2506,7 @@ static int isFileReadable(const char *path, u32 *sz)
#endif
char buf;
+ MODULE_IMPORT_NS(VFS_internal_I_am_really_a_filesystem_and_am_NOT_a_driver);
fp = filp_open(path, O_RDONLY, 0);
if (IS_ERR(fp))
ret = PTR_ERR(fp);
It worked here like a charm...