Skip to content

Commit

Permalink
Merge pull request #94 from alexngmsft/master
Browse files Browse the repository at this point in the history
Fix warnings on 32-bit
  • Loading branch information
nickme committed Mar 21, 2016
2 parents 86469ee + d0a313c commit 193c551
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion hv-rhel6.x/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,11 @@ int hv_init(void)
{
int max_leaf;
union hv_x64_msr_hypercall_contents hypercall_msr;
union hv_x64_msr_hypercall_contents tsc_msr;
void *virtaddr = NULL;
#ifdef CONFIG_X86_64
union hv_x64_msr_hypercall_contents tsc_msr;
void *va_tsc = NULL;
#endif

memset(hv_context.synic_event_page, 0, sizeof(void *) * NR_CPUS);
memset(hv_context.synic_message_page, 0,
Expand Down
4 changes: 3 additions & 1 deletion hv-rhel7.x/hv/hv.c
Original file line number Diff line number Diff line change
Expand Up @@ -206,9 +206,11 @@ int hv_init(void)
{
int max_leaf;
union hv_x64_msr_hypercall_contents hypercall_msr;
union hv_x64_msr_hypercall_contents tsc_msr;
void *virtaddr = NULL;
#ifdef CONFIG_X86_64
union hv_x64_msr_hypercall_contents tsc_msr;
void *va_tsc = NULL;
#endif

memset(hv_context.synic_event_page, 0, sizeof(void *) * NR_CPUS);
memset(hv_context.synic_message_page, 0,
Expand Down

0 comments on commit 193c551

Please sign in to comment.