Browse Source

msm: eva: temp workaround to pass pid compilation

commented pid to pass compilation due to missing symbol in whitelist

Change-Id: I9607d649d7f6f1ae1eab01ec80cb9b020b4b2697
Signed-off-by: Yu SI <[email protected]>
Yu SI 4 years ago
parent
commit
38aededca5
1 changed files with 8 additions and 4 deletions
  1. 8 4
      msm/eva/msm_cvp_buf.c

+ 8 - 4
msm/eva/msm_cvp_buf.c

@@ -303,8 +303,8 @@ int msm_cvp_map_buf_dsp_new(struct msm_cvp_inst *inst,
 	struct cvp_hal_session *session;
 	struct dma_buf *dma_buf = NULL;
 
-	struct pid *pid_s;
-	struct task_struct *task;
+	struct pid *pid_s = NULL;
+	struct task_struct *task = NULL;
 	struct file *file;
 
 	if (!inst || !inst->core || !buf) {
@@ -345,14 +345,18 @@ int msm_cvp_map_buf_dsp_new(struct msm_cvp_inst *inst,
 		return -EINVAL;
 	}
 
-	pid_s = find_get_pid(pid);
+	// Temp workaround :  commented for passing compilation due to missing dependency in AU whitelist
+//	pid_s = find_get_pid(pid);
+
+
 	if (pid_s == NULL) {
 		dprintk(CVP_WARN, "%s incorrect pid\n", __func__);
 		return -EINVAL;
 	}
 	dprintk(CVP_WARN, "%s get pid_s 0x%x from pidA 0x%x\n", __func__, pid_s, pid);
 	/* task = get_pid_task(pid, PIDTYPE_PID); */
-	task = get_pid_task(pid_s, PIDTYPE_TGID);
+	// Temp workaround :  commented for passing compilation due to missing dependency in AU whitelist
+//	task = get_pid_task(pid_s, PIDTYPE_TGID);
 
 	if (!task)
 		dprintk(CVP_WARN, "%s task doesn't exist\n", __func__);