diff options
| -rw-r--r-- | meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb | 1 | ||||
| -rw-r--r-- | meta/recipes-kernel/cryptodev/files/0001-ioctl.c-Fix-build-on-3.19.patch | 29 |
2 files changed, 30 insertions, 0 deletions
diff --git a/meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb b/meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb index df50e5a1c6..e6b10257f0 100644 --- a/meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb +++ b/meta/recipes-kernel/cryptodev/cryptodev-module_1.6.bb | |||
| @@ -10,6 +10,7 @@ DEPENDS += "cryptodev-linux" | |||
| 10 | SRC_URI += " \ | 10 | SRC_URI += " \ |
| 11 | file://0001-Disable-installing-header-file-provided-by-another-p.patch \ | 11 | file://0001-Disable-installing-header-file-provided-by-another-p.patch \ |
| 12 | file://0002-In-the-3.13-rc1-Linux-kernel-the-INIT_COMPLETION-mac.patch \ | 12 | file://0002-In-the-3.13-rc1-Linux-kernel-the-INIT_COMPLETION-mac.patch \ |
| 13 | file://0001-ioctl.c-Fix-build-on-3.19.patch \ | ||
| 13 | " | 14 | " |
| 14 | 15 | ||
| 15 | EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' | 16 | EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"' |
diff --git a/meta/recipes-kernel/cryptodev/files/0001-ioctl.c-Fix-build-on-3.19.patch b/meta/recipes-kernel/cryptodev/files/0001-ioctl.c-Fix-build-on-3.19.patch new file mode 100644 index 0000000000..74c8972536 --- /dev/null +++ b/meta/recipes-kernel/cryptodev/files/0001-ioctl.c-Fix-build-on-3.19.patch | |||
| @@ -0,0 +1,29 @@ | |||
| 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 | |||
