Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | From 7d71124991030f99965e6e6aaed421115f185adb Mon Sep 17 00:00:00 2001 |
| 2 | From: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> |
| 3 | Date: Mon, 9 Feb 2015 13:51:56 +0100 |
| 4 | Subject: [PATCH] ioctl.c: Fix build on 3.19 |
| 5 | |
| 6 | get_unused_fd() MACRO has been removed on kernel 3.19. Replace by the |
| 7 | actual output of the macro. |
| 8 | |
| 9 | Signed-off-by: Ricardo Ribalda Delgado <ricardo.ribalda@gmail.com> |
| 10 | --- |
| 11 | ioctl.c | 2 +- |
| 12 | 1 file changed, 1 insertion(+), 1 deletion(-) |
| 13 | |
| 14 | diff --git a/ioctl.c b/ioctl.c |
| 15 | index f26cf93..cf8cc17 100644 |
| 16 | --- a/ioctl.c |
| 17 | +++ b/ioctl.c |
| 18 | @@ -529,7 +529,7 @@ static int |
| 19 | clonefd(struct file *filp) |
| 20 | { |
| 21 | int ret; |
| 22 | - ret = get_unused_fd(); |
| 23 | + ret = get_unused_fd_flags(0); |
| 24 | if (ret >= 0) { |
| 25 | get_file(filp); |
| 26 | fd_install(ret, filp); |
| 27 | -- |
| 28 | 2.1.4 |
| 29 | |