The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / cryptodev-linux / 0001-fix-compilation-against-linux-3.19.patch
1 From 5054d20d45571cc85339351fde52f872eeb82206 Mon Sep 17 00:00:00 2001
2 From: Phil Sutter <phil@nwl.cc>
3 Date: Tue, 10 Feb 2015 04:57:05 +0100
4 Subject: [PATCH] fix compilation against linux-3.19
5
6 Commit f938612dd97d481b8b5bf960c992ae577f081c17 in linux.git removes
7 get_unused_fd() macro. This patch changes the calling code to use it's
8 content 'get_unused_fd_flags(0)' instead. Checking for when
9 get_unused_fd_flags was introduced shows it's been there since 2.6.23 at
10 least, so probably no need to make this change conditional on the target
11 kernel version.
12
13 Original patch by Ricardo Ribalda Delgado for Open Embedded, reported by
14 Oleg Rakhmanov.
15
16 Signed-off-by: Phil Sutter <phil@nwl.cc>
17 Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
18 ---
19  ioctl.c | 2 +-
20  1 file changed, 1 insertion(+), 1 deletion(-)
21
22 diff --git a/ioctl.c b/ioctl.c
23 index 5a55a76..b23f5fd 100644
24 --- a/ioctl.c
25 +++ b/ioctl.c
26 @@ -546,7 +546,7 @@ static int
27  clonefd(struct file *filp)
28  {
29         int ret;
30 -       ret = get_unused_fd();
31 +       ret = get_unused_fd_flags(0);
32         if (ret >= 0) {
33                         get_file(filp);
34                         fd_install(ret, filp);
35 -- 
36 2.0.5
37