make
make -C /lib/modules/4.14.13-300.fc27.x86_64/build M=/root/bcwc_pcie modules
make[1]: Entering directory '/usr/src/kernels/4.14.13-300.fc27.x86_64'
arch/x86/Makefile:244: CONFIG_RETPOLINE=y, but not supported by the compiler. Toolchain update recommended.
CC [M] /root/bcwc_pcie/fthd_ddr.o
CC [M] /root/bcwc_pcie/fthd_hw.o
CC [M] /root/bcwc_pcie/fthd_drv.o
CC [M] /root/bcwc_pcie/fthd_ringbuf.o
CC [M] /root/bcwc_pcie/fthd_isp.o
CC [M] /root/bcwc_pcie/fthd_v4l2.o
/root/bcwc_pcie/fthd_v4l2.c:298:28: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types]
.queue_setup = fthd_buffer_queue_setup,
^~~~~~~
/root/bcwc_pcie/fthd_v4l2.c:298:28: note: (near initialization for ‘vb2_queue_ops.queue_setup’)
/root/bcwc_pcie/fthd_v4l2.c: In function ‘fthd_v4l2_register’:
/root/bcwc_pcie/fthd_v4l2.c:714:24: error: implicit declaration of function ‘vb2_dma_sg_init_ctx’; did you mean ‘vb2_dma_sg_plane_desc’? [-Werror=implicit-function-declaration]
dev_priv->alloc_ctx = vb2_dma_sg_init_ctx(&dev_priv->pdev->dev);
^~~~~~~
vb2_dma_sg_plane_desc
/root/bcwc_pcie/fthd_v4l2.c:714:22: warning: assignment makes pointer from integer without a cast [-Wint-conversion]
dev_priv->alloc_ctx = vb2_dma_sg_init_ctx(&dev_priv->pdev->dev);
^
/root/bcwc_pcie/fthd_v4l2.c: In function ‘fthd_v4l2_unregister’:
/root/bcwc_pcie/fthd_v4l2.c:749:2: error: implicit declaration of function ‘vb2_dma_sg_cleanup_ctx’; did you mean ‘vb2_dma_sg_plane_desc’? [-Werror=implicit-function-declaration]
vb2_dma_sg_cleanup_ctx(dev_priv->alloc_ctx);
^~~~~~
vb2_dma_sg_plane_desc
cc1: some warnings being treated as errors
make[2]: [scripts/Makefile.build:315: /root/bcwc_pcie/fthd_v4l2.o] Error 1
make[1]: [Makefile:1511: module/root/bcwc_pcie] Error 2
make[1]: Leaving directory '/usr/src/kernels/4.14.13-300.fc27.x86_64'
make: *** [Makefile:12: all] Error 2
Kernel-devel package is installed.