mirror of
https://github.com/projectacrn/acrn-hypervisor.git
synced 2025-06-25 06:51:49 +00:00
hv: treewide: fix 'Procedure parameter has a type but no identifier'
Add the parameter identifier for typedef function pointer. Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Acked-by: Anthony Xu <anthony.xu@intel.com>
This commit is contained in:
parent
c27e25052b
commit
fd0c9187ef
@ -30,7 +30,7 @@ struct shell {
|
|||||||
};
|
};
|
||||||
|
|
||||||
/* Shell Command Function */
|
/* Shell Command Function */
|
||||||
typedef int (*shell_cmd_fn_t)(int, char **);
|
typedef int (*shell_cmd_fn_t)(int argc, char **argv);
|
||||||
|
|
||||||
/* Shell Command */
|
/* Shell Command */
|
||||||
struct shell_cmd {
|
struct shell_cmd {
|
||||||
|
@ -107,7 +107,7 @@ int vmx_vmrun(struct run_context *context, int ops, int ibrs);
|
|||||||
int load_guest(struct vm *vm, struct vcpu *vcpu);
|
int load_guest(struct vm *vm, struct vcpu *vcpu);
|
||||||
int general_sw_loader(struct vm *vm, struct vcpu *vcpu);
|
int general_sw_loader(struct vm *vm, struct vcpu *vcpu);
|
||||||
|
|
||||||
typedef int (*vm_sw_loader_t)(struct vm *, struct vcpu *);
|
typedef int (*vm_sw_loader_t)(struct vm *vm, struct vcpu *vcpu);
|
||||||
extern vm_sw_loader_t vm_sw_loader;
|
extern vm_sw_loader_t vm_sw_loader;
|
||||||
|
|
||||||
int copy_from_gpa(struct vm *vm, void *h_ptr, uint64_t gpa, uint32_t size);
|
int copy_from_gpa(struct vm *vm, void *h_ptr, uint64_t gpa, uint32_t size);
|
||||||
|
@ -35,12 +35,12 @@ struct vm;
|
|||||||
struct vcpu;
|
struct vcpu;
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
uint32_t (*io_read_fn_t)(struct vm_io_handler *, struct vm *,
|
uint32_t (*io_read_fn_t)(struct vm_io_handler *handler, struct vm *vm,
|
||||||
uint16_t, size_t);
|
uint16_t port, size_t size);
|
||||||
|
|
||||||
typedef
|
typedef
|
||||||
void (*io_write_fn_t)(struct vm_io_handler *, struct vm *,
|
void (*io_write_fn_t)(struct vm_io_handler *handler, struct vm *vm,
|
||||||
uint16_t, size_t, uint32_t);
|
uint16_t port, size_t size, uint32_t val);
|
||||||
|
|
||||||
/* Describes a single IO handler description entry. */
|
/* Describes a single IO handler description entry. */
|
||||||
struct vm_io_handler_desc {
|
struct vm_io_handler_desc {
|
||||||
@ -96,7 +96,8 @@ struct vm_io_handler {
|
|||||||
|
|
||||||
/* Typedef for MMIO handler and range check routine */
|
/* Typedef for MMIO handler and range check routine */
|
||||||
struct mmio_request;
|
struct mmio_request;
|
||||||
typedef int (*hv_mem_io_handler_t)(struct vcpu *, struct io_request *, void *);
|
typedef int (*hv_mem_io_handler_t)(struct vcpu *vcpu, struct io_request *io_req,
|
||||||
|
void *handler_private_data);
|
||||||
|
|
||||||
/* Structure for MMIO handler node */
|
/* Structure for MMIO handler node */
|
||||||
struct mem_io_node {
|
struct mem_io_node {
|
||||||
|
@ -7,7 +7,7 @@
|
|||||||
#ifndef TIMER_H
|
#ifndef TIMER_H
|
||||||
#define TIMER_H
|
#define TIMER_H
|
||||||
|
|
||||||
typedef int (*timer_handle_t)(void *);
|
typedef int (*timer_handle_t)(void *data);
|
||||||
|
|
||||||
enum tick_mode {
|
enum tick_mode {
|
||||||
TICK_MODE_ONESHOT = 0,
|
TICK_MODE_ONESHOT = 0,
|
||||||
|
@ -24,7 +24,7 @@ enum irq_desc_state {
|
|||||||
IRQ_DESC_IN_PROCESS,
|
IRQ_DESC_IN_PROCESS,
|
||||||
};
|
};
|
||||||
|
|
||||||
typedef int (*dev_handler_t)(int irq, void*);
|
typedef int (*dev_handler_t)(int irq, void *dev_data);
|
||||||
struct irq_request_info {
|
struct irq_request_info {
|
||||||
/* vector set to 0xE0 ~ 0xFF for pri_register_handler
|
/* vector set to 0xE0 ~ 0xFF for pri_register_handler
|
||||||
* and set to VECTOR_INVALID for normal_register_handler
|
* and set to VECTOR_INVALID for normal_register_handler
|
||||||
@ -84,7 +84,7 @@ normal_register_handler(uint32_t irq,
|
|||||||
const char *name);
|
const char *name);
|
||||||
void unregister_handler_common(struct dev_handler_node *node);
|
void unregister_handler_common(struct dev_handler_node *node);
|
||||||
|
|
||||||
typedef int (*irq_handler_t)(struct irq_desc*, void*);
|
typedef int (*irq_handler_t)(struct irq_desc *desc, void *handler_data);
|
||||||
void update_irq_handler(uint32_t irq, irq_handler_t func);
|
void update_irq_handler(uint32_t irq, irq_handler_t func);
|
||||||
|
|
||||||
#endif /* COMMON_IRQ_H */
|
#endif /* COMMON_IRQ_H */
|
||||||
|
Loading…
Reference in New Issue
Block a user