From: Luca Subject: Re: serious-looking warning building kvm-36 Date: Thu, 23 Aug 2007 21:43:03 +0200 Message-ID: <68676e00708231243s3e0e46ebs399da233cd66b9ca@mail.gmail.com> References: <200708231904.06582.chris2553@googlemail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Cc: kvm-devel-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org To: "Chris Clayton" Return-path: In-Reply-To: <200708231904.06582.chris2553-gM/Ye1E23mwN+BqQ9rBEUg@public.gmane.org> Content-Disposition: inline List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org Errors-To: kvm-devel-bounces-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org List-Id: kvm.vger.kernel.org On 8/23/07, Chris Clayton wrote: > Hi, > > I've just built kvm-36 and noticed what looks as if it may be a non-trivial > warning: > > make[1]: Leaving directory `/home/chris/rpm/BUILD/kvm-36/kernel' > make -C user > make[1]: Entering directory `/home/chris/rpm/BUILD/kvm-36/user' > cc -I /home/chris/rpm/BUILD/kvm-36/kernel/include -MMD -MF ./.kvmctl.d -g -fomit-frame-pointer -Wall -m32 -fno-stack-protector -c -o > kvmctl.o kvmctl.c > kvmctl.c: In function 'kvm_create': > kvmctl.c:256: warning: integer constant is too large for 'long' type > > Please cc me to any reply - I'm not subscribed. It's harmless. That branch is only taken when using more than 4GB of memory, which in turn is only possible on a 64bit host. In this case the 'unsigned long' would be a 64bit integer (and the shift would be acceptable). There are a couple more of warning related to this issue, a possible solution to silence the warning is to use always 64bit integers instead of the longs. Luca ------------------------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Still grepping through log files to find problems? Stop. Now Search log events and configuration files using AJAX and a browser. Download your FREE copy of Splunk now >> http://get.splunk.com/