msm: eva: Remove deprecated header
Allows compiling independent of synx, fastrpc and mmrm readiness. Avoid including KP 2.0 deprecated headers. Change-Id: Ibf026f409b7f6284705c95b01a5251ac6a498b32 Signed-off-by: George Shen <sqiao@codeaurora.org>
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
#include <linux/fs.h>
|
||||
#include <linux/dma-buf.h>
|
||||
#include <linux/sched/task.h>
|
||||
#include <linux/version.h>
|
||||
#include "msm_cvp_common.h"
|
||||
#include "cvp_hfi_api.h"
|
||||
#include "msm_cvp_debug.h"
|
||||
@@ -190,7 +191,11 @@ static struct file *msm_cvp_fget(unsigned int fd, struct task_struct *task,
|
||||
|
||||
rcu_read_lock();
|
||||
loop:
|
||||
#if (LINUX_VERSION_CODE < KERNEL_VERSION(5, 13, 0))
|
||||
file = fcheck_files(files, fd);
|
||||
#else
|
||||
file = files_lookup_fd_rcu(files, fd);
|
||||
#endif
|
||||
if (file) {
|
||||
/* File object ref couldn't be taken.
|
||||
* dup2() atomicity guarantee is the reason
|
||||
|
Reference in New Issue
Block a user