X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=init%2Fdo_mounts_rd.c;h=e5d059e8aa11e78c736c75f452bc641abeec09b2;hb=3b7b3e6ec5f56118046594d3c62469e7d1d0aadd;hp=7c098ac9068a582af317596908390ad74011040e;hpb=b7d3622a39fde7658170b7f3cf6c6889bb8db30d;p=deliverable%2Flinux.git diff --git a/init/do_mounts_rd.c b/init/do_mounts_rd.c index 7c098ac9068a..e5d059e8aa11 100644 --- a/init/do_mounts_rd.c +++ b/init/do_mounts_rd.c @@ -13,7 +13,7 @@ #include #include #include -#include +#include #include #include #include @@ -311,9 +311,9 @@ static int exit_code; static int decompress_error; static int crd_infd, crd_outfd; -static int __init compr_fill(void *buf, unsigned int len) +static long __init compr_fill(void *buf, unsigned long len) { - int r = sys_read(crd_infd, buf, len); + long r = sys_read(crd_infd, buf, len); if (r < 0) printk(KERN_ERR "RAMDISK: error while reading compressed data"); else if (r == 0) @@ -321,13 +321,13 @@ static int __init compr_fill(void *buf, unsigned int len) return r; } -static int __init compr_flush(void *window, unsigned int outcnt) +static long __init compr_flush(void *window, unsigned long outcnt) { - int written = sys_write(crd_outfd, window, outcnt); + long written = sys_write(crd_outfd, window, outcnt); if (written != outcnt) { if (decompress_error == 0) printk(KERN_ERR - "RAMDISK: incomplete write (%d != %d)\n", + "RAMDISK: incomplete write (%ld != %ld)\n", written, outcnt); decompress_error = 1; return -1;