lkml.org 
[lkml]   [2006]   [Jun]   [8]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
SubjectFix Compilation error for UM Linux
Hi,

This patch fixes the compilation error for UM Linux with linux-2.6.17-rc5.

It complains of using (void *) in arithmetic.

Thanks.

Suzuki K P
Linux Technology Center,
IBM Software Labs.



* Fix the compilation error for um-linux.

Signed Off by: Suzuki K P <suzuki@in.ibm.com>

--- arch/um/include/mem.h 2006-05-25 01:45:04.000000000 -0700
+++ arch/um/include/mem.h~fix_compilation_error 2006-06-08
07:46:21.000000000 -0700
@@ -22,7 +22,7 @@ static inline unsigned long to_phys(void

static inline void *to_virt(unsigned long phys)
{
- return((void *) uml_physmem + phys);
+ return (void *) (uml_physmem + phys);
}

#endif

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2006-06-08 17:11    [W:0.026 / U:2.616 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site