linux-sh.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] sh: Fix sh2a build error for CONFIG_CACHE_WRITETHROUGH
@ 2012-02-21  8:29 Phil Edworthy
  2012-02-24  4:41 ` Paul Mundt
  0 siblings, 1 reply; 2+ messages in thread
From: Phil Edworthy @ 2012-02-21  8:29 UTC (permalink / raw)
  To: linux-sh


Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>
---
 arch/sh/mm/cache-sh2a.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/arch/sh/mm/cache-sh2a.c b/arch/sh/mm/cache-sh2a.c
index ae08cbb..949e2d3 100644
--- a/arch/sh/mm/cache-sh2a.c
+++ b/arch/sh/mm/cache-sh2a.c
@@ -23,6 +23,7 @@
 #define MAX_OCACHE_PAGES	32
 #define MAX_ICACHE_PAGES	32
 
+#ifdef CONFIG_CACHE_WRITEBACK
 static void sh2a_flush_oc_line(unsigned long v, int way)
 {
 	unsigned long addr = (v & 0x000007f0) | (way << 11);
@@ -34,6 +35,7 @@ static void sh2a_flush_oc_line(unsigned long v, int way)
 		__raw_writel(data, CACHE_OC_ADDRESS_ARRAY | addr);
 	}
 }
+#endif
 
 static void sh2a_invalidate_line(unsigned long cache_addr, unsigned long v)
 {
-- 
1.7.0.4


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] sh: Fix sh2a build error for CONFIG_CACHE_WRITETHROUGH
  2012-02-21  8:29 [PATCH] sh: Fix sh2a build error for CONFIG_CACHE_WRITETHROUGH Phil Edworthy
@ 2012-02-24  4:41 ` Paul Mundt
  0 siblings, 0 replies; 2+ messages in thread
From: Paul Mundt @ 2012-02-24  4:41 UTC (permalink / raw)
  To: linux-sh

On Tue, Feb 21, 2012 at 08:29:57AM +0000, Phil Edworthy wrote:
> 
> Signed-off-by: Phil Edworthy <phil.edworthy@renesas.com>

Applied, thanks.

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-02-24  4:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-02-21  8:29 [PATCH] sh: Fix sh2a build error for CONFIG_CACHE_WRITETHROUGH Phil Edworthy
2012-02-24  4:41 ` Paul Mundt

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).