From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from psmtp.com (na3sys010amx113.postini.com [74.125.245.113]) by kanga.kvack.org (Postfix) with SMTP id 5CB1C6B002C for ; Tue, 6 Mar 2012 02:07:46 -0500 (EST) Received: by dakp5 with SMTP id p5so6567288dak.8 for ; Mon, 05 Mar 2012 23:07:45 -0800 (PST) Date: Mon, 5 Mar 2012 23:07:44 -0800 (PST) From: David Rientjes Subject: [patch -vmevent/core] mm, vmevent: vmevent_fd is conditional on CONFIG_VMEVENT Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: owner-linux-mm@kvack.org List-ID: To: Pekka Enberg Cc: linux-mm@kvack.org The vmevent_fd syscall is declared but not defined without CONFIG_VMEVENT, so make it conditional to avoid the following link error: arch/x86/built-in.o:(.rodata+0xdb0): undefined reference to `sys_vmevent_fd' Signed-off-by: David Rientjes --- kernel/sys_ni.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/kernel/sys_ni.c b/kernel/sys_ni.c --- a/kernel/sys_ni.c +++ b/kernel/sys_ni.c @@ -191,6 +191,7 @@ cond_syscall(compat_sys_timerfd_settime); cond_syscall(compat_sys_timerfd_gettime); cond_syscall(sys_eventfd); cond_syscall(sys_eventfd2); +cond_syscall(sys_vmevent_fd); /* performance counters: */ cond_syscall(sys_perf_event_open); -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@kvack.org. For more info on Linux MM, see: http://www.linux-mm.org/ . Fight unfair telecom internet charges in Canada: sign http://stopthemeter.ca/ Don't email: email@kvack.org