net: wireless: rockchip_wlan: bcmdhd: Call filp_open() only when CONFIG_NO_GKI

filp_open() is missing from GKI symbol list.

Signed-off-by: Tao Huang <huangtao@rock-chips.com>
Change-Id: I6fce3176441fca1910c4edfb6f3eeb423149fc45
This commit is contained in:
Tao Huang 2023-04-03 16:32:25 +08:00
parent 61301c3b7b
commit 0500678ee9

View File

@ -937,6 +937,7 @@ static inline struct inode *file_inode(const struct file *f)
#else
#define vfs_write(fp, buf, len, pos) ({ UNUSED_PARAMETER(fp); UNUSED_PARAMETER(buf); UNUSED_PARAMETER(len); UNUSED_PARAMETER(pos); -EPERM; })
#define vfs_read(fp, buf, len, pos) ({ UNUSED_PARAMETER(fp); UNUSED_PARAMETER(buf); UNUSED_PARAMETER(len); UNUSED_PARAMETER(pos); -EPERM; })
#define filp_open(filename, flags, mode) ({ UNUSED_PARAMETER(filename); UNUSED_PARAMETER(flags); UNUSED_PARAMETER(mode); ERR_PTR(-EPERM); })
#endif
int kernel_read_compat(struct file *file, loff_t offset, char *addr, unsigned long count);
#else /* LINUX_VERSION_CODE >= KERNEL_VERSION(4, 14, 0) */