It seems that shiftfs does not compile for kernel version 5.11.2
I suspect it also doesn’t work for the whole 5.11 branch, but I haven’t tested that yet.
Everyone who uses shiftfs on mainline kernels, should stay at (or go back to) the 5.10 branch for now.
Build Log:
Note: Includes some german phrases, a translated version is below.
DKMS make.log for shiftfs-dkms-20200804 for kernel 5.11.2-arch1-1 (x86_64)
So 28. Feb 17:25:33 CET 2021
make: Verzeichnis „/usr/lib/modules/5.11.2-arch1-1/build“ wird betreten
CC [M] /var/lib/dkms/shiftfs-dkms/20200804/build/shiftfs.o
/var/lib/dkms/shiftfs-dkms/20200804/build/shiftfs.c: In Funktion »shiftfs_btrfs_ioctl_fd_restore«:
/var/lib/dkms/shiftfs-dkms/20200804/build/shiftfs.c:1423:2: Fehler: Implizite Deklaration der Funktion »__close_fd«; meinten Sie »close_fd«? [-Werror=implicit-function-declaration]
1423 | __close_fd(current->files, fd);
| ^~~~~~~~~~
| close_fd
cc1: Einige Warnungen werden als Fehler behandelt
make[1]: *** [scripts/Makefile.build:279: /var/lib/dkms/shiftfs-dkms/20200804/build/shiftfs.o] Fehler 1
make: *** [Makefile:1800: /var/lib/dkms/shiftfs-dkms/20200804/build] Fehler 2
make: Verzeichnis „/usr/lib/modules/5.11.2-arch1-1/build“ wird verlassen
Translated version:
DKMS make.log for shiftfs-dkms-20200804 for kernel 5.11.2-arch1-1 (x86_64)
So 28. Feb 17:25:33 CET 2021
make: enter folder „/usr/lib/modules/5.11.2-arch1-1/build“
CC [M] /var/lib/dkms/shiftfs-dkms/20200804/build/shiftfs.o
/var/lib/dkms/shiftfs-dkms/20200804/build/shiftfs.c: In function »shiftfs_btrfs_ioctl_fd_restore«:
/var/lib/dkms/shiftfs-dkms/20200804/build/shiftfs.c:1423:2: error: implicit declaration of function »__close_fd«; did you mean »close_fd«? [-Werror=implicit-function-declaration]
1423 | __close_fd(current->files, fd);
| ^~~~~~~~~~
| close_fd
cc1: some warnings are treated as errors
make[1]: *** [scripts/Makefile.build:279: /var/lib/dkms/shiftfs-dkms/20200804/build/shiftfs.o] Fehler 1
make: *** [Makefile:1800: /var/lib/dkms/shiftfs-dkms/20200804/build] error 2
make: leave folder: „/usr/lib/modules/5.11.2-arch1-1/build“
I also track the issue for my dkms scripts on GitHub: