From 0500678ee916d28905a3395a8ba3439342b04a86 Mon Sep 17 00:00:00 2001 From: Tao Huang Date: Mon, 3 Apr 2023 16:32:25 +0800 Subject: [PATCH] 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 Change-Id: I6fce3176441fca1910c4edfb6f3eeb423149fc45 --- .../net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/linuxver.h | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/linuxver.h b/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/linuxver.h index c39d7b6a45f5..f405a5d94f3e 100755 --- a/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/linuxver.h +++ b/drivers/net/wireless/rockchip_wlan/rkwifi/bcmdhd/include/linuxver.h @@ -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) */