From: Dennis Dalessandro Date: Mon, 30 Dec 2013 15:04:48 +0000 (-0500) Subject: compat: qib changes for 3.12 X-Git-Tag: compat-2014-01-30~1 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=030799f4ac6558ae4085168ad2265f4b29c68d65;p=compat-rdma%2Fcompat.git compat: qib changes for 3.12 Signed-off by Dennis Dalessandro (dennis.dalessandro@intel.com) --- diff --git a/include/linux/compat-3.12.h b/include/linux/compat-3.12.h index a9ff4b5..9cf23a9 100644 --- a/include/linux/compat-3.12.h +++ b/include/linux/compat-3.12.h @@ -9,6 +9,13 @@ #define PTR_ERR_OR_ZERO(p) PTR_RET(p) #endif +#define MODULE_ALIAS_FS(NAME) MODULE_ALIAS("fs-" NAME) + +static inline struct inode *file_inode(struct file *f) +{ + return f->f_dentry->d_inode; +} + #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,12,0)) */ #endif /* LINUX_3_12_COMPAT_H */