]> git.openfabrics.org - ~emulex/for-vlad/old/compat.git/commitdiff
compat-3.7.h: Cleanup
authorVladimir Sokolovsky <vlad@mellanox.com>
Thu, 21 May 2015 12:57:40 +0000 (15:57 +0300)
committerVladimir Sokolovsky <vlad@mellanox.com>
Thu, 21 May 2015 12:57:40 +0000 (15:57 +0300)
Signed-off-by: Vladimir Sokolovsky <vlad@mellanox.com>
include/linux/compat-3.7.h

index 7b99aae748ef4a137440ecffdaae3cd5fa7f9ba6..9724fa8f725fa2d16fec816a531ff3af794672d9 100644 (file)
@@ -15,7 +15,9 @@
 #include <linux/fdtable.h>
 #include <linux/seq_file.h>
 
+#ifndef VM_DONTDUMP
 #define VM_DONTDUMP    VM_NODUMP
+#endif
 
 #ifndef INIT_DEFERRABLE_WORK
 #define INIT_DEFERRABLE_WORK(_work, _func) INIT_DELAYED_WORK_DEFERRABLE(_work, _func)
@@ -49,10 +51,6 @@ static inline struct user_namespace *seq_user_ns(struct seq_file *seq)
 }
 #endif /* CONFIG_USER_NS */
 
-#define netlink_notify_portid(__notify) (__notify->pid)
-#define genl_info_snd_portid(__genl_info) (__genl_info->snd_pid)
-#define NETLINK_CB_PORTID(__skb) NETLINK_CB(cb->skb).pid
-
 #define mod_delayed_work LINUX_BACKPORT(mod_delayed_work)
 bool mod_delayed_work(struct workqueue_struct *wq, struct delayed_work *dwork,
                      unsigned long delay);
@@ -135,10 +133,6 @@ enum {
 #define fget_light LINUX_BACKPORT(fget_light)
 extern struct file *fget_light(unsigned int fd, int *fput_needed);
 
-#else /* (LINUX_VERSION_CODE > KERNEL_VERSION(3,7,0)) */
-#define netlink_notify_portid(__notify) (__notify->portid)
-#define genl_info_snd_portid(__genl_info) (__genl_info->snd_portid)
-#define NETLINK_CB_PORTID(__skb) NETLINK_CB(cb->skb).portid
 #endif /* (LINUX_VERSION_CODE < KERNEL_VERSION(3,7,0)) */
 
 #endif /* LINUX_3_7_COMPAT_H */