]> git.proxmox.com Git - mirror_ubuntu-impish-kernel.git/commitdiff
UBUNTU: SAUCE: shiftfs -- Fix build errors from missing fiemap definitions
authorSeth Forshee <seth.forshee@canonical.com>
Mon, 15 Jun 2020 20:16:11 +0000 (15:16 -0500)
committerAndrea Righi <andrea.righi@canonical.com>
Mon, 28 Jun 2021 06:03:52 +0000 (08:03 +0200)
shiftfs FTBFS with 5.8-rc1:

 /tmp/kernel-sforshee-6727637082e4-45IQ/build/fs/shiftfs.c: In function 'shiftfs_fiemap':
 /tmp/kernel-sforshee-6727637082e4-45IQ/build/fs/shiftfs.c:731:13: error: dereferencing pointer to incomplete type 'struct fiemap_extent_info'
 /tmp/kernel-sforshee-6727637082e4-45IQ/build/fs/shiftfs.c:731:26: error: 'FIEMAP_FLAG_SYNC' undeclared (first use in this function); did you mean 'FS_XFLAG_SYNC'?

It seems that shiftfs was getting linux/fiemap.h included
indirectly before. Include it directly.

Signed-off-by: Seth Forshee <seth.forshee@canonical.com>
fs/shiftfs.c

index 5d88193b41db9dc1301c67c75a5c5e0b6d92861c..f9a5c94a97933be7a952970ed4831b6c37237b6c 100644 (file)
@@ -20,6 +20,7 @@
 #include <linux/posix_acl.h>
 #include <linux/posix_acl_xattr.h>
 #include <linux/uio.h>
+#include <linux/fiemap.h>
 
 struct shiftfs_super_info {
        struct vfsmount *mnt;