summaryrefslogtreecommitdiffstats
path: root/arch/arm
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-08-17 20:12:57 -0500
committerRob Herring <rob.herring@calxeda.com>2013-08-22 20:48:41 -0500
commit0b53c11d533a8f6688d73fad0baf67dd08ec1b90 (patch)
tree3d29fc55673d3a67ae9bf81982d1938e2ae994cc /arch/arm
parent62b4d60519044c25f84a778ce093e58155ffce05 (diff)
downloadop-kernel-dev-0b53c11d533a8f6688d73fad0baf67dd08ec1b90.zip
op-kernel-dev-0b53c11d533a8f6688d73fad0baf67dd08ec1b90.tar.gz
ARM: move outer_cache declaration out of ifdef
Move the outer_cache declaration of the CONFIG_OUTER_CACHE ifdef so that outer_cache can be used inside IS_ENABLED condition. Signed-off-by: Rob Herring <rob.herring@calxeda.com> Cc: Russell King <linux@arm.linux.org.uk>
Diffstat (limited to 'arch/arm')
-rw-r--r--arch/arm/include/asm/outercache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/include/asm/outercache.h b/arch/arm/include/asm/outercache.h
index 12f71a1..f94784f 100644
--- a/arch/arm/include/asm/outercache.h
+++ b/arch/arm/include/asm/outercache.h
@@ -37,10 +37,10 @@ struct outer_cache_fns {
void (*resume)(void);
};
-#ifdef CONFIG_OUTER_CACHE
-
extern struct outer_cache_fns outer_cache;
+#ifdef CONFIG_OUTER_CACHE
+
static inline void outer_inv_range(phys_addr_t start, phys_addr_t end)
{
if (outer_cache.inv_range)
OpenPOWER on IntegriCloud