WARNING - OLD ARCHIVES

This is an archived copy of the Xen.org mailing list, which we have preserved to ensure that existing links to archives are not broken. The live archive, which contains the latest emails, can be found at http://lists.xen.org/
   
 
 
Xen 
 
Home Products Support Community News
 
   
 

xen-devel

[Xen-devel] a compile error?

To: "xen-devel@xxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxx>
Subject: [Xen-devel] a compile error?
From: "Li, Xin" <xin.li@xxxxxxxxx>
Date: Thu, 10 Jun 2010 16:27:23 +0800
Accept-language: zh-CN, en-US
Acceptlanguage: zh-CN, en-US
Delivery-date: Thu, 10 Jun 2010 01:29:14 -0700
Envelope-to: www-data@xxxxxxxxxxxxxxxxxxx
List-help: <mailto:xen-devel-request@lists.xensource.com?subject=help>
List-id: Xen developer discussion <xen-devel.lists.xensource.com>
List-post: <mailto:xen-devel@lists.xensource.com>
List-subscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=subscribe>
List-unsubscribe: <http://lists.xensource.com/mailman/listinfo/xen-devel>, <mailto:xen-devel-request@lists.xensource.com?subject=unsubscribe>
Sender: xen-devel-bounces@xxxxxxxxxxxxxxxxxxx
Thread-index: AcsIdsCHml6Nsq7HToOrE4Gt8LHI+Q==
Thread-topic: a compile error?
I have been seeing a compile error with gcc (GCC) 3.4.2 20041017 (Red Hat 
3.4.2-6.fc3) for several days:

rtc.c: In function `rtc_update_second':
rtc.c:294: warning: long long unsigned int format, long unsigned int arg (arg 5)
make[5]: *** [rtc.o] Error 1
make[5]: Leaving directory `/home/xin/xen-unstable.hg/xen/arch/x86/hvm'
make[4]: *** [hvm/built_in.o] Error 2
make[4]: Leaving directory `/home/xin/xen-unstable.hg/xen/arch/x86'
make[3]: *** [/home/xin/xen-unstable.hg/xen/arch/x86/built_in.o] Error 2
make[3]: Leaving directory `/home/xin/xen-unstable.hg/xen/arch/x86'
make[2]: *** [/home/xin/xen-unstable.hg/xen/xen] Error 2
make[2]: Leaving directory `/home/xin/xen-unstable.hg/xen'
make[1]: *** [install] Error 2
make[1]: Leaving directory `/home/xin/xen-unstable.hg/xen'
make: *** [install-xen] Error 2

the culprit snip is:

    if ( unlikely(now - s->next_second_time > SECONDS(86400)) )
    {
        dprintk(XENLOG_WARNING, "HVM RTC: dom %u skipping %llu seconds\n",
                                                                                
                        ^^^^^^^^^
                vrtc_domain(s)->domain_id,
                (now - s->next_second_time) / SYSTEM_TIME_HZ);
        s->next_second_time = now;
    }


Should we use PRIu64 here?  I don't know if people using newer gcc don't see 
this as nobody complained.

Thanks!
-Xin

_______________________________________________
Xen-devel mailing list
Xen-devel@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-devel

<Prev in Thread] Current Thread [Next in Thread>