linux-um archives
 help / color / mirror / Atom feed
From: Dominik Hackl <dominik@hackl.dhs.org>
To: jdike@karaya.com
Cc: user-mode-linux-devel@lists.sourceforge.net
Subject: [uml-devel] [PATCH] page.h warning fix
Date: Tue, 17 May 2005 21:09:45 +0200 (CEST)	[thread overview]
Message-ID: <Pine.LNX.4.61.0505172033050.4083@mercury.foo> (raw)



This patch removes a warning, caused by a cast of different sized types. 
This patch simply adds a second cast to avoid the warning.

	Signed-off-by: Dominik Hackl <dominik@hackl.dhs.org>



--- linux-2.6.12-rc4.orig/include/asm-um/page.h	2005-05-15 09:44:29.000000000 +0200
+++ linux-2.6.12-rc4/include/asm-um/page.h	2005-05-17 19:07:34.000000000 +0200
@@ -98,7 +98,7 @@ extern unsigned long uml_physmem;
 
 extern unsigned long to_phys(void *virt);
 extern void *to_virt(unsigned long phys);
-#define __pa(virt) to_phys((void *) virt)
+#define __pa(virt) to_phys((void *)(unsigned long) virt)
 #define __va(phys) to_virt((unsigned long) phys)
 
 #define page_to_pfn(page) ((page) - mem_map)


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

             reply	other threads:[~2005-05-17 19:21 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-05-17 19:09 Dominik Hackl [this message]
2005-05-17 22:03 ` [uml-devel] [PATCH] page.h warning fix Jeff Dike

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=Pine.LNX.4.61.0505172033050.4083@mercury.foo \
    --to=dominik@hackl.dhs.org \
    --cc=jdike@karaya.com \
    --cc=user-mode-linux-devel@lists.sourceforge.net \
    /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