lkml.org 
[lkml]   [2006]   [May]   [9]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[PATCH -mm] kexec gcc 4.1 warning fix
Fixes the following warning,

kernel/kexec.c: In function 'sys_kexec_load':
kernel/kexec.c:998: warning: value computed is not used
kernel/kexec.c: In function 'crash_kexec':
kernel/kexec.c:1066: warning: value computed is not used


Signed-Off-By: Daniel Walker <dwalker@mvista.com>

Index: linux-2.6.16/kernel/kexec.c
===================================================================
--- linux-2.6.16.orig/kernel/kexec.c
+++ linux-2.6.16/kernel/kexec.c
@@ -995,7 +995,7 @@ asmlinkage long sys_kexec_load(unsigned
image = xchg(dest_image, image);

out:
- xchg(&kexec_lock, 0); /* Release the mutex */
+ locked = xchg(&kexec_lock, 0); /* Release the mutex */
kimage_free(image);

return result;
@@ -1063,7 +1063,7 @@ void crash_kexec(struct pt_regs *regs)
machine_crash_shutdown(&fixed_regs);
machine_kexec(image);
}
- xchg(&kexec_lock, 0);
+ locked = xchg(&kexec_lock, 0);
}
}

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
\
 
 \ /
  Last update: 2006-05-10 05:02    [W:0.111 / U:0.028 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site