[PATCH] Fix oprofile -Werror compile failure encountered while doinga MIPS Malta build.

From: Dragos Tatulea
Date: Sat Sep 25 2010 - 15:20:30 EST


Signed-off-by: Dragos Tatulea <dragos.tatulea@xxxxxxxxx>
---
drivers/oprofile/buffer_sync.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/oprofile/buffer_sync.c b/drivers/oprofile/buffer_sync.c
index b7e755f..a832644 100644
--- a/drivers/oprofile/buffer_sync.c
+++ b/drivers/oprofile/buffer_sync.c
@@ -500,7 +500,7 @@ void sync_buffer(int cpu)
{
struct mm_struct *mm = NULL;
struct mm_struct *oldmm;
- unsigned long val;
+ unsigned long uninitialized_var(val);
struct task_struct *new;
unsigned long cookie = 0;
int in_kernel = 1;
--
1.7.2.3
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/