Skip to contentSkip to conversation

loongson2: fix compile error on arch/mips/oprofile/op_model_loongson2.c

PATCH In review Florian Fainelli 2 participants 2 messages Feb 21, 2010 – Feb 23, 2010 MIPS

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 loongson2: fix compile error on arch/mips/oprofile/op_model_loongson2.c

flags is now an unused variable, causing a build failure due to -Werror being turned on.

---

arch/mips/oprofile/op_model_loongson2.c +0 -1
index 2ffd47a..29e2326 100644
@@ -113,7 +113,6 @@ static irqreturn_t loongson2_perfcount_handler(int irq, void *dev_id)
 	uint64_t counter, counter1, counter2;
 	struct pt_regs *regs = get_irq_regs();
 	int enabled;
-	unsigned long flags;
 
 	/*
 	 * LOONGSON2 defines two 32-bit performance counters.
#1 lore raw
Quoted 2 lines · Florian Fainelli

flags is now an unused variable, causing a build failure due to -Werror being turned on.

Thanks, fixed that in the original patch that broke things.

Ralf