hv: include: fix 'Unused procedure parameter'

MISRA-C requires that there should be no unused parameters in
functions.

This patch removes the unused parameters that is not being used
unconditionally.

Tracked-On: #861
Signed-off-by: Shiqing Gao <shiqing.gao@intel.com>
Acked-by: Eddie Dong <eddie.dong@intel.com>
This commit is contained in:
Shiqing Gao
2018-09-26 14:54:31 +08:00
committed by lijinxia
parent 68ce114b43
commit 026ae83bd5
8 changed files with 14 additions and 18 deletions

View File

@@ -61,7 +61,7 @@ uint32_t vioapic_pincount(struct vm *vm);
void vioapic_process_eoi(struct vm *vm, uint32_t vector);
void vioapic_get_rte(struct vm *vm, uint32_t pin, union ioapic_rte *rte);
int vioapic_mmio_access_handler(struct vcpu *vcpu,
struct io_request *io_req, __unused void *handler_private_data);
struct io_request *io_req);
#ifdef HV_DEBUG
void get_vioapic_info(char *str_arg, int str_max, uint16_t vmid);

View File

@@ -94,8 +94,8 @@ struct vm_io_handler {
/* Typedef for MMIO handler and range check routine */
struct mmio_request;
typedef int (*hv_mem_io_handler_t)(struct vcpu *vcpu, struct io_request *io_req,
void *handler_private_data);
typedef int (*hv_mem_io_handler_t)(struct vcpu *vcpu,
struct io_request *io_req);
/* Structure for MMIO handler node */
struct mem_io_node {