I have encountered same error during kernel update (5.5.15 -> 5.6.13). Latest version of 5.5.* compiles correctly (5.5.19). Looks like some breaking changes have been made within all 5.6.* kernel versions. Here are logs:
DKMS make.log for bbswitch-0.8 for kernel 5.6.13-050613-generic (x86_64) Sat May 16 07:11:26 CEST 2020 make -C /lib/modules/5.6.13-050613-generic/build M="$(pwd)" modules make[1]: Entering directory '/usr/src/linux-headers-5.6.13-050613-generic' CC [M] /var/lib/dkms/bbswitch/0.8/build/bbswitch.o /var/lib/dkms/bbswitch/0.8/build/bbswitch.c: In function ‘bbswitch_init’: /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:460:63: error: passing argument 4 of ‘proc_create’ from incompatible pointer type [-Werror=incompatible-pointer-types] 460 | acpi_entry = proc_create("bbswitch", 0664, acpi_root_dir, &bbswitch_fops); | ^~~~~~~~~~~~~~ | | | struct file_operations * In file included from ./include/acpi/acpi_bus.h:83, from ./include/linux/acpi.h:32, from /var/lib/dkms/bbswitch/0.8/build/bbswitch.c:32: ./include/linux/proc_fs.h:64:24: note: expected ‘const struct proc_ops *’ but argument is of type ‘struct file_operations *’ 64 | struct proc_dir_entry *proc_create(const char *name, umode_t mode, struct proc_dir_entry *parent, const struct proc_ops *proc_ops); | ^~~~~~~~~~~ cc1: some warnings being treated as errors scripts/Makefile.build:267: recipe for target '/var/lib/dkms/bbswitch/0.8/build/bbswitch.o' failed make[2]: *** [/var/lib/dkms/bbswitch/0.8/build/bbswitch.o] Error 1 Makefile:1683: recipe for target '/var/lib/dkms/bbswitch/0.8/build' failed make[1]: *** [/var/lib/dkms/bbswitch/0.8/build] Error 2 make[1]: Leaving directory '/usr/src/linux-headers-5.6.13-050613-generic' Makefile:13: recipe for target 'default' failed make: *** [default] Error 2 -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1878603 Title: package bbswitch-dkms 0.8-8 failed to install/upgrade: 已安装 bbswitch- dkms 软件包 post-installation 脚本 子进程返回错误状态 10 To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/bbswitch/+bug/1878603/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs