diff --git a/drivers/video/rockchip/rga3/include/rga_debugger.h b/drivers/video/rockchip/rga3/include/rga_debugger.h index ff740559e16e..05d5f696652b 100644 --- a/drivers/video/rockchip/rga3/include/rga_debugger.h +++ b/drivers/video/rockchip/rga3/include/rga_debugger.h @@ -134,7 +134,13 @@ static inline int rga_procfs_init(void) void rga_cmd_print_debug_info(struct rga_req *req); void rga_request_task_debug_info(struct seq_file *m, struct rga_req *req); void rga_dump_external_buffer(struct rga_external_buffer *buffer); +#ifdef CONFIG_NO_GKI void rga_dump_job_image(struct rga_job *dump_job); +#else +static inline void rga_dump_job_image(struct rga_job *dump_job) +{ +} +#endif /* #ifdef CONFIG_NO_GKI */ #endif /* #ifndef _RGA_DEBUGGER_H_ */ diff --git a/drivers/video/rockchip/rga3/rga_debugger.c b/drivers/video/rockchip/rga3/rga_debugger.c index c61b170addb1..068e0ccf5ab1 100644 --- a/drivers/video/rockchip/rga3/rga_debugger.c +++ b/drivers/video/rockchip/rga3/rga_debugger.c @@ -36,7 +36,9 @@ int RGA_DEBUG_NONUSE; int RGA_DEBUG_DEBUG_MODE; int RGA_DEBUG_DUMP_IMAGE; +#ifdef CONFIG_NO_GKI static char g_dump_path[100] = "/data"; +#endif static int rga_debug_show(struct seq_file *m, void *data) { @@ -361,6 +363,7 @@ static int rga_request_manager_show(struct seq_file *m, void *data) return 0; } +#ifdef CONFIG_NO_GKI static int rga_dump_path_show(struct seq_file *m, void *data) { seq_printf(m, "dump path: %s\n", g_dump_path); @@ -421,6 +424,7 @@ static ssize_t rga_dump_image_write(struct file *file, const char __user *ubuf, return len; } +#endif /* #ifdef CONFIG_NO_GKI */ static int rga_hardware_show(struct seq_file *m, void *data) { @@ -465,8 +469,10 @@ static struct rga_debugger_list rga_debugger_root_list[] = { {"scheduler_status", rga_scheduler_show, NULL, NULL}, {"mm_session", rga_mm_session_show, NULL, NULL}, {"request_manager", rga_request_manager_show, NULL, NULL}, +#ifdef CONFIG_NO_GKI {"dump_path", rga_dump_path_show, rga_dump_path_write, NULL}, {"dump_image", rga_dump_image_show, rga_dump_image_write, NULL}, +#endif {"hardware", rga_hardware_show, NULL, NULL}, }; @@ -830,6 +836,7 @@ void rga_dump_external_buffer(struct rga_external_buffer *buffer) buffer->memory_parm.size); } +#ifdef CONFIG_NO_GKI static int rga_dump_image_to_file(struct rga_internal_buffer *dump_buffer, const char *channel_name, int plane_id, @@ -953,3 +960,4 @@ void rga_dump_job_image(struct rga_job *dump_job) if (RGA_DEBUG_DUMP_IMAGE > 0) RGA_DEBUG_DUMP_IMAGE--; } +#endif /* #ifdef CONFIG_NO_GKI */