Skip to content

Commit 0252ae9

Browse files
shiqingglijinxia
authored andcommitted
hv: treewide: fix 'No definition in system for prototyped procedure'
- Remove those APIs without definition - Minor changes to make sure the line length is less than 80 Signed-off-by: Shiqing Gao <shiqing.gao@intel.com> Reviewed-by: Junjie Mao <junjie.mao@intel.com> Acked-by: Eddie Dong <eddie.dong@intel.com>
1 parent d28fff2 commit 0252ae9

File tree

7 files changed

+6
-16
lines changed

7 files changed

+6
-16
lines changed

hypervisor/debug/shell_internal.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -141,15 +141,12 @@ struct shell_cmd {
141141
int shell_show_req_info(struct shell *p_shell, int argc, char **argv);
142142
int shell_construct(struct shell **p_shell);
143143
int shell_cmd_help(struct shell *p_shell, int argc, char **argv);
144-
int shell_reset_cmd(struct shell *p_shell, int argc, char **argv);
145144
int shell_list_vm(struct shell *p_shell, int argc, char **argv);
146145
int shell_list_vcpu(struct shell *p_shell, int argc, char **argv);
147146
int shell_pause_vcpu(struct shell *p_shell, int argc, char **argv);
148147
int shell_resume_vcpu(struct shell *p_shell, int argc, char **argv);
149148
int shell_vcpu_dumpreg(struct shell *p_shell, int argc, char **argv);
150149
int shell_vcpu_dumpmem(struct shell *p_shell, int argc, char **argv);
151-
int shell_boot_vm(struct shell *p_shell, int argc, char **argv);
152-
int shell_trace_cmd(struct shell *p_shell, int argc, char **argv);
153150
int shell_to_sos_console(struct shell *p_shell, int argc, char **argv);
154151
int shell_show_cpu_int(struct shell *p_shell, int argc, char **argv);
155152
int shell_show_ptdev_info(struct shell *p_shell, int argc, char **argv);

hypervisor/include/arch/x86/guest/guest_pm.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,6 @@
1010
void vm_setup_cpu_state(struct vm *vm);
1111
int vm_load_pm_s_state(struct vm *vm);
1212
int validate_pstate(struct vm *vm, uint64_t perf_ctl);
13-
struct cpu_cx_data* get_target_cx(struct vm *vm, uint8_t cn);
1413
void register_pm1ab_handler(struct vm *vm);
1514

1615
#endif /* PM_H */

hypervisor/include/arch/x86/guest/vlapic.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,6 @@ int vlapic_pending_intr(struct vlapic *vlapic, uint32_t *vecptr);
5656
*/
5757
void vlapic_intr_accepted(struct vlapic *vlapic, uint32_t vector);
5858

59-
struct vlapic *vm_lapic_from_vcpuid(struct vm *vm, uint16_t vcpu_id);
6059
struct vlapic *vm_lapic_from_pcpuid(struct vm *vm, uint16_t pcpu_id);
6160
bool is_vlapic_msr(uint32_t num);
6261
int vlapic_rdmsr(struct vcpu *vcpu, uint32_t msr, uint64_t *rval);
@@ -126,7 +125,6 @@ void vlapic_restore(struct vlapic *vlapic, struct lapic_regs *regs);
126125
bool vlapic_enabled(struct vlapic *vlapic);
127126
uint64_t apicv_get_apic_access_addr(struct vm *vm);
128127
uint64_t apicv_get_apic_page_addr(struct vlapic *vlapic);
129-
bool vlapic_apicv_enabled(struct vcpu *vcpu);
130128
void apicv_inject_pir(struct vlapic *vlapic);
131129
int apic_access_vmexit_handler(struct vcpu *vcpu);
132130
int apic_write_vmexit_handler(struct vcpu *vcpu);

hypervisor/include/arch/x86/guest/vpic.h

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,10 @@ int vpic_pulse_irq(struct vm *vm, uint32_t irq);
9999

100100
void vpic_pending_intr(struct vm *vm, uint32_t *vecptr);
101101
void vpic_intr_accepted(struct vm *vm, uint32_t vector);
102-
int vpic_set_irq_trigger(struct vm *vm, uint32_t irq, enum vpic_trigger trigger);
103-
int vpic_get_irq_trigger(struct vm *vm, uint32_t irq, enum vpic_trigger *trigger);
104-
105-
struct vm_io_handler *vpic_create_io_handler(int flags, uint32_t port,
106-
uint32_t len);
102+
int vpic_set_irq_trigger(struct vm *vm, uint32_t irq,
103+
enum vpic_trigger trigger);
104+
int vpic_get_irq_trigger(struct vm *vm, uint32_t irq,
105+
enum vpic_trigger *trigger);
107106

108107
bool vpic_is_pin_mask(struct vpic *vpic, uint8_t virt_pin);
109108

hypervisor/include/arch/x86/vmx.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -425,7 +425,6 @@ void exec_vmwrite64(uint32_t field_full, uint64_t value);
425425
int init_vmcs(struct vcpu *vcpu);
426426

427427
int vmx_off(uint16_t pcpu_id);
428-
int vmx_restart(uint16_t pcpu_id);
429428

430429
int exec_vmclear(void *addr);
431430
int exec_vmptrld(void *addr);
@@ -444,7 +443,8 @@ static inline enum vm_cpu_mode get_vcpu_mode(struct vcpu *vcpu)
444443

445444
static inline bool cpu_has_vmx_unrestricted_guest_cap(void)
446445
{
447-
return ((msr_read(MSR_IA32_VMX_MISC) & VMX_SUPPORT_UNRESTRICTED_GUEST) != 0UL);
446+
return ((msr_read(MSR_IA32_VMX_MISC) & VMX_SUPPORT_UNRESTRICTED_GUEST)
447+
!= 0UL);
448448
}
449449

450450
typedef struct _descriptor_table_{

hypervisor/include/common/hypercall.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,6 @@ struct vhm_request;
1717

1818
bool is_hypercall_from_ring0(void);
1919

20-
int acrn_vpic_inject_irq(struct vm *vm, int irq, enum irq_mode mode);
21-
2220
/**
2321
* @brief Hypercall
2422
*

hypervisor/include/lib/rtl.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@ struct udiv_result {
2828
/* Function prototypes */
2929
void udelay(uint32_t us);
3030
void *memchr(const void *void_s, int c, size_t n);
31-
void *memmove(void *s1, const void *s2, size_t n);
3231
int strcmp(const char *s1, const char *s2);
3332
int strncmp(const char *s1, const char *s2, size_t n);
3433
char *strcpy_s(char *d, size_t dmax, const char *s);

0 commit comments

Comments
 (0)