Removed extra definitions
authorVladimir Sokolovsky <vlad@mellanox.com>
Mon, 10 Oct 2016 10:41:59 +0000 (13:41 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Mon, 10 Oct 2016 10:41:59 +0000 (13:41 +0300)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
include/linux/compat-3.12.h
include/linux/compat-3.16.h

index 007d4a6..69628f9 100644 (file)
 
 #define MODULE_ALIAS_FS(NAME) MODULE_ALIAS("fs-" NAME)
 
-#define file_inode LINUX_BACKPORT(file_inode)
-static inline struct inode *file_inode(struct file *f)
-{
-       return f->f_dentry->d_inode;
-}
-
 #include <linux/pci.h>
 
 #ifndef HAVE_PCIE_LINK_WIDTH
index db79f32..2d7f048 100644 (file)
@@ -22,11 +22,6 @@ int cpumask_set_cpu_local_first(int i, int numa_node, cpumask_t *dstp);
 
 #include <linux/ktime.h>
 
-static inline u64 ktime_get_ns(void)
-{
-       return ktime_to_ns(ktime_get());
-}
-
 #ifndef smp_mb__after_atomic
 #define smp_mb__after_atomic() smp_mb()
 #endif