Re: 2.6.17-rc5-mm2 link issues on s390

From: Cedric Le Goater
Date: Thu Jun 01 2006 - 09:13:43 EST


Hello,

here are small link issues on s390.

...
CHK include/linux/compile.h
UPD include/linux/compile.h
CC init/version.o
LD init/built-in.o
LD .tmp_vmlinux1
init/built-in.o(.init.text+0x564): In function `start_kernel':
: undefined reference to `early_init_irq_lock_type'
lib/built-in.o(.text+0xaf6): In function `__iowrite64_copy':
: undefined reference to `__raw_writeq'
make: *** [.tmp_vmlinux1] Error 1


I think the early_init_irq_lock_type() undef is related to the
lock-validator patch. Shall I just :

--- 2.6.17-rc5-mm2.orig/init/main.c
+++ 2.6.17-rc5-mm2/init/main.c
@@ -473,7 +473,9 @@

local_irq_disable();
early_boot_irqs_off();
+#ifdef CONFIG_GENERIC_HARDIRQS
early_init_irq_lock_type();
+#endif


too easy ... the lock-validator should be ported to s390 I guess. What are
the steps to follow ?

As for the `__iowrite64_copy', shall we :

#define writeq(b,addr) (*(volatile unsigned long *) __io_virt(addr) = (b))
#define __raw_writeq writeq

For the moment, it boots but I'd like to make sure i'm in the right
direction before sending patches. However, the following one is safe and
fixes a very small compil issue on s390 in klibc.

thanks,

C.

--
usr/klibc/arch/s390/mmap.c | 1 +
1 files changed, 1 insertion(+)

Index: 2.6.17-rc5-mm2/usr/klibc/arch/s390/mmap.c
===================================================================
--- 2.6.17-rc5-mm2.orig/usr/klibc/arch/s390/mmap.c
+++ 2.6.17-rc5-mm2/usr/klibc/arch/s390/mmap.c
@@ -1,5 +1,6 @@
#include <sys/types.h>
#include <linux/unistd.h>
+#include <errno.h>

struct mmap_arg_struct {
unsigned long addr;

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