Skip to contentSkip to conversation

ARM: cache-l2x0: move 'l2_wt_override' variable to proper place

PATCH New Jingoo Han 2 participants 3 messages Nov 7, 2012 – Nov 8, 2012 Arm (32-bit)

lore
Share & tools
lore

Jingoo Han

author
#0 lore raw

PATCH 1/1 ARM: cache-l2x0: move 'l2_wt_override' variable to proper place

Fixed build warning as below:

arch/arm/mm/cache-l2x0.c:37:12: warning: 'l2_wt_override' defined but not used [-Wunused-variable]

---
 arch/arm/mm/cache-l2x0.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
arch/arm/mm/cache-l2x0.c +2 -1
index 92ee4a0..920a704 100644
@@ -34,7 +34,6 @@ static DEFINE_RAW_SPINLOCK(l2x0_lock);
 static u32 l2x0_way_mask;	/* Bitmask of active ways */
 static u32 l2x0_size;
 static unsigned long sync_reg_offset = L2X0_CACHE_SYNC;
-static int l2_wt_override;
 
 /* Aurora don't have the cache ID register available, so we have to
  * pass it though the device tree */
@@ -429,6 +428,8 @@ void __init l2x0_init(void __iomem *base, u32 aux_val, u32 aux_mask)
  * noninclusive, while the hardware cache range operations use
  * inclusive start and end addresses.
  */
+static int l2_wt_override;
+
 static unsigned long calc_range_end(unsigned long start, unsigned long end)
 {
 	/*
Signature · 1 line
1.7.1
#1 lore raw

PATCH 1/1 ARM: cache-l2x0: move 'l2_wt_override' variable to proper place

Quoted 3 lines · Jingoo Han

Fixed build warning as below:

arch/arm/mm/cache-l2x0.c:37:12: warning: 'l2_wt_override' defined but not used [-Wunused-variable]

You're too late with this; it's already been resolved.

author
#2 lore raw

PATCH 1/1 ARM: cache-l2x0: move 'l2_wt_override' variable to proper place

On Wednesday, November 07, 2012 6:34 PM Russell King wrote

Quoted 7 lines · Jingoo Han
Quoted 3 lines

Fixed build warning as below:

arch/arm/mm/cache-l2x0.c:37:12: warning: 'l2_wt_override' defined but not used [-Wunused-variable]

You're too late with this; it's already been resolved.

OK, I see. :)