mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-09-21 08:50:27 +00:00
HV:debug:fix "signed/unsigned conversion without cast"
Misra C required signed/unsigned conversion with cast. V1->V2: a.split patch to patch series V2->V3: a.Change the API tgt_uart/ static int uart16550_get_rx_err(uint32_t rx_data) to return uint32_t b.modified the format of if from "if (length > 32*(length/32))" to "if (length % 32U > 0)" V3->V4: a.change the uint64_t type numeric constant's suffix from U to UL Signed-off-by: Huihuang Shi <huihuang.shi@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
@@ -10,8 +10,8 @@
|
||||
struct intr_excp_ctx;
|
||||
|
||||
#ifdef HV_DEBUG
|
||||
#define CALL_TRACE_HIERARCHY_MAX 20
|
||||
#define DUMP_STACK_SIZE 0x200
|
||||
#define CALL_TRACE_HIERARCHY_MAX 20U
|
||||
#define DUMP_STACK_SIZE 0x200U
|
||||
|
||||
void dump_intr_excp_frame(struct intr_excp_ctx *ctx);
|
||||
void dump_exception(struct intr_excp_ctx *ctx, uint32_t cpu_id);
|
||||
|
@@ -12,7 +12,7 @@
|
||||
#ifndef SHARED_BUFFER_H
|
||||
#define SHARED_BUFFER_H
|
||||
|
||||
#define SBUF_MAGIC 0x5aa57aa71aa13aa3
|
||||
#define SBUF_MAGIC 0x5aa57aa71aa13aa3UL
|
||||
#define SBUF_MAX_SIZE (1 << 22)
|
||||
#define SBUF_HEAD_SIZE 64
|
||||
|
||||
|
Reference in New Issue
Block a user