All of lore.kernel.org
 help / color / mirror / Atom feed
From: Samuel Thibault <samuel.thibault@eu.citrix.com>
To: "Li, Haicheng" <haicheng.li@intel.com>
Cc: xen-devel@lists.xensource.com
Subject: Re: c/s 17565 build error on PAE system.
Date: Sun, 4 May 2008 11:30:01 +0100	[thread overview]
Message-ID: <20080504103001.GB4729@implementation> (raw)
In-Reply-To: <FC1D1B23302A22499C60C967336B2AE002BACF21@pdsmsx411.ccr.corp.intel.com>

Hello,

Li, Haicheng, le Sun 04 May 2008 10:56:13 +0800, a écrit :
> multi.c: In function 'shadow_vram_get_l1e':
> multi.c:1275: warning: cast from pointer to integer of different size

Ergl, I thought I had checked the PAE compilation too, but apparently
not. Here is a patch.


Fix cast from pointer into physical offset.

Signed-off-by: Samuel Thibault <samuel.thibault@eu.citrix.com>

diff -r b936b8ee02bb xen/arch/x86/mm/shadow/multi.c
--- a/xen/arch/x86/mm/shadow/multi.c	Fri May 02 17:06:53 2008 +0100
+++ b/xen/arch/x86/mm/shadow/multi.c	Sun May 04 11:29:28 2008 +0100
@@ -1272,7 +1272,7 @@ static inline void shadow_vram_get_l1e(s
         if ( count_info == 1 )
             /* Initial guest reference, record it */
             d->dirty_vram->sl1ma[i] = pfn_to_paddr(mfn_x(sl1mfn))
-                | ((paddr_t) sl1e & ~PAGE_MASK);
+                | ((unsigned long) sl1e & ~PAGE_MASK);
     }
 }
 
@@ -1295,7 +1295,7 @@ static inline void shadow_vram_put_l1e(s
         u32 count_info = page->u.inuse.type_info & PGT_count_mask;
         int dirty = 0;
         paddr_t sl1ma =  pfn_to_paddr(mfn_x(sl1mfn))
-            | ((paddr_t) sl1e & ~PAGE_MASK);
+            | ((unsigned long) sl1e & ~PAGE_MASK);
 
         if ( count_info == 1 ) {
             /* Last reference */

      reply	other threads:[~2008-05-04 10:30 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2008-05-04  2:56 c/s 17565 build error on PAE system Li, Haicheng
2008-05-04 10:30 ` Samuel Thibault [this message]

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=20080504103001.GB4729@implementation \
    --to=samuel.thibault@eu.citrix.com \
    --cc=haicheng.li@intel.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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.