summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorŁukasz Stelmach <l.stelmach@samsung.com>2021-03-26 22:41:29 +0100
committerŁukasz Stelmach <l.stelmach@samsung.com>2021-03-31 08:05:10 +0200
commita77cd0e4fdf378cf548601573defbfe87448d35f (patch)
tree55fa6d70cd64a9000206064777850f70dfa04996
parent2f48eb23cec7a3d33c54ddb7681763d5f962df45 (diff)
downloadlinux-rpi3-a77cd0e4fdf378cf548601573defbfe87448d35f.tar.gz
linux-rpi3-a77cd0e4fdf378cf548601573defbfe87448d35f.tar.bz2
linux-rpi3-a77cd0e4fdf378cf548601573defbfe87448d35f.zip
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 <l.stelmach@samsung.com>
-rw-r--r--ipc/kdbus/message.c4
1 files 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 <linux/cred.h>
#include <linux/file.h>
#include <linux/init.h>
+#include <linux/memfd.h>
#include <linux/module.h>
#include <linux/mutex.h>
#include <linux/sched.h>
-#include <linux/shmem_fs.h>
#include <linux/sizes.h>
#include <linux/slab.h>
#include <linux/uaccess.h>
@@ -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)