From: Garrett C. <yan...@gm...> - 2009-06-29 21:13:34
|
On Mon, Jun 29, 2009 at 9:53 AM, naresh kamboju<nar...@gm...> wrote: > Hi, > > I have noticed build error for cacheflush01.c on MIPS. > There is edit issue from Windows to Linux text file. > Now build issue is resolved. > Please find attached patch and below. > > Best Regards > Naresh Kamboju > > Build-Error: > > cacheflush01.c -L../../../../lib -lltp -o cacheflush01 > cacheflush01.c: In function 'cacheflush': > cacheflush01.c:52: error: 'B' undeclared (first use in this function) > cacheflush01.c:52: error: (Each undeclared identifier is reported only once > cacheflush01.c:52: error: for each function it appears in.) > cacheflush01.c:52: error: expected ';' before 'B' > cacheflush01.c:53: warning: control reaches end of non-void function > make: *** [cacheflush01] Error 1 > > > Signed-off-by: Naresh Kamboju < nar...@gm... > > > diff -Naurb a/testcases/kernel/syscalls/cacheflush/cacheflush01.c > b/testcases/kernel/syscalls/cacheflush/cacheflush01.c > --- a/testcases/kernel/syscalls/cacheflush/cacheflush01.c 2009-04-15 > 12:02:35.000000000 +0530 > +++ b/testcases/kernel/syscalls/cacheflush/cacheflush01.c 2009-06-29 > 21:38:42.000000000 +0530 > @@ -49,7 +49,7 @@ > #include <asm/cachectl.h> > int cacheflush(char *addr, int nbytes, int cache) > { > -B B B B return syscall(__NR_cacheflush, addr, nbytes, cache); > + return syscall(__NR_cacheflush, addr, nbytes, cache); > } > #endif /* __mips__ */ Nice catch... Heh. -Garrett |