Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

KVM: arm64: selftests: Data type cleanup for arch_timer test

Change signed type to unsigned in test_args struct which
only make sense for unsigned value.

Suggested-by: Andrew Jones <ajones@ventanamicro.com>
Signed-off-by: Haibo Xu <haibo1.xu@intel.com>
Reviewed-by: Andrew Jones <ajones@ventanamicro.com>
Reviewed-by: Marc Zyngier <maz@kernel.org>
Signed-off-by: Anup Patel <anup@brainfault.org>

authored by

Haibo Xu and committed by
Anup Patel
f0617e4a 2c5af1c8

+6 -6
+6 -6
tools/testing/selftests/kvm/aarch64/arch_timer.c
··· 42 42 #define TIMER_TEST_MIGRATION_FREQ_MS 2 43 43 44 44 struct test_args { 45 - int nr_vcpus; 46 - int nr_iter; 47 - int timer_period_ms; 48 - int migration_freq_ms; 45 + uint32_t nr_vcpus; 46 + uint32_t nr_iter; 47 + uint32_t timer_period_ms; 48 + uint32_t migration_freq_ms; 49 49 struct kvm_arm_counter_offset offset; 50 50 }; 51 51 ··· 57 57 .offset = { .reserved = 1 }, 58 58 }; 59 59 60 - #define msecs_to_usecs(msec) ((msec) * 1000LL) 60 + #define msecs_to_usecs(msec) ((msec) * 1000ULL) 61 61 62 62 #define GICD_BASE_GPA 0x8000000ULL 63 63 #define GICR_BASE_GPA 0x80A0000ULL ··· 72 72 73 73 /* Shared variables between host and guest */ 74 74 struct test_vcpu_shared_data { 75 - int nr_iter; 75 + uint32_t nr_iter; 76 76 enum guest_stage guest_stage; 77 77 uint64_t xcnt; 78 78 };