From: Łukasz Stelmach Date: Fri, 26 Mar 2021 21:41:29 +0000 (+0100) Subject: kdbus: porting to to 4.19 X-Git-Tag: submit/tizen/20210401.011549~3 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a77cd0e4fdf378cf548601573defbfe87448d35f;p=platform%2Fkernel%2Flinux-rpi3.git kdbus: porting to to 4.19 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 --- 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)