git: a6a1ab040f95 - stable/13 - LinuxKPI: add simple_open() to fs.h

From: Bjoern A. Zeeb <bz_at_FreeBSD.org>
Date: Fri, 19 Nov 2021 00:02:44 UTC
The branch stable/13 has been updated by bz:

URL: https://cgit.FreeBSD.org/src/commit/?id=a6a1ab040f95b8bd05a2c9172f68211a166b072b

commit a6a1ab040f95b8bd05a2c9172f68211a166b072b
Author:     Bjoern A. Zeeb <bz@FreeBSD.org>
AuthorDate: 2021-10-25 16:44:18 +0000
Commit:     Bjoern A. Zeeb <bz@FreeBSD.org>
CommitDate: 2021-11-19 00:01:26 +0000

    LinuxKPI: add simple_open() to fs.h
    
    Add a dummy simple_open() to fs.h as we have for other
    (unsupported) functions.
    This is needed by a wireless driver.
    
    (cherry picked from commit 41dee251ee9ead2e5c7a33b1457db5742c584354)
---
 sys/compat/linuxkpi/common/include/linux/fs.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/sys/compat/linuxkpi/common/include/linux/fs.h b/sys/compat/linuxkpi/common/include/linux/fs.h
index eaf806b6732c..f1892352d598 100644
--- a/sys/compat/linuxkpi/common/include/linux/fs.h
+++ b/sys/compat/linuxkpi/common/include/linux/fs.h
@@ -245,6 +245,12 @@ nonseekable_open(struct inode *inode, struct file *filp)
 	return 0;
 }
 
+static inline int
+simple_open(struct inode *inode, struct file *filp)
+{
+	return 0;
+}
+
 extern unsigned int linux_iminor(struct inode *);
 #define	iminor(...) linux_iminor(__VA_ARGS__)