xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Christoph Egger <Christoph.Egger@amd.com>
To: "xen-devel@lists.xensource.com" <xen-devel@lists.xensource.com>,
	Jan Beulich <jbeulich@novell.com>
Subject: xen fix radix tree build
Date: Wed, 11 May 2011 11:45:57 +0200	[thread overview]
Message-ID: <4DCA5AD5.1080902@amd.com> (raw)


Hi,

the radix tree headers don't compile:

xen/include/xen/radix-tree.h: In function 'radix_tree_int_to_ptr':
xen/include/xen/radix-tree.h:184: warning: comparison is always true due 
to limited range of data type
xen/include/xen/radix-tree.h:184: warning: comparison is always true due 
to limited range of data type

An 'int' is too small to hold a pointer.
C99 says 'uintptr_t' or 'intptr_t' is correct.

Christoph


-- 
---to satisfy European Law for business letters:
Advanced Micro Devices GmbH
Einsteinring 24, 85689 Dornach b. Muenchen
Geschaeftsfuehrer: Alberto Bozzo, Andrew Bowd
Sitz: Dornach, Gemeinde Aschheim, Landkreis Muenchen
Registergericht Muenchen, HRB Nr. 43632

             reply	other threads:[~2011-05-11  9:45 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-05-11  9:45 Christoph Egger [this message]
2011-05-11 11:56 ` xen fix radix tree build Christoph Egger

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4DCA5AD5.1080902@amd.com \
    --to=christoph.egger@amd.com \
    --cc=jbeulich@novell.com \
    --cc=xen-devel@lists.xensource.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).