summaryrefslogtreecommitdiffstats
path: root/kernel/kexec.c
diff options
context:
space:
mode:
Diffstat (limited to 'kernel/kexec.c')
-rw-r--r--kernel/kexec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/kernel/kexec.c b/kernel/kexec.c
index b574920cbd4b..b2c1306c863d 100644
--- a/kernel/kexec.c
+++ b/kernel/kexec.c
@@ -786,7 +786,7 @@ static int kimage_load_normal_segment(struct kimage *image,
786 struct kexec_segment *segment) 786 struct kexec_segment *segment)
787{ 787{
788 unsigned long maddr; 788 unsigned long maddr;
789 unsigned long ubytes, mbytes; 789 size_t ubytes, mbytes;
790 int result; 790 int result;
791 unsigned char __user *buf; 791 unsigned char __user *buf;
792 792
@@ -850,7 +850,7 @@ static int kimage_load_crash_segment(struct kimage *image,
850 * We do things a page at a time for the sake of kmap. 850 * We do things a page at a time for the sake of kmap.
851 */ 851 */
852 unsigned long maddr; 852 unsigned long maddr;
853 unsigned long ubytes, mbytes; 853 size_t ubytes, mbytes;
854 int result; 854 int result;
855 unsigned char __user *buf; 855 unsigned char __user *buf;
856 856
@@ -1540,7 +1540,7 @@ void vmcoreinfo_append_str(const char *fmt, ...)
1540{ 1540{
1541 va_list args; 1541 va_list args;
1542 char buf[0x50]; 1542 char buf[0x50];
1543 int r; 1543 size_t r;
1544 1544
1545 va_start(args, fmt); 1545 va_start(args, fmt);
1546 r = vsnprintf(buf, sizeof(buf), fmt, args); 1546 r = vsnprintf(buf, sizeof(buf), fmt, args);