stoth68000 / sc0710

Linux driver for the Elgato 4k60 Pro Mk.2
Other
137 stars 18 forks source link

Failure to compile with kernel 6.5.0 #20

Open reinauer opened 10 months ago

reinauer commented 10 months ago

Running Ubuntu 23.10 I get:

make
make -C /lib/modules/6.5.0-14-generic/build M=/home/stepan/git/sc0710 modules
make[1]: Entering directory '/usr/src/linux-headers-6.5.0-14-generic'
warning: the compiler differs from the one used to build the kernel
  The kernel was built by: x86_64-linux-gnu-gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
  You are using:           gcc-13 (Ubuntu 13.2.0-4ubuntu3) 13.2.0
  CC [M]  /home/stepan/git/sc0710/sc0710-cards.o
  CC [M]  /home/stepan/git/sc0710/sc0710-core.o
  CC [M]  /home/stepan/git/sc0710/sc0710-i2c.o
/home/stepan/git/sc0710/sc0710-i2c.c: In function ‘sc0710_i2c_read_hdmi_status’:
/home/stepan/git/sc0710/sc0710-i2c.c:177:13: warning: unused variable ‘i’ [-Wunused-variable]
  177 |         int i;
      |             ^
  CC [M]  /home/stepan/git/sc0710/sc0710-dma-channel.o
  CC [M]  /home/stepan/git/sc0710/sc0710-dma-channels.o
  CC [M]  /home/stepan/git/sc0710/sc0710-dma-chains.o
  CC [M]  /home/stepan/git/sc0710/sc0710-dma-chain.o
  CC [M]  /home/stepan/git/sc0710/sc0710-things-per-second.o
  CC [M]  /home/stepan/git/sc0710/sc0710-video.o
  CC [M]  /home/stepan/git/sc0710/sc0710-audio.o
  LD [M]  /home/stepan/git/sc0710/sc0710.o
  MODPOST /home/stepan/git/sc0710/Module.symvers
ERROR: modpost: "videobuf_to_vmalloc" [/home/stepan/git/sc0710/sc0710.ko] undefined!
ERROR: modpost: "videobuf_vmalloc_free" [/home/stepan/git/sc0710/sc0710.ko] undefined!
ERROR: modpost: "videobuf_queue_vmalloc_init" [/home/stepan/git/sc0710/sc0710.ko] undefined!
make[3]: *** [scripts/Makefile.modpost:144: /home/stepan/git/sc0710/Module.symvers] Error 1
make[2]: *** [/usr/src/linux-headers-6.5.0-14-generic/Makefile:1989: modpost] Error 2
make[1]: *** [Makefile:234: __sub-make] Error 2
make[1]: Leaving directory '/usr/src/linux-headers-6.5.0-14-generic'
make: *** [Makefile:14: all] Error 2