Subrata,
Attached is the patch.
Regards,
Shane

On Tue, Apr 22, 2008 at 3:08 AM, Subrata Modak
<[EMAIL PROTECTED]> wrote:
> On Mon, 2008-04-21 at 00:20 +0530, Subrata Modak wrote:
>  > On Thu, 2008-04-17 at 08:32 -0400, Shane Volpe wrote:
>  > > This is the second time I'm sending this message because the first was
>  > > rejected since I was not a member of the ltp list, please ignore the
>  > > first message if it makes it through as this one contains more info:
>  > >
>  > > The following patch and all others that were submitted in Feb, 2008
>  > > pertaining to "__NR_fadvise64" seem to break ARM builds of ltp as the
>  > > arm does not have __NR_fadvise64 defined.  I suspect there should be:
>  > > #ifndef __NR_fadvise64
>  > > #define __NR_fadvise64 0
>  > > in each of the files that the patches were added.
>  > >
>  > > Regards,
>  > > Shane
>  > >
>  >
>  > Thanks Shane,
>  >
>  > But the diff does not seem to be against the latest LTP CVS. And also it
>  > is not from the LTP root. Please resend me the patch against the latest
>  > code and from LTP root :-)
>
>  Shane,
>
>  You are yet to send me a clean Patch ;-)
>
>  Regards--
>  Subrata
>
>
>
>  >
>  > Regards--
>  > Subrata
>  >
>  > >
>  > >
>  > > Index: posix_fadvise01.c
>  > > ===================================================================
>  > > RCS file: 
> /cvsroot/ltp/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise01.c,v
>  > > retrieving revision 1.1
>  > > diff -u -r1.1 posix_fadvise01.c
>  > >
>  > > --- posix_fadvise01.c   22 Nov 2007 13:58:24 -0000      1.1
>  > > +++ posix_fadvise01.c   7 Jan 2008 11:32:21 -0000
>  > > @@ -44,6 +44,11 @@
>  > >  #include "test.h"
>  > >  #include "usctest.h"
>  > >
>  > > +#include "linux_syscall_numbers.h"
>  > >
>  > > +#ifndef _FILE_OFFSET_BITS
>  > > +#define _FILE_OFFSET_BITS 32
>  > > +#endif
>  > > +
>  > >  void setup();
>  > >  void cleanup();
>  > >
>  > > @@ -76,6 +81,14 @@
>  > >         int i;
>  > >
>  > >
>  > > +       /* Check this system has fadvise64 system which is used
>  > >
>  > > +          in posix_fadvise. */
>  > > +       if ((_FILE_OFFSET_BITS != 64) && (__NR_fadvise64 == 0)) {
>  > > +               tst_resm(TWARN, "This test can only run on kernels that
>  > > implements ");
>  > > +               tst_resm(TWARN, "fadvise64 which is used from 
> posix_fadvise");
>  > >
>  > > +               exit(0);
>  > > +       }
>  > > +
>  > >         /*
>  > >          * parse standard options
>  > >          */
>  > >
>  > > -------------------------------------------------------------------------
>  > > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  > > Don't miss this year's exciting event. There's still time to save $100.
>  > > Use priority code J8TL2D2.
>  > > 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  > > _______________________________________________
>  > > Ltp-list mailing list
>  > > [email protected]
>  > > https://lists.sourceforge.net/lists/listinfo/ltp-list
>  >
>  >
>  > -------------------------------------------------------------------------
>  > This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
>  > Don't miss this year's exciting event. There's still time to save $100.
>  > Use priority code J8TL2D2.
>  > 
> http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
>  > _______________________________________________
>  > Ltp-list mailing list
>  > [email protected]
>  > https://lists.sourceforge.net/lists/listinfo/ltp-list
>
>



-- 
Registered Linux User: #293401
Index: testcases/kernel/syscalls/fadvise/posix_fadvise01.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise01.c,v
retrieving revision 1.2
diff -u -r1.2 posix_fadvise01.c
--- testcases/kernel/syscalls/fadvise/posix_fadvise01.c	8 Jan 2008 12:01:20 -0000	1.2
+++ testcases/kernel/syscalls/fadvise/posix_fadvise01.c	22 Apr 2008 14:32:58 -0000
@@ -49,6 +49,10 @@
 #define _FILE_OFFSET_BITS 32
 #endif
 
+#ifndef __NR_fadvise64
+#define __NR_fadvise64 0
+#endif
+
 void setup();
 void cleanup();
 
Index: testcases/kernel/syscalls/fadvise/posix_fadvise02.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise02.c,v
retrieving revision 1.2
diff -u -r1.2 posix_fadvise02.c
--- testcases/kernel/syscalls/fadvise/posix_fadvise02.c	8 Jan 2008 12:01:20 -0000	1.2
+++ testcases/kernel/syscalls/fadvise/posix_fadvise02.c	22 Apr 2008 14:33:02 -0000
@@ -48,6 +48,10 @@
 #define _FILE_OFFSET_BITS 32
 #endif
 
+#ifndef __NR_fadvise64
+#define __NR_fadvise64 0
+#endif
+
 void setup();
 void cleanup();
 
Index: testcases/kernel/syscalls/fadvise/posix_fadvise03.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise03.c,v
retrieving revision 1.2
diff -u -r1.2 posix_fadvise03.c
--- testcases/kernel/syscalls/fadvise/posix_fadvise03.c	8 Jan 2008 12:01:20 -0000	1.2
+++ testcases/kernel/syscalls/fadvise/posix_fadvise03.c	22 Apr 2008 14:33:04 -0000
@@ -49,6 +49,10 @@
 #define _FILE_OFFSET_BITS 32
 #endif
 
+#ifndef __NR_fadvise64
+#define __NR_fadvise64 0
+#endif
+
 void setup();
 void cleanup();
 
Index: testcases/kernel/syscalls/fadvise/posix_fadvise04.c
===================================================================
RCS file: /cvsroot/ltp/ltp/testcases/kernel/syscalls/fadvise/posix_fadvise04.c,v
retrieving revision 1.3
diff -u -r1.3 posix_fadvise04.c
--- testcases/kernel/syscalls/fadvise/posix_fadvise04.c	8 Jan 2008 12:01:20 -0000	1.3
+++ testcases/kernel/syscalls/fadvise/posix_fadvise04.c	22 Apr 2008 14:33:05 -0000
@@ -47,6 +47,10 @@
 #define _FILE_OFFSET_BITS 32
 #endif
 
+#ifndef __NR_fadvise64
+#define __NR_fadvise64 0
+#endif
+
 void setup();
 void cleanup();
 
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
Ltp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/ltp-list

Reply via email to