Bug#453851: cloop-src: make module - invalidate_bdev function

2008-01-12 Thread Philipp Kern
On Sat, Dec 01, 2007 at 03:22:43PM -0200, Herbert P Fortes Neto wrote:
  i tried to build the cloop module and received this error:

I fixed three compilation problems with the new kernel (2.6.24-git but
should apply to 2.6.23, too, which is in unstable) but then I heared
that it's deprecated anyway.  Well, uploaded in spite of this.

NMU attached.

Kind regards
Philipp Kern
diff -Nru cloop-2.05~20060829/compressed_loop.c 
cloop-2.05~20060829/compressed_loop.c
--- cloop-2.05~20060829/compressed_loop.c   2006-12-04 00:07:02.0 
+0100
+++ cloop-2.05~20060829/compressed_loop.c   2008-01-12 12:56:29.0 
+0100
@@ -350,7 +350,7 @@
 up(clo-clo_lock);
 
 out:
-bio_endio(bio, bio-bi_size,buffered_blocknum==-1  !preloaded);
+bio_endio(bio, buffered_blocknum==-1  !preloaded);
 return 0;
 }
 
@@ -625,7 +625,7 @@
 if(clo-compressed_buffer) { vfree(clo-compressed_buffer); 
clo-compressed_buffer = NULL; }
 zlib_inflateEnd(clo-zstream);
 if(clo-zstream.workspace) { vfree(clo-zstream.workspace); 
clo-zstream.workspace = NULL; }
-invalidate_bdev(bdev, 0);
+invalidate_bdev(bdev);
 set_capacity(clo-disk, 0);
 return 0;
 }
@@ -814,8 +814,7 @@
 #if LINUX_VERSION_CODE  KERNEL_VERSION(2,6,18)
 devfs_remove(cloop_name);
 #endif
-if(unregister_cloop_blkdev() != 0)
-printk(KERN_WARNING %s: cannot unregister block device\n, 
cloop_name);
+unregister_cloop_blkdev();
 for(i=0;imax_cloop;i++)
 {
 del_gendisk(cloop_dev[i].disk);
diff -Nru /tmp/UcKAy70nFE/cloop-2.05~20060829/debian/changelog 
/tmp/CgTwM43v4m/cloop-2.05~20060829/debian/changelog
--- cloop-2.05~20060829/debian/changelog2006-12-04 00:09:57.0 
+0100
+++ cloop-2.05~20060829/debian/changelog2008-01-12 12:58:06.0 
+0100
@@ -1,3 +1,14 @@
+cloop (2.05~20060829-1.1) unstable; urgency=low
+
+  * Non-maintainer upload.
+  * Fix compilation with newer kernels. (Closes: #453851)
+- Fix a call to invalidate_bdev and do not specify a second parameter.
+- bio_endio does not need a size anymore.
+- unregister_blockdev now calls printk on errors by itself, and returns
+  void now.
+
+ -- Philipp Kern [EMAIL PROTECTED]  Sat, 12 Jan 2008 12:36:56 +0100
+
 cloop (2.05~20060829-1) unstable; urgency=low
 
   * Merged with Klaus' unreleased version 2.05, compiles with  2.6.18.1.


signature.asc
Description: Digital signature


Bug#453851: cloop-src: make module - invalidate_bdev function

2007-12-01 Thread Herbert P Fortes Neto
Package: cloop-src
Version: 2.05~20060829-1
Severity: grave
Justification: renders package unusable


 Hi,

 i tried to build the cloop module and received this error:

 /usr/src/modules/cloop/compressed_loop.c:628: error: too many arguments
 to function invalidate_bdev

 so i checked and changed this line:
 -invalidate_bdev(bdev, 0);
 +invalidate_bdev(bdev);

 and now i have the module load.d


  []
  Herbert
 
 -- System Information:
Debian Release: lenny/sid
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)

Kernel: Linux 2.6.22-3-k7 (SMP w/1 CPU core)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/bash

Versions of packages cloop-src depends on:
ii  bzip2 1.0.3-7high-quality block-sorting file co
ii  debhelper 5.0.61 helper programs for debian/rules
ii  module-assistant  0.10.11tool to make module package creati

cloop-src recommends no packages.

-- no debconf information


-- 
Herbert Parentes Fortes Neto (hpfn)
Linux user number 416100
0x9834F79E -- http://pgp.mit.edu/



pgpjF6OMNlEhn.pgp
Description: PGP signature