Public bug reported:
While building for kernel 7.0, the following error prevents a successful
compile.
=================================================================================
# command: make -j16 KERNELRELEASE=7.0.0-6-generic -C
/lib/modules/7.0.0-6-generic/build M=/var/lib/dkms/vhba/20250329/build
make: Entering directory '/usr/src/linux-headers-7.0.0-6-generic'
make[1]: Entering directory '/var/lib/dkms/vhba/20250329/build'
warning: the compiler differs from the one used to build the kernel
The kernel was built by: x86_64-linux-gnu-gcc (Ubuntu 15.2.0-15ubuntu1) 15.2.0
You are using: gcc (Ubuntu 15.2.0-12ubuntu1) 15.2.0
warning: pahole version differs from the one used to build the kernel
The kernel was built with: 130
You are using: 0
CC [M] vhba.o
vhba.c:532:21: error: initialization of ‘enum scsi_qc_status (*)(struct
Scsi_Host *, struct scsi_cmnd *)’ from incompatible pointer type ‘int
(*)(struct Scsi_Host *, struct scsi_cmnd *)’ [-Wincompatible-pointer-types]
532 | .queuecommand = vhba_queuecommand,
| ^~~~~~~~~~~~~~~~~
vhba.c:532:21: note: (near initialization for ‘vhba_template.queuecommand’)
vhba.c:474:12: note: ‘vhba_queuecommand’ declared here
474 | static int vhba_queuecommand (struct Scsi_Host *shost, struct scsi_cmnd
*cmd)
| ^~~~~~~~~~~~~~~~~
make[3]: ***
[/usr/src/linux-headers-7.0.0-6-generic/scripts/Makefile.build:289: vhba.o]
Error 1
make[2]: *** [/usr/src/linux-headers-7.0.0-6-generic/Makefile:2106: .] Error 2
make[1]: *** [/usr/src/linux-headers-7.0.0-6-generic/Makefile:248: __sub-make]
Error 2
make[1]: Leaving directory '/var/lib/dkms/vhba/20250329/build'
make: *** [Makefile:248: __sub-make] Error 2
make: Leaving directory '/usr/src/linux-headers-7.0.0-6-generic'
# exit code: 2
# elapsed time: 00:00:00
----------------------------------------------------------------
=========================================================================================
** Affects: vhba-module (Ubuntu)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: In Progress
** Affects: vhba-module (Ubuntu Resolute)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: In Progress
** Changed in: vhba-module (Ubuntu)
Assignee: (unassigned) => Alessio Faina (alessiofaina)
** Changed in: vhba-module (Ubuntu)
Importance: Undecided => Medium
** Changed in: vhba-module (Ubuntu)
Status: New => In Progress
** Also affects: vhba-module (Ubuntu Resolute)
Importance: Medium
Assignee: Alessio Faina (alessiofaina)
Status: 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/2144566
Title:
vhba-dkms fails to build against Kernel 7.0
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/vhba-module/+bug/2144566/+subscriptions
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs