mirror of
https://github.com/torvalds/linux.git
synced 2026-06-07 22:14:04 +02:00
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:
parent
61301c3b7b
commit
0500678ee9
|
|
@ -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) */
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user