v170330 driver with Fedora Kernel 4.11.3 compile fails.
Posted: Sat Jun 10, 2017 11:16 pm
Trying to compile drivers with Fedora kernel 4.11.3-202.fc25.x86_64 fails.
First with:
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_workaround':
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/saa7146_vbi.c:117:6: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]
if(signal_pending(current)) {
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Fixed this by adding :
#include <linux/sched/signal.h>
to linux/include/media/v4l2-common.h & ./linux/drivers/media/rc/lirc_dev.c
Then hit the following:
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/videobuf-dma-sg.c:444:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.fault = videobuf_vm_fault,
^~~~~~~~~~~~~~~~~
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/videobuf-dma-sg.c:444:11: note: (near initialization for 'videobuf_vm_ops.fault')
I have not found the solution to this yet.
First with:
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/saa7146_vbi.c: In function 'vbi_workaround':
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/saa7146_vbi.c:117:6: error: implicit declaration of function 'signal_pending' [-Werror=implicit-function-declaration]
if(signal_pending(current)) {
^~~~~~~~~~~~~~
cc1: some warnings being treated as errors
Fixed this by adding :
#include <linux/sched/signal.h>
to linux/include/media/v4l2-common.h & ./linux/drivers/media/rc/lirc_dev.c
Then hit the following:
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/videobuf-dma-sg.c:444:11: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.fault = videobuf_vm_fault,
^~~~~~~~~~~~~~~~~
/harvs/tmp/TBS/BUILD_4.11.3-202/linux-tbs-drivers/v4l/videobuf-dma-sg.c:444:11: note: (near initialization for 'videobuf_vm_ops.fault')
I have not found the solution to this yet.