]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - kernel/kexec.c
kexec: fix wrong types of some local variables
[karo-tx-linux.git] / kernel / kexec.c
index 6c33276f75b06ba4a1d2f52c9dd0b48ccfedc8fb..e1e5ce9bf53edcc55f00c0eae29496ba949568e5 100644 (file)
@@ -786,7 +786,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;
 
@@ -850,7 +850,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;
 
@@ -1448,7 +1448,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);