Re: 2.6.24-rc4-mm1: undefined reference to `compat_sys_timerfd' on sparc64

Andrew Morton
2007-12-08T00:08:20Z

On Sat, 8 Dec 2007 01:04:55 +0100
Mariusz Kozlowski <m.kozlowski@tuxland.pl> wrote:

> Hello,
>
> I tried it on sun ultra 60 (dual sparc64) station. Unfortunately it failed
> to compile.
>
> AS arch/sparc64/lib/xor.o
> AR arch/sparc64/lib/lib.a
> GEN .version
> CHK include/linux/compile.h
> dnsdomainname: Unknown host
> UPD include/linux/compile.h
> CC init/version.o
> LD init/built-in.o
> LD .tmp_vmlinux1
> arch/sparc64/kernel/head.o: In function `sys_call_table32':
> arch/sparc64/kernel/head.S:(.text+0x224e0): undefined reference to `compat_sys_timerfd'
> make: *** [.tmp_vmlinux1] Error 1

argh, sorry, I am soooooo fed up with fixing that patch.

--- a/arch/sparc64/kernel/systbls.S~timerfd-v3-new-timerfd-api-sparc64-fix
+++ a/arch/sparc64/kernel/systbls.S
@@ -80,7 +80,7 @@ sys_call_table32:
.word sys_fchmodat, sys_faccessat, compat_sys_pselect6, compat_sys_ppoll, sys_unshare
/*300*/ .word compat_sys_set_robust_list, compat_sys_get_robust_list, compat_sys_migrate_pages, compat_sys_mbind, compat_sys_get_mempolicy
.word compat_sys_set_mempolicy, compat_sys_kexec_load, compat_sys_move_pages, sys_getcpu, compat_sys_epoll_pwait
-/*310*/ .word compat_sys_utimensat, compat_sys_signalfd, compat_sys_timerfd, sys_eventfd, compat_sys_fallocate
+/*310*/ .word compat_sys_utimensat, compat_sys_signalfd, sys_ni_syscall, sys_eventfd, compat_sys_fallocate

#endif /* CONFIG_COMPAT */

_

Or should this have been sys_nis_syscall()?

I should have picked this up in cross-build testing but iirc
sparc64 broke for other reasons. Let me check on that.