[linux] 01/01: linux-source: Fix build failure for non-modular configurations

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sat Jun 18 02:33:41 UTC 2016


This is an automated email from the git hooks/post-receive script.

benh pushed a commit to branch jessie
in repository linux.

commit ea193dd48ed07775566cee6eac60478f997c87e4
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Fri Jun 17 23:41:37 2016 +0100

    linux-source: Fix build failure for non-modular configurations
    
    Fixes bug #827561, reported in wheezy but not (yet) affecting jessie.
---
 debian/patches/debian/fs-fix-abi-change-for-aufs-f_setfl-fix.patch | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

diff --git a/debian/patches/debian/fs-fix-abi-change-for-aufs-f_setfl-fix.patch b/debian/patches/debian/fs-fix-abi-change-for-aufs-f_setfl-fix.patch
index 257ad25..ec7003f 100644
--- a/debian/patches/debian/fs-fix-abi-change-for-aufs-f_setfl-fix.patch
+++ b/debian/patches/debian/fs-fix-abi-change-for-aufs-f_setfl-fix.patch
@@ -19,7 +19,7 @@ version of the module that implements the file_operations.
 ---
 --- a/fs/fcntl.c
 +++ b/fs/fcntl.c
-@@ -59,7 +59,16 @@ int setfl(int fd, struct file * filp, un
+@@ -59,8 +59,20 @@ int setfl(int fd, struct file * filp, un
  
  	if (filp->f_op->check_flags)
  		error = filp->f_op->check_flags(arg);
@@ -31,12 +31,16 @@ version of the module that implements the file_operations.
 +	 * Since only aufs will implement it, check that the file ops
 +	 * are implemented by a version of aufs that does.  (Ugh.)
 +	 */
++#ifdef CONFIG_AUFS_FS_MODULE
 +	if (!error && filp->f_op->owner &&
 +	    !strcmp(filp->f_op->owner->name, "aufs") &&
 +	    strstr(filp->f_op->owner->version, "+setfl"))
  		error = filp->f_op->setfl(filp, arg);
++#endif
++
  	if (error)
  		return error;
+ 
 --- a/include/linux/fs.h
 +++ b/include/linux/fs.h
 @@ -1503,7 +1503,6 @@ struct file_operations {

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list