[PATCH] kexec: fix sparse warnings

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Cc: Eric Biederman <ebiederm@xmission.com>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Alexey Dobriyan and committed by Linus Torvalds 314b6a4d 97afa0a2

+5 -5
+5 -5
kernel/kexec.c
··· 241 242 static int kimage_crash_alloc(struct kimage **rimage, unsigned long entry, 243 unsigned long nr_segments, 244 - struct kexec_segment *segments) 245 { 246 int result; 247 struct kimage *image; ··· 650 } 651 } 652 653 - return 0; 654 } 655 656 static struct page *kimage_alloc_page(struct kimage *image, ··· 696 /* Allocate a page, if we run out of memory give up */ 697 page = kimage_alloc_pages(gfp_mask, 0); 698 if (!page) 699 - return 0; 700 /* If the page cannot be used file it away */ 701 if (page_to_pfn(page) > 702 (KEXEC_SOURCE_MEMORY_LIMIT >> PAGE_SHIFT)) { ··· 754 unsigned long maddr; 755 unsigned long ubytes, mbytes; 756 int result; 757 - unsigned char *buf; 758 759 result = 0; 760 buf = segment->buf; ··· 818 unsigned long maddr; 819 unsigned long ubytes, mbytes; 820 int result; 821 - unsigned char *buf; 822 823 result = 0; 824 buf = segment->buf;
··· 241 242 static int kimage_crash_alloc(struct kimage **rimage, unsigned long entry, 243 unsigned long nr_segments, 244 + struct kexec_segment __user *segments) 245 { 246 int result; 247 struct kimage *image; ··· 650 } 651 } 652 653 + return NULL; 654 } 655 656 static struct page *kimage_alloc_page(struct kimage *image, ··· 696 /* Allocate a page, if we run out of memory give up */ 697 page = kimage_alloc_pages(gfp_mask, 0); 698 if (!page) 699 + return NULL; 700 /* If the page cannot be used file it away */ 701 if (page_to_pfn(page) > 702 (KEXEC_SOURCE_MEMORY_LIMIT >> PAGE_SHIFT)) { ··· 754 unsigned long maddr; 755 unsigned long ubytes, mbytes; 756 int result; 757 + unsigned char __user *buf; 758 759 result = 0; 760 buf = segment->buf; ··· 818 unsigned long maddr; 819 unsigned long ubytes, mbytes; 820 int result; 821 + unsigned char __user *buf; 822 823 result = 0; 824 buf = segment->buf;