From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755882AbaIQPgW (ORCPT ); Wed, 17 Sep 2014 11:36:22 -0400 Received: from lists.s-osg.org ([54.187.51.154]:36433 "EHLO lists.s-osg.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755758AbaIQPgU (ORCPT ); Wed, 17 Sep 2014 11:36:20 -0400 Message-ID: <5419AA71.4020506@osg.samsung.com> Date: Wed, 17 Sep 2014 09:36:17 -0600 From: Shuah Khan Organization: Samsung Open Source Group User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.1.1 MIME-Version: 1.0 To: David Herrmann , Pranith Kumar CC: Andrew Morton , Hugh Dickins , Phong Tran , "open list:KERNEL SELFTEST F..." , open list , Shuah Khan Subject: Re: [PATCH] selftests/memfd: Run test on all architectures References: <1410821984-11160-1-git-send-email-bobby.prani@gmail.com> In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09/17/2014 06:28 AM, David Herrmann wrote: > Hi > > On Tue, Sep 16, 2014 at 12:59 AM, Pranith Kumar wrote: >> Remove the dependence on x86 to run the memfd test. Verfied on 32-bit powerpc. >> >> Signed-off-by: Pranith Kumar > > Now that most archs have __NR_memfd_create, this is: > > Reviewed-by: David Herrmann > Hmm. I am seeing failures on x86_64 on top of Linus's tree (without this patch) make -C tools/testing/selftests/memfd/make: Entering directory `/lkml/linus_git_3.14/tools/testing/selftests/memfd' gcc -D_FILE_OFFSET_BITS=64 -I../../../../arch/x86/include/generated/uapi/ -I../../../../arch/x86/include/uapi/ -I../../../../include/uapi/ -I../../../../include/ memfd_test.c -o memfd_test memfd_test.c: In function ‘sys_memfd_create’: memfd_test.c:26:17: error: ‘__NR_memfd_create’ undeclared (first use in this function) return syscall(__NR_memfd_create, name, flags); ^ memfd_test.c:26:17: note: each undeclared identifier is reported only once for each function it appears in Could you please look into this?? It appears __NR_memfd_create isn't defined on x86_64??? thanks, -- Shuah -- Shuah Khan Sr. Linux Kernel Developer Samsung Research America (Silicon Valley) shuahkh@osg.samsung.com | (970) 217-8978