h0tw1r3 / dvbhdhomerun

hdhomerun dvb driver for linux with working debian packaging!
GNU General Public License v2.0
30 stars 10 forks source link

error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] #8

Closed rolfep closed 4 years ago

rolfep commented 7 years ago

Hi. I've used your software 2 or 3 years for my, now old, HDTC-2US to schedule recordings of ATSC programs with kaffeine, thanks. Last year, newer kernels in Mageia, ROSA, OpenMandriva, and any distro I tried all failed the kernel module build in what looks to me the same way.

The latest I have made to work is 4.6.7-nrj-desktop-1rosa-x86_64 on ROSA. 4.9.30-desktop-1.mga6 on my installation of MGA6 RC fails with the same message, below, as all the failures. I installed 4.4.68-tmb-desktop-1.mga5 along with the kernel-devel package and it works. That makes me believe it's something in the kernel, as none of the other software is changed.

I followed some advice here to add -wno-error=incompatible-pointer-types and that failed differently. Maybe I should attach that output as a text file, as there's more to it, in case it is of interest. Thanks.

`[rolf@z170i kernel]$ uname -r 4.9.30-desktop-1.mga6

[rolf@z170i kernel]$ make Downloading kernel header dependencies... ######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% make -C /lib/modules/uname -r/build M=/home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel modules make[1]: Entering directory '/usr/src/kernel-4.9.30-desktop-1.mga6' CC [M] /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_init.o CC [M] /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_data.o CC [M] /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_control.o In file included from /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_control.c:30:0: /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_control.c: In function ‘dvb_hdhomerun_control_init’: ./include/linux/kfifo.h:333:1: warning: ignoring return value of ‘kfifo_int_must_check_helper’, declared with attribute warn_unused_result [-Wunused-result] kfifo_int_must_check_helper( \ ^ /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_control.c:272:2: note: in expansion of macro ‘kfifo_alloc’ kfifo_alloc(&control_fifo_user, control_bufsize, GFP_KERNEL); ^ ./include/linux/kfifo.h:333:1: warning: ignoring return value of ‘kfifo_int_must_check_helper’, declared with attribute warn_unused_result [-Wunused-result] kfifo_int_must_check_helper( \ ^ /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_control.c:282:2: note: in expansion of macro ‘kfifo_alloc’ kfifo_alloc(&control_fifo_kernel, control_bufsize, GFP_KERNEL); ^ LD [M] /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun.o CC [M] /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.o /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.c:283:25: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_frontend = dvb_hdhomerun_fe_get_frontend, ^ /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.c:283:25: note: (near initialization for ‘dvb_hdhomerun_fe_ofdm_ops.get_frontend’) /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.c:345:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_frontend = dvb_hdhomerun_fe_get_frontend, ^ /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.c:345:18: note: (near initialization for ‘dvb_hdhomerun_fe_qam_ops.get_frontend’) /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.c:408:18: error: initialization from incompatible pointer type [-Werror=incompatible-pointer-types] .get_frontend = dvb_hdhomerun_fe_get_frontend, ^ /home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.c:408:18: note: (near initialization for ‘dvb_hdhomerun_fe_atsc_ops.get_frontend’) cc1: some warnings being treated as errors scripts/Makefile.build:299: recipe for target '/home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.o' failed make[2]: [/home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel/dvb_hdhomerun_fe.o] Error 1 Makefile:1483: recipe for target 'module/home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel' failed make[1]: [module/home/rolf/git/h0tw1r3-dvbhdhomerun/dvbhdhomerun/kernel] Error 2 make[1]: Leaving directory '/usr/src/kernel-4.9.30-desktop-1.mga6' Makefile:27: recipe for target 'dvb_hdhomerun' failed make: *** [dvb_hdhomerun] Error 2 [rolf@z170i kernel]$ `

20170603-modules-make-fail.txt