HV: fix sbuf "Casting operation to a pointer"

ACRN Coding guidelines requires two different types pointer can't
convert to each other, except void *.

Tracked-On: #861
Signed-off-by: Huihuang Shi <huihuang.shi@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Huihuang Shi
2019-07-09 11:20:04 +08:00
committed by wenlingz
parent 79d033027b
commit 2ec1694901
5 changed files with 10 additions and 15 deletions

View File

@@ -24,7 +24,7 @@ struct per_cpu_region {
uint8_t vmxon_region[PAGE_SIZE];
void *vmcs_run;
#ifdef HV_DEBUG
uint64_t *sbuf[ACRN_SBUF_ID_MAX];
struct shared_buf *sbuf[ACRN_SBUF_ID_MAX];
char logbuf[LOG_MESSAGE_MAX_SIZE];
uint32_t npk_log_ref;
#endif