Messages in this thread Patch in this message | | | From | Alexey Dobriyan <> | Subject | [PATCH] kexec: fix sparse warnings | Date | Mon, 27 Jun 2005 23:12:29 +0400 |
| |
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Index: linux-sparse/kernel/kexec.c =================================================================== --- linux-sparse.orig/kernel/kexec.c 2005-06-27 09:32:52.000000000 +0400 +++ linux-sparse/kernel/kexec.c 2005-06-27 23:08:00.000000000 +0400 @@ -241,7 +241,7 @@ static int kimage_normal_alloc(struct ki static int kimage_crash_alloc(struct kimage **rimage, unsigned long entry, unsigned long nr_segments, - struct kexec_segment *segments) + struct kexec_segment __user *segments) { int result; struct kimage *image; @@ -650,7 +650,7 @@ static kimage_entry_t *kimage_dst_used(s } } - return 0; + return NULL; } static struct page *kimage_alloc_page(struct kimage *image, @@ -696,7 +696,7 @@ static struct page *kimage_alloc_page(st /* Allocate a page, if we run out of memory give up */ page = kimage_alloc_pages(gfp_mask, 0); if (!page) - return 0; + return NULL; /* If the page cannot be used file it away */ if (page_to_pfn(page) > (KEXEC_SOURCE_MEMORY_LIMIT >> PAGE_SHIFT)) { @@ -754,7 +754,7 @@ static int kimage_load_normal_segment(st unsigned long maddr; unsigned long ubytes, mbytes; int result; - unsigned char *buf; + unsigned char __user *buf; result = 0; buf = segment->buf; @@ -818,7 +818,7 @@ static int kimage_load_crash_segment(str unsigned long maddr; unsigned long ubytes, mbytes; int result; - unsigned char *buf; + unsigned char __user *buf; result = 0; buf = segment->buf; - 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/
| |