]> nv-tegra.nvidia Code Review - linux-2.6.git/commit
MN10300: Handle missing sys_cacheflush() when caching disabled
authorDavid Howells <dhowells@redhat.com>
Wed, 29 Sep 2010 00:57:02 +0000 (01:57 +0100)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 29 Sep 2010 01:01:14 +0000 (18:01 -0700)
commit62bdb288bf464862a2801b2e53aadc6c4d100fab
tree35f321df2ab9091d2f4a1f788b609ad36fed03db
parent0f44fbd297e1cda5d9ecc9f5321a86fe647c7d4a
MN10300: Handle missing sys_cacheflush() when caching disabled

When caching is disabled on the MN10300 arch, the sys_cacheflush()
function is removed by conditional stuff in the makefiles, but is still
referred to by the syscall table.

Provide a null version that just returns 0 when caching is disabled (or
-EINVAL if the arguments are silly).

Signed-off-by: David Howells <dhowells@redhat.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
arch/mn10300/mm/Makefile
arch/mn10300/mm/cache-disabled.c [new file with mode: 0644]