From: CvH <namerp@googlemail.com>
Date: Wed, 22 Nov 2017 23:45:38 +0100
Subject: [PATCH] fix for kernel >=4.14

---
 include/ca.h              |  1 -
 util/dst-utils/dst_test.c | 14 --------------
 2 files changed, 15 deletions(-)

diff --git a/include/ca.h b/include/ca.h
index c18537f..5ad21c9 100644
--- a/include/ca.h
+++ b/include/ca.h
@@ -85,6 +85,5 @@ typedef struct ca_pid {
 #define CA_GET_MSG        _IOR('o', 132, ca_msg_t)
 #define CA_SEND_MSG       _IOW('o', 133, ca_msg_t)
 #define CA_SET_DESCR      _IOW('o', 134, ca_descr_t)
-#define CA_SET_PID        _IOW('o', 135, ca_pid_t)
 
 #endif
diff --git a/util/dst-utils/dst_test.c b/util/dst-utils/dst_test.c
index 74385de..5cf3bd8 100644
--- a/util/dst-utils/dst_test.c
+++ b/util/dst-utils/dst_test.c
@@ -111,16 +111,6 @@ static int dst_reset(int cafd)
 	return 0;
 }
 
-static int dst_set_pid(int cafd)
-{
-	if ((ioctl(cafd, CA_SET_PID)) < 0) {
-		printf("%s: ioctl failed ..\n", __FUNCTION__);
-		return -1;
-	}
-
-	return 0;
-}
-
 static int dst_get_descr(int cafd)
 {
 	if ((ioctl(cafd, CA_GET_DESCR_INFO)) < 0) {
@@ -229,10 +219,6 @@ int main(int argc, char *argv[])
 				printf("%s: Reset\n", __FUNCTION__);
 				dst_reset(cafd);
 				break;
-			case 'p':
-				printf("%s: PID\n", __FUNCTION__);
-				dst_set_pid(cafd);
-				break;
 			case 'g':
 				printf("%s: Get Desc\n", __FUNCTION__);
 				dst_get_descr(cafd);
