public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v3 1/2] kexec: fix wrong types of some local variables
@ 2013-02-26  5:15 Zhang Yanfei
  2013-02-26  5:30 ` [PATCH v3 2/2] kexec: Use min_t to simplify logic Zhang Yanfei
  2013-03-01  1:31 ` [PATCH v3 1/2] kexec: fix wrong types of some local variables Simon Horman
  0 siblings, 2 replies; 8+ messages in thread
From: Zhang Yanfei @ 2013-02-26  5:15 UTC (permalink / raw)
  To: Andrew Morton, Eric W. Biederman, Simon Horman
  Cc: kexec@lists.infradead.org, linux-kernel@vger.kernel.org

The types of the following local variables:
  - ubytes/mbytes in kimage_load_crash_segment()/kimage_load_normal_segment()
  - r in vmcoreinfo_append_str()
are wrong, so fix them.

Cc: "Eric W. Biederman" <ebiederm@xmission.com>
Cc: Andrew Morton <akpm@linux-foundation.org>
Cc: Simon Horman <horms@verge.net.au>
Signed-off-by: Zhang Yanfei <zhangyanfei@cn.fujitsu.com>
---
 kernel/kexec.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/kernel/kexec.c b/kernel/kexec.c
index 2436ffc..3cbfcc7 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -789,7 +789,7 @@ static int kimage_load_normal_segment(struct kimage *image,
 					 struct kexec_segment *segment)
 {
 	unsigned long maddr;
-	unsigned long ubytes, mbytes;
+	size_t ubytes, mbytes;
 	int result;
 	unsigned char __user *buf;
 
@@ -853,7 +853,7 @@ static int kimage_load_crash_segment(struct kimage *image,
 	 * We do things a page at a time for the sake of kmap.
 	 */
 	unsigned long maddr;
-	unsigned long ubytes, mbytes;
+	size_t ubytes, mbytes;
 	int result;
 	unsigned char __user *buf;
 
@@ -1455,7 +1455,7 @@ void vmcoreinfo_append_str(const char *fmt, ...)
 {
 	va_list args;
 	char buf[0x50];
-	int r;
+	size_t r;
 
 	va_start(args, fmt);
 	r = vsnprintf(buf, sizeof(buf), fmt, args);
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2013-03-01  1:32 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-02-26  5:15 [PATCH v3 1/2] kexec: fix wrong types of some local variables Zhang Yanfei
2013-02-26  5:30 ` [PATCH v3 2/2] kexec: Use min_t to simplify logic Zhang Yanfei
2013-02-26  8:38   ` Joe Perches
2013-02-26  8:49     ` Zhang Yanfei
2013-02-26  8:53       ` Andrew Morton
2013-02-26  8:55         ` Zhang Yanfei
2013-02-27 22:31           ` Andrew Morton
2013-03-01  1:31 ` [PATCH v3 1/2] kexec: fix wrong types of some local variables Simon Horman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox