Blame SOURCES/retire-the-APIs-that-driver-nolonger-supports.patch

2c1b57
From e644902ddbc66d58a3fd4353c9539276ee1fabd7 Mon Sep 17 00:00:00 2001
2c1b57
From: Zhilong Liu <zlliu@suse.com>
2c1b57
Date: Thu, 11 May 2017 16:52:41 +0800
2c1b57
Subject: [RHEL7.5 PATCH 136/169] retire the APIs that driver no longer
2c1b57
 supports
2c1b57
2c1b57
refer to commit: e6e5f8f1267d ("Build: Stop
2c1b57
bothering about supporting md driver ...")
2c1b57
continue to retire the APIs that md driver
2c1b57
wasn't supported for very long period of time.
2c1b57
2c1b57
Signed-off-by: Zhilong Liu <zlliu@suse.com>
2c1b57
Signed-off-by: Jes Sorensen <jsorensen@fb.com>
2c1b57
---
2c1b57
 Build.c  | 4 ----
2c1b57
 Manage.c | 4 ----
2c1b57
 2 files changed, 8 deletions(-)
2c1b57
2c1b57
diff --git a/Build.c b/Build.c
2c1b57
index ad59867..70ba068 100644
2c1b57
--- a/Build.c
2c1b57
+++ b/Build.c
2c1b57
@@ -24,10 +24,6 @@
2c1b57
 
2c1b57
 #include "mdadm.h"
2c1b57
 
2c1b57
-#define REGISTER_DEV		_IO (MD_MAJOR, 1)
2c1b57
-#define START_MD		_IO (MD_MAJOR, 2)
2c1b57
-#define STOP_MD			_IO (MD_MAJOR, 3)
2c1b57
-
2c1b57
 int Build(char *mddev, struct mddev_dev *devlist,
2c1b57
 	  struct shape *s, struct context *c)
2c1b57
 {
2c1b57
diff --git a/Manage.c b/Manage.c
2c1b57
index 14276b7..467efb7 100644
2c1b57
--- a/Manage.c
2c1b57
+++ b/Manage.c
2c1b57
@@ -27,10 +27,6 @@
2c1b57
 #include "md_p.h"
2c1b57
 #include <ctype.h>
2c1b57
 
2c1b57
-#define REGISTER_DEV		_IO (MD_MAJOR, 1)
2c1b57
-#define START_MD		_IO (MD_MAJOR, 2)
2c1b57
-#define STOP_MD			_IO (MD_MAJOR, 3)
2c1b57
-
2c1b57
 int Manage_ro(char *devname, int fd, int readonly)
2c1b57
 {
2c1b57
 	/* switch to readonly or rw
2c1b57
-- 
2c1b57
2.7.4
2c1b57