author | Mike Frysinger <vapier@gentoo.org> | |
Thu, 27 Oct 2011 08:59:59 +0000 (04:59 -0400) | ||
committer | Nobuhiro Iwamatsu <iwamatsu@nigauri.org> | |
Fri, 2 Dec 2011 04:46:21 +0000 (13:46 +0900) | ||
commit | 172106433b68bfcc25d025fca346021f005166b7 | |
tree | f610580e94f3d134046771fd0cc5f93a21425745 | tree | snapshot (tar.xz tar.gz zip) |
parent | 3ed81645874413d31c5012cb958abd3bc5008b0c | commit | diff |
sh: avoid multiple definition errors with cache funcs
Recent builds for SH4 boards fail with a lot of errors like:
cmd_mem.o: In function 'dcache_invalid_range':
include/asm/cache.h:25: multiple definition of 'dcache_invalid_range'
include/asm/cache.h:25: first defined here
This is due to the funcs being defined in the header, but not static
or inline or extern. So move them to the sh4-specific cache.c file.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
Recent builds for SH4 boards fail with a lot of errors like:
cmd_mem.o: In function 'dcache_invalid_range':
include/asm/cache.h:25: multiple definition of 'dcache_invalid_range'
include/asm/cache.h:25: first defined here
This is due to the funcs being defined in the header, but not static
or inline or extern. So move them to the sh4-specific cache.c file.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
arch/sh/cpu/sh4/cache.c | diff | blob | history | |
arch/sh/include/asm/cache.h | diff | blob | history |