aboutsummaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorWolfgang Wiedmeyer <wolfgit@wiedmeyer.de>2017-01-21 01:33:48 +0100
committerDenis 'GNUtoo' Carikli <GNUtoo@cyberdimension.org>2019-07-24 12:28:05 +0200
commit934b9a3ebaca33355f1ecab121a7cbaf08e76c83 (patch)
tree6f33ce845de0c15125fdefb714e3c4a16c0ecc45 /fs
parent85c5e6dfbc3fe3536c1fd12c23d975d5712f1386 (diff)
downloadkernel_samsung_smdk4412-934b9a3ebaca33355f1ecab121a7cbaf08e76c83.tar.gz
kernel_samsung_smdk4412-934b9a3ebaca33355f1ecab121a7cbaf08e76c83.tar.bz2
kernel_samsung_smdk4412-934b9a3ebaca33355f1ecab121a7cbaf08e76c83.zip
Backport mac80211 from 3.4 kernel
The ath9k_htc driver depends on mac80211, but mac80211 can't be build. The reason is that net/wireless is almost completely backported from a 3.4 kernel. To follow suit, mac80211 is also backported from 3.4, more precisely from 3.4.113. This makes mac80211 build. Signed-off-by: Wolfgang Wiedmeyer <wolfgit@wiedmeyer.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/libfs.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/fs/libfs.c b/fs/libfs.c
index 275ca4749a2..3af183c71fb 100644
--- a/fs/libfs.c
+++ b/fs/libfs.c
@@ -264,6 +264,13 @@ Enomem:
return ERR_PTR(-ENOMEM);
}
+int simple_open(struct inode *inode, struct file *file)
+{
+ if (inode->i_private)
+ file->private_data = inode->i_private;
+ return 0;
+}
+
int simple_link(struct dentry *old_dentry, struct inode *dir, struct dentry *dentry)
{
struct inode *inode = old_dentry->d_inode;