cryptodev-module: Backport a patch to fix build failure with kernel v5.8
PATCH 1/2 cryptodev-module: Backport a patch to fix build failure with kernel v5.8
From: He Zhe <[email protected]>
Fix the following build failure with linux-yocto-dev
zc.c:61:17: error: 'struct mm_struct' has no member named 'mmap_sem'; did you mean 'mmap_base'?
61 | down_read(&mm->mmap_sem);
| ^~~~~~~~
| mmap_base
zc.c:77:15: error: 'struct mm_struct' has no member named 'mmap_sem';
did you mean 'mmap_base'?
77 | up_read(&mm->mmap_sem);
| ^~~~~~~~
| mmap_base(From OE-Core rev: fe668065ad7ec83aadfa36fe6ba1ced3db2e3cad)
Signed-off-by He Zhe <[email protected]>
Signed-off-by Richard Purdie <[email protected]>
Signed-off-by Naveen Saini <[email protected]>
--- .../cryptodev/cryptodev-module_1.10.bb | 1 + .../0001-Fix-build-for-Linux-5.8-rc1.patch | 49 +++++++++++++++++++ 2 files changed, 50 insertions(+) create mode 100644 meta/recipes-kernel/cryptodev/files/0001-Fix-build-for-Linux-5.8-rc1.patch
meta/recipes-kernel/cryptodev/cryptodev-module_1.10.bb +1 -0
@@ -9,6 +9,7 @@ DEPENDS += "cryptodev-linux" SRC_URI += " \ file://0001-Disable-installing-header-file-provided-by-another-p.patch \ +file://0001-Fix-build-for-Linux-5.8-rc1.patch \ " EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
meta/recipes-kernel/cryptodev/files/0001-Fix-build-for-Linux-5.8-rc1.patch new file +49 -0
49 lines not on this page · raw message
Signature · 1 line
2.17.1
PATCH 2/2 cryptodev-module: fix build failure with kernel v5.10
zc.c:77:8: error: too many arguments to function 'get_user_pages_remote'
| 77 | ret = get_user_pages_remote(task, mm, | | ^~~~~~~~~~~~~~~~~~~~~
Backported patch to fix it.
Signed-off-by Naveen Saini <[email protected]>
--- .../cryptodev/cryptodev-module_1.10.bb | 1 + .../0001-Fix-build-for-Linux-5.9-rc1.patch | 42 +++++++++++++++++++ 2 files changed, 43 insertions(+) create mode 100644 meta/recipes-kernel/cryptodev/files/0001-Fix-build-for-Linux-5.9-rc1.patch
meta/recipes-kernel/cryptodev/cryptodev-module_1.10.bb +1 -0
@@ -10,6 +10,7 @@ DEPENDS += "cryptodev-linux" SRC_URI += " \ file://0001-Disable-installing-header-file-provided-by-another-p.patch \ file://0001-Fix-build-for-Linux-5.8-rc1.patch \ +file://0001-Fix-build-for-Linux-5.9-rc1.patch \ " EXTRA_OEMAKE='KERNEL_DIR="${STAGING_KERNEL_DIR}" PREFIX="${D}"'
meta/recipes-kernel/cryptodev/files/0001-Fix-build-for-Linux-5.9-rc1.patch new file +42 -0
42 lines not on this page · raw message
Signature · 1 line
2.17.1