Skip to contentSkip to conversation

UML build broken since 3.0.75 (also affects 3.2.x)

PATCH Applied Antoine Martin 4 participants 4 messages May 25, 2013 – May 28, 2013

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

Linus' vm patches broke the UML build in 3.0.75 onwards:

CC mm/memory.o
mm/memory.c: In function ‘vm_iomap_memory’:
mm/memory.c:2363:2: error: implicit declaration of function ‘io_remap_pfn_range’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors make[1]: *** [mm/memory.o] Error 1
make: *** [mm] Error 2

This fix is just a copy of what is found in later kernels. Compiled and boot tested both 3.0.80 and 3.2.45, x86_64 and i386.

arch/um/include/asm/pgtable.h +0 -0
@@ -69,6 +69,8 @@
 #define PAGE_KERNEL	__pgprot(_PAGE_PRESENT | _PAGE_RW | _PAGE_DIRTY |

_PAGE_ACCESSED)
#define PAGE_KERNEL_EXEC __pgprot(__PAGE_KERNEL_EXEC)

+#define io_remap_pfn_range remap_pfn_range
+
/*
* The i386 can't do page protection for execute, and considers that
the same
* are read.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected]
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

maintainer
#1 lore raw
Quoted 11 lines · Antoine Martin

Linus' vm patches broke the UML build in 3.0.75 onwards:

CC mm/memory.o
mm/memory.c: In function ‘vm_iomap_memory’:
mm/memory.c:2363:2: error: implicit declaration of function ‘io_remap_pfn_range’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors make[1]: *** [mm/memory.o] Error 1
make: *** [mm] Error 2

Quoted 1 line

This fix is just a copy of what is found in later kernels.

What is that git commit id?

thanks,

greg k-h

#2 lore raw
Quoted 12 lines · Greg KH
Quoted 11 lines · Antoine Martin

Linus' vm patches broke the UML build in 3.0.75 onwards:

CC mm/memory.o
mm/memory.c: In function ‘vm_iomap_memory’:
mm/memory.c:2363:2: error: implicit declaration of function ‘io_remap_pfn_range’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors make[1]: *** [mm/memory.o] Error 1
make: *** [mm] Error 2

Quoted 3 lines
Quoted 1 line

This fix is just a copy of what is found in later kernels.

What is that git commit id?

commit 4d94d6d030adfdea4837694d293ec6918d133ab2

Author: Richard Weinberger <[email protected]>
Date:   Tue Feb 7 01:22:47 2012 +0100

um: Serve io_remap_pfn_range()

At some places io_remap_pfn_range() is needed. UML has to serve it like all other archs do.

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

#3 lore raw
Quoted 21 lines · richard -rw- weinberger
Quoted 12 lines · Greg KH
Quoted 11 lines · Antoine Martin

Linus' vm patches broke the UML build in 3.0.75 onwards:

CC mm/memory.o
mm/memory.c: In function ‘vm_iomap_memory’:
mm/memory.c:2363:2: error: implicit declaration of function ‘io_remap_pfn_range’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors make[1]: *** [mm/memory.o] Error 1
make: *** [mm] Error 2

Quoted 3 lines
Quoted 1 line

This fix is just a copy of what is found in later kernels.

What is that git commit id?

commit 4d94d6d030adfdea4837694d293ec6918d133ab2

Author: Richard Weinberger <[email protected]>
Date:   Tue Feb 7 01:22:47 2012 +0100
Quoted 6 lines

um: Serve io_remap_pfn_range()

At some places io_remap_pfn_range() is needed. UML has to serve it like all other archs do.

Queued up for 3.2, thanks all.

Ben.

Signature · 2 lines
Ben Hutchings
If at first you don't succeed, you're doing about average.