Public bug reported:
As the new Kernel 7.0 has been released, the support for the old fs
mount API disappeared, preventing the module from being built on kernel
7.0+
e.g. of the failed compilation
```
inode.c: In function ‘apfs_update_time’:
inode.c:2131:9: error: too few arguments to function ‘generic_update_time’;
expected 3, have 2
2131 | generic_update_time(inode, flags);
| ^~~~~~~~~~~~~~~~~~~
In file included from
/usr/src/linux-headers-7.0.0-1-generic/include/linux/highmem.h:5,
from
/usr/src/linux-headers-7.0.0-1-generic/include/linux/bvec.h:10,
from
/usr/src/linux-headers-7.0.0-1-generic/include/linux/blk_types.h:10,
from
/usr/src/linux-headers-7.0.0-1-generic/include/linux/buffer_head.h:12,
from inode.c:7:
/usr/src/linux-headers-7.0.0-1-generic/include/linux/fs.h:2411:5: note:
declared here
2411 | int generic_update_time(struct inode *inode, enum fs_update_time type,
| ^~~~~~~~~~~~~~~~~~~
make[3]: ***
[/usr/src/linux-headers-7.0.0-1-generic/scripts/Makefile.build:289: inode.o]
Error 1
make[3]: *** Waiting for unfinished jobs....
super.c:1190:10: error: ‘const struct super_operations’ has no member named
‘remount_fs’
1190 | .remount_fs = apfs_remount,
| ^~~~~~~~~~
super.c:1190:27: error: initialization of ‘void (*)(struct super_block *)’ from
incompatible pointer type ‘int (*)(struct super_block *, int *, char *)’
[-Wincompatible-pointer-types]
1190 | .remount_fs = apfs_remount,
| ^~~~~~~~~~~~
super.c:1190:27: note: (near initialization for ‘apfs_sops.umount_begin’)
super.c:1161:12: note: ‘apfs_remount’ declared here
1161 | static int apfs_remount(struct super_block *sb, int *flags, char *data)
| ^~~~~~~~~~~~
super.c:2097:10: error: ‘struct file_system_type’ has no member named ‘mount’
2097 | .mount = apfs_mount,
| ^~~~~
super.c:2097:27: error: initialization of ‘int’ from ‘struct dentry *
(*)(struct file_system_type *, int, const char *, void *)’ makes integer from
pointer without a cast [-Wint-conversion]
2097 | .mount = apfs_mount,
| ^~~~~~~~~~
super.c:2097:27: note: (near initialization for ‘apfs_fs_type.fs_flags’)
super.c:2097:27: error: initializer element is not computable at load time
super.c:2097:27: note: (near initialization for ‘apfs_fs_type.fs_flags’)
```
** Affects: linux-apfs-rw (Ubuntu)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: In Progress
** Affects: linux-apfs-rw (Ubuntu Resolute)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: In Progress
** Also affects: linux-apfs-rw (Ubuntu Resolute)
Importance: Undecided
Status: New
** Changed in: linux-apfs-rw (Ubuntu Resolute)
Assignee: (unassigned) => Alessio Faina (alessiofaina)
** Changed in: linux-apfs-rw (Ubuntu Resolute)
Importance: Undecided => Medium
** Changed in: linux-apfs-rw (Ubuntu Resolute)
Status: New => In Progress
--
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
https://bugs.launchpad.net/bugs/2142837
Title:
Add support for kernel 7.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/linux-apfs-rw/+bug/2142837/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs