kdbus: porting to 4.14 24/213824/4
authorAdrian Szyndela <adrian.s@samsung.com>
Wed, 11 Sep 2019 13:34:33 +0000 (15:34 +0200)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Mon, 30 Sep 2019 06:41:09 +0000 (15:41 +0900)
commit846051292431cc81adb852c2b0cbbfddac4a3d48
tree6f838ed5db942d4cc245f8f4e0cf40bde7fb750d
parent970070c4f68f113284f86cf7b6fbd23d6b35b511
kdbus: porting to 4.14

This commit makes kdbus driver working with kernel 4.14.
It also enabled compilation of the driver if enabled in config.

The list of changes needed to make it compile with kernel 4.14:
- Add missing includes for <linux/cred.h>
- put inode_lock()/inode_unlock() in place of explicit mutex locking
- replace CURRENT_TIME with proper call to current_time()
- replace PAGE_CACHE_* with PAGE_*
- replace GFP_TEMPORARY with GFP_KERNEL
- use kvecs for kernel memory, iovec for user memory instead of only iovec
  for both
- fix usage of task_cgroup_path()
- replace GROUP_AT usage with 'gid' field dereference
- add 0 as an argument to init_name_hash
- add 0 as flags as an argument to vfs_iter_write
- replace __vfs_read with kernel_read to allow compilation into module

Change-Id: I3dd066ab531d0d3f7082556e4d38381961998015
Signed-off-by: Adrian Szyndela <adrian.s@samsung.com>
12 files changed:
ipc/Makefile
ipc/kdbus/bus.c
ipc/kdbus/domain.c
ipc/kdbus/endpoint.c
ipc/kdbus/fs.c
ipc/kdbus/message.c
ipc/kdbus/metadata.c
ipc/kdbus/names.c
ipc/kdbus/policy.c
ipc/kdbus/pool.c
ipc/kdbus/util.h
samples/Makefile