Browse Source

adsprpc: Modify code to pass compilation

Add missing module import to macro for DMA_BUF and add fallthrough
statements

Change-Id: Ied625ee1000afca9f269989ff2635ea04a8fe196
Signed-off-by: Anirudh Raghavendra <[email protected]>
Anirudh Raghavendra 2 years ago
parent
commit
7e0eff3f2b
1 changed files with 5 additions and 0 deletions
  1. 5 0
      dsp/adsprpc.c

+ 5 - 0
dsp/adsprpc.c

@@ -251,6 +251,8 @@ enum fastrpc_proc_attr {
 #define DSPSIGNAL_VERBOSE(x, ...)
 /*#define DSPSIGNAL_VERBOSE ADSPRPC_INFO*/
 
+MODULE_IMPORT_NS(DMA_BUF);
+
 static struct dentry *debugfs_root;
 static struct dentry *debugfs_global_file;
 
@@ -1913,6 +1915,7 @@ static void context_notify_user(struct smq_invoke_ctx *ctx,
 			ctx->msg.invoke.header.ctx, ctx->handle, ctx->sc);
 	switch (rsp_flags) {
 	case NORMAL_RESPONSE:
+		fallthrough;
 	case COMPLETE_SIGNAL:
 		/* normal and complete response with return value */
 		ctx->is_work_done = true;
@@ -1927,6 +1930,7 @@ static void context_notify_user(struct smq_invoke_ctx *ctx,
 		ctx->early_wake_time = early_wake_time;
 		if (ctx->asyncjob.isasyncjob)
 			break;
+		fallthrough;
 	case EARLY_RESPONSE:
 		/* rpc framework early response with return value */
 		if (ctx->asyncjob.isasyncjob)
@@ -6562,6 +6566,7 @@ static long fastrpc_device_ioctl(struct file *file, unsigned int ioctl_num,
 	case FASTRPC_IOCTL_INVOKE_CRC:
 		if (!size)
 			size = sizeof(struct fastrpc_ioctl_invoke_crc);
+		fallthrough;
 	case FASTRPC_IOCTL_INVOKE_PERF:
 		if (!size)
 			size = sizeof(struct fastrpc_ioctl_invoke_perf);