Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030229Ab2KXJl1 (ORCPT ); Sat, 24 Nov 2012 04:41:27 -0500 Received: from mail-ee0-f46.google.com ([74.125.83.46]:53910 "EHLO mail-ee0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S964829Ab2KXJlZ (ORCPT ); Sat, 24 Nov 2012 04:41:25 -0500 MIME-Version: 1.0 In-Reply-To: <20121124083139.691424172@redhat.com> References: <20121124082918.671430919@redhat.com> <20121124083139.691424172@redhat.com> Date: Sat, 24 Nov 2012 11:41:23 +0200 X-Google-Sender-Auth: AUSJ5Cfu3U968ih5vax_RB6AFEY Message-ID: Subject: Re: [patch 6/8] kcmp selftests: build fix From: Pekka Enberg To: dyoung@redhat.com Cc: akpm@linux-foundation.org, linux-kernel@vger.kernel.org, Cyrill Gorcunov Content-Type: text/plain; charset=ISO-8859-1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1453 Lines: 37 On Sat, Nov 24, 2012 at 10:29 AM, wrote: > For old glibc there's no the syscall number this tests will cause > make run_tests fail. > Add a macro to define the number. This should be ok because it will be > built in latest kernel source. > > Signed-off-by: Dave Young > --- > tools/testing/selftests/kcmp/kcmp_test.c | 3 +++ > 1 file changed, 3 insertions(+) > > --- linux-2.6.orig/tools/testing/selftests/kcmp/kcmp_test.c 2012-11-23 22:37:04.789058192 +0800 > +++ linux-2.6/tools/testing/selftests/kcmp/kcmp_test.c 2012-11-23 22:38:43.195191747 +0800 > @@ -17,6 +17,9 @@ > #include > #include > > +#ifndef __NR_kcmp > +#define __NR_kcmp 272 > +#endif Is the syscall number really going to be the same across all architectures? > static long sys_kcmp(int pid1, int pid2, int type, int fd1, int fd2) > { > return syscall(__NR_kcmp, pid1, pid2, type, fd1, fd2); > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/ -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/