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/cacheflush.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'libc/sysdeps/linux/mips/cacheflush.c') diff --git a/libc/sysdeps/linux/mips/cacheflush.c b/libc/sysdeps/linux/mips/cacheflush.c index 235414dbd..15a344292 100644 --- a/libc/sysdeps/linux/mips/cacheflush.c +++ b/libc/sysdeps/linux/mips/cacheflush.c @@ -16,15 +16,15 @@ Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA. */ -#include -#include #include #ifdef __NR_cacheflush +# include _syscall3(int, cacheflush, void *, addr, const int, nbytes, const int, op) -strong_alias(cacheflush, _flush_cache) +strong_alias_untyped(cacheflush, _flush_cache) #endif #ifdef __NR_cachectl +# include _syscall3(int, cachectl, void *, addr, const int, nbytes, const int, op) #endif -- cgit v1.2.3