On Fri, 8 Jun 2007 13:53:49 +0100
mel@skynet.ie (Mel Gorman) wrote:
I'm kinda mystified about how you successfully tested this on ppc64 and
ia64. They don't assemble and execute i386 opcodes?
--- a/mm/page_alloc.c~allow-page_owner-to-be-set-on-any-architecture-fix
+++ a/mm/page_alloc.c
@@ -1498,13 +1498,15 @@ static inline void __stack_trace(struct
#endif
}
-static inline void set_page_owner(struct page *page,
- unsigned int order, unsigned int gfp_mask)
+static void set_page_owner(struct page *page, unsigned int order,
+ unsigned int gfp_mask)
{
- unsigned long address, bp;
+ unsigned long address;
+ unsigned long bp = 0;
#ifdef CONFIG_X86_64
asm ("movq %%rbp, %0" : "=r" (bp) : );
-#else
+#endif
+#ifdef CONFIG_X86_32
asm ("movl %%ebp, %0" : "=r" (bp) : );
#endif
page->order = (int) order;
_
that'll make it build, but it won't work...
-