2.6.18 (grsec 20060926 1743) compile error
Posted: Wed Sep 27, 2006 5:43 am
Hi!
After applying the 1743 patch on a 2.6.18 I get:
CC init/version.o
LD init/built-in.o
LD vmlinux
arch/i386/mm/built-in.o: In function `boot_ioremap':
: undefined reference to `boot_vaddr_to_pte'
make: *** [vmlinux] Error 1
GCC v4.1.1
For some reason the patch does this:
+++ linux-2.6.18/arch/i386/mm/boot_ioremap.c 2006-09-22 20:45:03.000000000 -0400@@ -7,53 +7,36 @@
...
-#define BOOT_PTE_PTRS (PTRS_PER_PTE*2)
-#define boot_pte_index(address) \
- (((address) >> PAGE_SHIFT) & (BOOT_PTE_PTRS - 1))
-
-static inline boot_pte_t* boot_vaddr_to_pte(void *address)
-{
- boot_pte_t* boot_pg = (boot_pte_t*)pg0;
- return &boot_pg[boot_pte_index((unsigned long)address)];
-}
-
spender?
After applying the 1743 patch on a 2.6.18 I get:
CC init/version.o
LD init/built-in.o
LD vmlinux
arch/i386/mm/built-in.o: In function `boot_ioremap':
: undefined reference to `boot_vaddr_to_pte'
make: *** [vmlinux] Error 1
GCC v4.1.1
For some reason the patch does this:
+++ linux-2.6.18/arch/i386/mm/boot_ioremap.c 2006-09-22 20:45:03.000000000 -0400@@ -7,53 +7,36 @@
...
-#define BOOT_PTE_PTRS (PTRS_PER_PTE*2)
-#define boot_pte_index(address) \
- (((address) >> PAGE_SHIFT) & (BOOT_PTE_PTRS - 1))
-
-static inline boot_pte_t* boot_vaddr_to_pte(void *address)
-{
- boot_pte_t* boot_pg = (boot_pte_t*)pg0;
- return &boot_pg[boot_pte_index((unsigned long)address)];
-}
-
spender?