[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Some more RTNLGRP macros are not defined on SLE11 yet.

[v2]: NVME_IOCTL_RESET is not defined on openSUSE 42.1. Include
compat.h in ioctls/nvme.c.

So define them in compat.h.

Signed-off-by: Jiri Slaby <jslaby@xxxxxxx>
---
 include/compat.h | 17 +++++++++++++++++
 ioctls/nvme.c    |  1 +
 2 files changed, 18 insertions(+)

diff --git a/include/compat.h b/include/compat.h
index fda51b529b4d..65e5e3c3cc08 100644
--- a/include/compat.h
+++ b/include/compat.h
@@ -268,6 +268,18 @@ enum {
 #ifndef NETLINK_SOCK_DIAG
 #define NETLINK_SOCK_DIAG 4
 #endif
+#ifndef RTNLGRP_DCB
+#define RTNLGRP_DCB 23
+#endif
+#ifndef RTNLGRP_IPV4_NETCONF
+#define RTNLGRP_IPV4_NETCONF 24
+#endif
+#ifndef RTNLGRP_IPV6_NETCONF
+#define RTNLGRP_IPV6_NETCONF 25
+#endif
+#ifndef RTNLGRP_MDB
+#define RTNLGRP_MDB 26
+#endif
 #ifndef RTNLGRP_MPLS_ROUTE
 #define RTNLGRP_MPLS_ROUTE 27
 #endif
@@ -1055,3 +1067,8 @@ struct kvm_get_htab_fd {
 #ifndef POLL_BUSY_LOOP
 #define POLL_BUSY_LOOP 0x8000
 #endif
+
+/* linux/nvme_ioctl.h */
+#ifndef NVME_IOCTL_RESET
+#define NVME_IOCTL_RESET _IO('N', 0x44)
+#endif
diff --git a/ioctls/nvme.c b/ioctls/nvme.c
index 406ec6bc2254..2cc9f1f9d366 100644
--- a/ioctls/nvme.c
+++ b/ioctls/nvme.c
@@ -3,6 +3,7 @@
 #include <linux/ioctl.h>
 #include <linux/nvme.h>
 
+#include "compat.h"
 #include "utils.h"
 #include "ioctls.h"
 
-- 
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe trinity" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html



[Index of Archives]     [Linux SCSI]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux