* [uml-devel] [PATCH] page.h warning fix
@ 2005-05-17 19:09 Dominik Hackl
2005-05-17 22:03 ` Jeff Dike
0 siblings, 1 reply; 2+ messages in thread
From: Dominik Hackl @ 2005-05-17 19:09 UTC (permalink / raw)
To: jdike; +Cc: user-mode-linux-devel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [uml-devel] [PATCH] page.h warning fix
2005-05-17 19:09 [uml-devel] [PATCH] page.h warning fix Dominik Hackl
@ 2005-05-17 22:03 ` Jeff Dike
0 siblings, 0 replies; 2+ messages in thread
From: Jeff Dike @ 2005-05-17 22:03 UTC (permalink / raw)
To: Dominik Hackl; +Cc: user-mode-linux-devel
On Tue, May 17, 2005 at 09:09:45PM +0200, Dominik Hackl wrote:
>
>
> 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>
Yup, I already have this patch in my tree, and it's going to Andrew soon.
Jeff
-------------------------------------------------------
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
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2005-05-17 22:08 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2005-05-17 19:09 [uml-devel] [PATCH] page.h warning fix Dominik Hackl
2005-05-17 22:03 ` Jeff Dike
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox