Make Error Kernel 5.9.1
Souravgoswami opened this issue · 0 comments
Souravgoswami commented
Hi, I am using the Xanmod kernel:
$ cat /proc/version
Linux version 5.9.1-xanmod1-1 (souravgoswami@archlinux) (gcc (GCC) 10.2.0, GNU ld (GNU Binutils) 2.35.1) #1 SMP PREEMPT Wed, 21 Oct 2020 01:11:20 +0000
It should build though. But I get:
$ make
make -C /lib/modules/`uname -r`/build M=$PWD
make[1]: Entering directory '/usr/lib/modules/5.9.1-xanmod1-1/build'
AR /ramdisk/mt7601u/built-in.a
CC [M] /ramdisk/mt7601u/usb.o
CC [M] /ramdisk/mt7601u/init.o
CC [M] /ramdisk/mt7601u/main.o
CC [M] /ramdisk/mt7601u/mcu.o
CC [M] /ramdisk/mt7601u/trace.o
CC [M] /ramdisk/mt7601u/dma.o
CC [M] /ramdisk/mt7601u/core.o
CC [M] /ramdisk/mt7601u/eeprom.o
/ramdisk/mt7601u/eeprom.c: In function ‘mt7601u_efuse_physical_size_check’:
/ramdisk/mt7601u/eeprom.c:77:2: error: ISO C90 forbids array ‘data’ whose size cannot be evaluated [-Werror=vla]
77 | u8 data[map_reads * 16];
| ^~
cc1: all warnings being treated as errors
make[2]: *** [scripts/Makefile.build:283: /ramdisk/mt7601u/eeprom.o] Error 1
make[1]: *** [Makefile:1787: /ramdisk/mt7601u] Error 2
make[1]: Leaving directory '/usr/lib/modules/5.9.1-xanmod1-1/build'
make: *** [Makefile:8: default] Error 2