From: Subrata M. <su...@li...> - 2009-04-28 07:24:35
|
On Mon, 2009-04-27 at 20:14 +0000, Dave Kleikamp wrote: > fallocate tests call syscall() incorrectly for 32-bit powerpc > > Signed-off-by: Dave Kleikamp <sh...@li...> Thanks. Merged. Regards-- Subrata > > diff -urp ltp-full-20090331/testcases/kernel/syscalls/fallocate/fallocate01.c ltp-full/testcases/kernel/syscalls/fallocate/fallocate01.c > --- ltp-full-20090331/testcases/kernel/syscalls/fallocate/fallocate01.c 2009-03-23 08:35:40.000000000 -0500 > +++ ltp-full/testcases/kernel/syscalls/fallocate/fallocate01.c 2009-04-24 16:26:01.000000000 -0500 > @@ -292,6 +292,7 @@ static inline long fallocate(int fd, int > struct utsname buf; > if (uname(&buf) == 0) { > if (!strcmp(buf.machine, "ppc64") > + || !strcmp(buf.machine, "ppc") > || !strcmp(buf.machine, "x86_64")) > return syscall(__NR_fallocate, fd, mode, > (int)(offset >> 32), (int)offset, > diff -urp ltp-full-20090331/testcases/kernel/syscalls/fallocate/fallocate02.c ltp-full/testcases/kernel/syscalls/fallocate/fallocate02.c > --- ltp-full-20090331/testcases/kernel/syscalls/fallocate/fallocate02.c 2009-03-23 08:35:40.000000000 -0500 > +++ ltp-full/testcases/kernel/syscalls/fallocate/fallocate02.c 2009-04-24 16:26:17.000000000 -0500 > @@ -258,6 +258,7 @@ static inline long fallocate(int fd, int > struct utsname buf; > if (uname(&buf) == 0) { > if (!strcmp(buf.machine, "ppc64") > + || !strcmp(buf.machine, "ppc") > || !strcmp(buf.machine, "x86_64")) > return syscall(__NR_fallocate, fd, mode, > (int)(offset >> 32), (int)offset, > diff -urp ltp-full-20090331/testcases/kernel/syscalls/fallocate/fallocate03.c ltp-full/testcases/kernel/syscalls/fallocate/fallocate03.c > --- ltp-full-20090331/testcases/kernel/syscalls/fallocate/fallocate03.c 2009-03-23 08:35:40.000000000 -0500 > +++ ltp-full/testcases/kernel/syscalls/fallocate/fallocate03.c 2009-04-24 16:26:21.000000000 -0500 > @@ -245,6 +245,7 @@ static inline long fallocate(int fd, int > struct utsname buf; > if (uname(&buf) == 0) { > if (!strcmp(buf.machine, "ppc64") > + || !strcmp(buf.machine, "ppc") > || !strcmp(buf.machine, "x86_64")) > return syscall(__NR_fallocate, fd, mode, > (int)(offset >> 32), (int)offset, > |