From a77cd0e4fdf378cf548601573defbfe87448d35f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Stelmach?= Date: Fri, 26 Mar 2021 22:41:29 +0100 Subject: kdbus: porting to to 4.19 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The following changes were made to adapt kdbus driver to 4.19 kernel - use memfd_fcntl() instead of shmem_get_seals() Change-Id: Iff24cd3c429310c3af748657a24a5e35db738635 Fixes: 5aadc431a593 ("shmem: rename functions that are memfd-related") Fixes: 5d752600a8c3 ("mm: restructure memfd code") Signed-off-by: Ɓukasz Stelmach --- ipc/kdbus/message.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ipc/kdbus/message.c b/ipc/kdbus/message.c index 8aef83d1b3f1..17475a652d5c 100644 --- a/ipc/kdbus/message.c +++ b/ipc/kdbus/message.c @@ -17,10 +17,10 @@ #include #include #include +#include #include #include #include -#include #include #include #include @@ -263,7 +263,7 @@ static struct file *kdbus_get_memfd(const struct kdbus_memfd *memfd) if (!f) return ERR_PTR(-EBADF); - s = shmem_get_seals(f); + s = memfd_fcntl(f, F_GET_SEALS, 0); if (s < 0) ret = ERR_PTR(-EMEDIUMTYPE); else if ((s & m) != m) -- cgit v1.2.3