Cannot compile in kernel 5.x

https://www.merging.com/products/alsa_r ... s67_driver
Forum rules
The Merging Technologies team cannot be held responsible for support queries logged on the public forums. If a support query is logged here and only here, it may not be found and dealt with by the appropriate team.
If you need assistance please contact tech support.
hifi25nl
Posts: 7
Joined: Wed Feb 27, 2019 10:52

Cannot compile in kernel 5.x

Postby hifi25nl » Tue Aug 06, 2019 12:16

Still does not compile on kernel 5.x

Code: Select all

[audiolinux@archlinux driver]$ make
make -C /lib/modules/5.2.0-rt1-8-rt-bfq/build/ M=/media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver modules
make[1]: Entering directory '/usr/lib/modules/5.2.0-rt1-8-rt-bfq/build'
  CC [M]  /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.o
In file included from ./include/linux/atomic.h:7,
                 from ./include/linux/jump_label.h:246,
                 from ./arch/x86/include/asm/string_64.h:6,
                 from ./arch/x86/include/asm/string.h:5,
                 from ./include/linux/string.h:20,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/MTAL_stdint.h:68,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.h:35,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.c:32:
./arch/x86/include/asm/atomic.h: In function ‘arch_atomic_try_cmpxchg’:
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
  200 |  return try_cmpxchg(&v->counter, old, new);
      |  ^~~~~~
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic.h:200:2: error: undefined named operand ‘new’
In file included from ./arch/x86/include/asm/atomic.h:262,
                 from ./include/linux/atomic.h:7,
                 from ./include/linux/jump_label.h:246,
                 from ./arch/x86/include/asm/string_64.h:6,
                 from ./arch/x86/include/asm/string.h:5,
                 from ./include/linux/string.h:20,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/MTAL_stdint.h:68,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.h:35,
                 from /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.c:32:
./arch/x86/include/asm/atomic64_64.h: In function ‘arch_atomic64_try_cmpxchg’:
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
  186 |  return try_cmpxchg(&v->counter, old, new);
      |  ^~~~~~
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
./arch/x86/include/asm/atomic64_64.h:186:2: error: undefined named operand ‘new’
make[2]: *** [scripts/Makefile.build:279: /media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver/c_wrapper_lib.o] Error 1
make[1]: *** [Makefile:1595: _module_/media/linux/Downloads/Temp/ravenna/ravenna-alsa-lkm/driver] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.2.0-rt1-8-rt-bfq/build'
make: *** [Makefile:14: modules] Error 2