]> git.proxmox.com Git - mirror_ubuntu-artful-kernel.git/commitdiff
UBUNTU: SAUCE: aufs -- Add missing argument to loop_switch() call
authorSeth Forshee <seth.forshee@canonical.com>
Tue, 8 Aug 2017 19:26:51 +0000 (14:26 -0500)
committerSeth Forshee <seth.forshee@canonical.com>
Tue, 5 Sep 2017 12:34:31 +0000 (07:34 -0500)
The aufs patches add an argument to loop_switch(), but an
additional call to this function was added since the patches were
last updated. This causes a FTBFS:

  drivers/block/loop.c: In function 'loop_flush':
  drivers/block/loop.c:624:9: error: too few arguments to function 'loop_switch'
    return loop_switch(lo, NULL);
           ^~~~~~~~~~~
  drivers/block/loop.c:596:12: note: declared here
   static int loop_switch(struct loop_device *lo, struct file *file,
              ^~~~~~~~~~~

This new call is meant only to induce a flush of queued bios and
does not use the file arguments at all, so just pass NULL.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
drivers/block/loop.c

index edea554368ea3b8ea98a3a6a467807cf7d559974..af32e4735bb6df46e71a72565e45eb00ced04be1 100644 (file)
@@ -614,7 +614,7 @@ static int loop_flush(struct loop_device *lo)
        /* loop not yet configured, no running thread, nothing to flush */
        if (lo->lo_state != Lo_bound)
                return 0;
-       return loop_switch(lo, NULL);
+       return loop_switch(lo, NULL, NULL);
 }
 
 static struct file *loop_real_file(struct file *file)