On Fri, May 13, 2016 at 09:28:03AM +0000, Catalin Marinas wrote: > > The discussion is mainly around whether USER_DS for 32-bit compat apps > should be the same as USER_DS for native 32-bit apps. Even for native > 32-bit kernels, we don't use STACK_TOP as addr_limit. A read/write from > 0xffffffff would fail in both cases anyway. I think the LTP test doesn't > even try to access such memory but only to probe the range validity (I > haven't managed to build the latest LTP yet). This fix lets me build it (on top of 7b3ef3b0b) Of course, it's not 'official'. :) --- testcases/kernel/syscalls/fstatat/fstatat01.c | 1 + testcases/kernel/syscalls/preadv/preadv.h | 1 + testcases/kernel/syscalls/pwritev/pwritev.h | 1 + testcases/kernel/syscalls/request_key/Makefile | 2 +- 4 files changed, 4 insertions(+), 1 deletion(-) diff --git a/testcases/kernel/syscalls/fstatat/fstatat01.c b/testcases/kernel/syscalls/fstatat/fstatat01.c index 128f6dd..6e23c9e 100644 --- a/testcases/kernel/syscalls/fstatat/fstatat01.c +++ b/testcases/kernel/syscalls/fstatat/fstatat01.c @@ -59,6 +59,7 @@ static const char *filenames[TEST_CASES]; static const int expected_errno[] = { 0, 0, ENOTDIR, EBADF, EINVAL, 0 }; static const int flags[] = { 0, 0, 0, 0, 9999, 0 }; +#define HAVE_FSTATAT #if !defined(HAVE_FSTATAT) #if (__NR_fstatat64 > 0) int fstatat(int dirfd, const char *filename, struct stat64 *statbuf, int flags) diff --git a/testcases/kernel/syscalls/preadv/preadv.h b/testcases/kernel/syscalls/preadv/preadv.h index f3ac30d..b001389 100644 --- a/testcases/kernel/syscalls/preadv/preadv.h +++ b/testcases/kernel/syscalls/preadv/preadv.h @@ -21,6 +21,7 @@ #include "config.h" #include "linux_syscall_numbers.h" +#define HAVE_PREADV #if !defined(HAVE_PREADV) int preadv(int fd, const struct iovec *iov, int iovcnt, off_t offset) { diff --git a/testcases/kernel/syscalls/pwritev/pwritev.h b/testcases/kernel/syscalls/pwritev/pwritev.h index ae9d999..2a4d188 100644 --- a/testcases/kernel/syscalls/pwritev/pwritev.h +++ b/testcases/kernel/syscalls/pwritev/pwritev.h @@ -21,6 +21,7 @@ #include "config.h" #include "linux_syscall_numbers.h" +#define HAVE_PWRITEV #if !defined(HAVE_PWRITEV) int pwritev(int fd, const struct iovec *iov, int iovcnt, off_t offset) { diff --git a/testcases/kernel/syscalls/request_key/Makefile b/testcases/kernel/syscalls/request_key/Makefile index 9add429..2e8a37c 100644 --- a/testcases/kernel/syscalls/request_key/Makefile +++ b/testcases/kernel/syscalls/request_key/Makefile @@ -19,6 +19,6 @@ top_srcdir ?= ../../../.. include $(top_srcdir)/include/mk/testcases.mk -LDLIBS += $(KEYUTILS_LIBS) +LDLIBS += $(lkeyutils) include $(top_srcdir)/include/mk/generic_leaf_target.mk -- 2.5.0 > > -- > Catalin > > _______________________________________________ > linux-arm-kernel mailing list > linux-arm-kernel@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/linux-arm-kernel -- To unsubscribe from this list: send the line "unsubscribe linux-arch" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html