hv:fixed MISRA-C return value violations

-- change send_start_ipi/do_copy_earlylog to void type
-- drop the return value for vcpu_queue_execption
   when inject GP/PF/UD/AC/SS

Signed-off-by: Mingqiang Chi <mingqiang.chi@intel.com>
This commit is contained in:
Mingqiang Chi
2018-08-17 11:28:32 +08:00
committed by lijinxia
parent 431ef57076
commit 752e311e11
6 changed files with 14 additions and 21 deletions

View File

@@ -42,7 +42,7 @@ static inline void free_earlylog_sbuf(uint16_t pcpu_id)
per_cpu(earlylog_sbuf, pcpu_id) = NULL;
}
static int do_copy_earlylog(struct shared_buf *dst_sbuf,
static void do_copy_earlylog(struct shared_buf *dst_sbuf,
struct shared_buf *src_sbuf)
{
uint32_t buf_size, valid_size;
@@ -54,7 +54,7 @@ static int do_copy_earlylog(struct shared_buf *dst_sbuf,
spinlock_irqsave_obtain(&(logmsg.lock), &rflags);
printf("Error to copy early hvlog: size mismatch\n");
spinlock_irqrestore_release(&(logmsg.lock), rflags);
return -EINVAL;
return;
}
cur_tail = src_sbuf->tail;
@@ -67,8 +67,6 @@ static int do_copy_earlylog(struct shared_buf *dst_sbuf,
/* there is chance to lose new log from certain pcpu */
dst_sbuf->tail = cur_tail;
}
return 0;
}
void init_logmsg(__unused uint32_t mem_size, uint32_t flags)