Hi!
Following patch should fix all troubles with get/set_mempolicy. Header
linux_syscall_numbers.h wasn't included in libcpuset.c and part of makefile
that creates symlink in $(LTP_TOPDIR)/include to this header was lost in
buildsystem rework. May be it would be be cleaner to move content of
testcases/kernel/include somewhere into include but at least with this patch it
should compile fine.

signed-off-by: [email protected]

-- 
Cyril Hrubis
[email protected]
Index: delme/testcases/kernel/include/powerpc.in
===================================================================
--- delme.orig/testcases/kernel/include/powerpc.in
+++ delme/testcases/kernel/include/powerpc.in
@@ -3,6 +3,8 @@ timer_settime 241
 timer_delete 244
 clock_settime 245
 clock_gettime 246
+get_mempolicy 260
+set_mempolicy 261
 splice 283
 tee 284
 vmsplice 285
Index: delme/testcases/kernel/include/powerpc64.in
===================================================================
--- delme.orig/testcases/kernel/include/powerpc64.in
+++ delme/testcases/kernel/include/powerpc64.in
@@ -3,6 +3,8 @@ timer_settime 241
 timer_delete 244
 clock_settime 245
 clock_gettime 246
+get_mempolicy 260
+set_mempolicy 261
 splice 283
 tee 284
 vmsplice 285
Index: delme/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
===================================================================
--- delme.orig/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
+++ delme/testcases/kernel/controllers/cpuset/cpuset_lib/libcpuset.c
@@ -48,6 +48,9 @@
 #include "cpuset.h"
 #include "common.h"
 
+#include "test.h"
+#include "linux_syscall_numbers.h"
+
 /* Bump version, and update Change History, when libcpuset API changes */
 #define CPUSET_VERSION 3
 
Index: delme/testcases/kernel/include/Makefile
===================================================================
--- delme.orig/testcases/kernel/include/Makefile
+++ delme/testcases/kernel/include/Makefile
@@ -18,6 +18,7 @@
 #    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
 #
 # Garrett Cooper, July 2009
+# Cyril Hrubis, October 2009
 #
 
 top_srcdir		?= ../../..
@@ -30,5 +31,7 @@ MAKE_TARGETS		:= linux_syscall_numbers.h
 
 linux_syscall_numbers.h:
 	@set -e; $(SHELL) $(abs_srcdir)/regen.sh
+	rm -f $(top_srcdir)/include/$(MAKE_TARGETS)
+	ln -s $(abs_srcdir)/$(MAKE_TARGETS) $(top_srcdir)/include/
 
 include $(top_srcdir)/include/mk/generic_leaf_target.mk
Index: delme/testcases/kernel/include/s390x.in
===================================================================
--- delme.orig/testcases/kernel/include/s390x.in
+++ delme/testcases/kernel/include/s390x.in
@@ -1,3 +1,5 @@
+get_mempolicy 269
+set_mempolicy 270
 openat 288
 mkdirat (__NR_openat + 1)
 mknodat (__NR_openat + 2)
------------------------------------------------------------------------------
Come build with us! The BlackBerry(R) Developer Conference in SF, CA
is the only developer event you need to attend this year. Jumpstart your
developing skills, take BlackBerry mobile applications to market and stay 
ahead of the curve. Join us from November 9 - 12, 2009. Register now!
http://p.sf.net/sfu/devconference
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to