public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
From: Mathieu Desnoyers <mathieu.desnoyers@efficios.com>
To: Pranith Kumar <bobby.prani@gmail.com>,
	Michael Ellerman <mpe@ellerman.id.au>
Cc: Linux Kernel <linux-kernel@vger.kernel.org>
Subject: membarrier selftest issue
Date: Mon, 15 Jun 2015 15:31:47 +0000 (UTC)	[thread overview]
Message-ID: <744233553.3211.1434382307322.JavaMail.zimbra@efficios.com> (raw)

Hi,

The updated membarrier tree:
https://github.com/compudj/linux-dev
branch: sys-membarrier-volatile

has an issue building selftests (make -C tools/testing/selftests)

It appears that including linux/membarrier.h from those userspace
tests now fails (as of 4.1-rc8). Of course, my system does not have
the updated userspace headers installed. What is the right course
of action there ?

[...]
gcc -I../../../../usr/include/    kcmp_test.c   -o kcmp_test
kcmp_test.c:13:24: fatal error: linux/kcmp.h: No such file or directory
 #include <linux/kcmp.h>
                        ^
compilation terminated.
make[1]: *** [kcmp_test] Error 1
make[1]: Leaving directory `/home/efficios/git/linux-dev/tools/testing/selftests/kcmp'
make[1]: Entering directory `/home/efficios/git/linux-dev/tools/testing/selftests/membarrier'
gcc -g -I../../../../usr/include/ membarrier_test.c -o membarrier_test
membarrier_test.c:4:30: fatal error: linux/membarrier.h: No such file or directory
 #include <linux/membarrier.h>
                              ^
compilation terminated.
make[1]: *** [all] Error 1
make[1]: Leaving directory `/home/efficios/git/linux-dev/tools/testing/selftests/membarrier'
make[1]: Entering directory `/home/efficios/git/linux-dev/tools/testing/selftests/memfd'
gcc -D_FILE_OFFSET_BITS=64 -I../../../../include/uapi/ -I../../../../include/ -I../../../../usr/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

Thanks,

Mathieu

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com

             reply	other threads:[~2015-06-15 15:32 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-06-15 15:31 Mathieu Desnoyers [this message]
2015-06-17  4:56 ` membarrier selftest issue Pranith Kumar
2015-06-17 11:59   ` Mathieu Desnoyers

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=744233553.3211.1434382307322.JavaMail.zimbra@efficios.com \
    --to=mathieu.desnoyers@efficios.com \
    --cc=bobby.prani@gmail.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=mpe@ellerman.id.au \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox