From: Tim Deegan Subject: [PATCH] xen/x86/time: fix check for negative time in __update_vcpu_system_time() Date: Thu, 15 Aug 2013 11:42:06 +0100 Message-ID: <1376563326-31121-1-git-send-email-tim@xen.org> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: xen-devel@lists.xen.org Cc: keir@xen.org, jbeulich@suse.com List-Id: xen-devel@lists.xenproject.org Clang points out that u64 stime variable is always >= 0. Cc: Jan Beulich Signed-off-by: Tim Deegan --- xen/arch/x86/time.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xen/arch/x86/time.c b/xen/arch/x86/time.c index f047cb3..4ba2480 100644 --- a/xen/arch/x86/time.c +++ b/xen/arch/x86/time.c @@ -817,7 +817,7 @@ static void __update_vcpu_system_time(struct vcpu *v, int force) if ( d->arch.vtsc ) { - u64 stime = t->stime_local_stamp; + s_time_t stime = t->stime_local_stamp; if ( is_hvm_domain(d) ) { struct pl_time *pl = &v->domain->arch.hvm_domain.pl_time; -- 1.7.10.4