From 8f6fc2576cadc5d1d3ea8fcbae78096ba81a847f Mon Sep 17 00:00:00 2001 From: "Peter S. Mazinger" Date: Tue, 5 Apr 2011 16:29:53 +0200 Subject: cacheflush.c: compile only if __NR_cacheflush is available The header had to be removed under the guard, else asm/cachectl.h might not be available at all. While there, disable __cachectl prototype. Use untyped strong_alias for cacheflush because char * != void *. Signed-off-by: Peter S. Mazinger Signed-off-by: Bernhard Reutner-Fischer --- libc/sysdeps/linux/mips/sys/cachectl.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'libc/sysdeps/linux/mips/sys') diff --git a/libc/sysdeps/linux/mips/sys/cachectl.h b/libc/sysdeps/linux/mips/sys/cachectl.h index a93e1fb6d..805c78527 100644 --- a/libc/sysdeps/linux/mips/sys/cachectl.h +++ b/libc/sysdeps/linux/mips/sys/cachectl.h @@ -31,7 +31,9 @@ __BEGIN_DECLS #ifdef __USE_MISC extern int cachectl (void *addr, __const int nbytes, __const int op) __THROW; #endif +#if 0 extern int __cachectl (void *addr, __const int nbytes, __const int op) __THROW; +#endif #ifdef __USE_MISC extern int cacheflush (void *addr, __const int nbytes, __const int op) __THROW; #endif -- cgit v1.2.3