Documentation/.renames.txt: warning: ignored by one of the .gitignore files Documentation/.renames.txt: warning: ignored by one of the .gitignore files In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/util.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/util.o] Error 1 make[8]: *** Waiting for unfinished jobs.... In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/mmio.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mmio.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/trace.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/trace.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../drivers/net/wireless/mediatek/mt76/mac80211.c:5: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../arch/x86/include/asm/current.h:5, from ../include/linux/sched.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mac80211.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/debugfs.c:5: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/debugfs.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/agg-rx.c:5: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/agg-rx.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../include/linux/smp.h:13, from ../include/linux/lockdep.h:14, from ../include/linux/mutex.h:17, from ../include/linux/kernfs.h:11, from ../include/linux/sysfs.h:16, from ../include/linux/kobject.h:20, from ../include/linux/of.h:18, from ../drivers/net/wireless/mediatek/mt76/eeprom.c:5: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/bits.h:30, from ../include/linux/bitops.h:6, from ../include/linux/of.h:15: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/eeprom.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/mcu.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/wed.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/wed.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/tx.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/tx.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/scan.c:5: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/scan.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../include/linux/dma-mapping.h:5, from ../drivers/net/wireless/mediatek/mt76/dma.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/dma.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/pci.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/pci.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/channel.c:5: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/channel.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/random.h:7, from ../drivers/net/wireless/mediatek/mt76/testmode.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/static_call_types.h:7, from ../arch/x86/include/asm/bug.h:141, from ../include/linux/bug.h:5, from ../include/linux/random.h:6: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/testmode.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/iopoll.h:9, from ../drivers/net/wireless/mediatek/mt76/sdio.c:11: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/sdio.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/usb.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/usb.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/usb_trace.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/usb_trace.o] Error 1 In file included from ../include/linux/kfifo.h:39, from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, from ../drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.h:10, from ../drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c:9: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../arch/x86/include/uapi/asm/swab.h:6, from ../include/uapi/linux/swab.h:8, from ../include/linux/swab.h:5, from ../include/uapi/linux/byteorder/little_endian.h:14, from ../include/linux/byteorder/little_endian.h:5, from ../arch/x86/include/uapi/asm/byteorder.h:5, from ../include/linux/unaligned.h:10, from ../drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c:7: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/npu.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/npu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c:7: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x02_phy.c:7: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_phy.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/sdio_txrx.c:9: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/sdio_txrx.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt76x02_util.c:7: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_util.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c:7: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_txrx.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/fs_dirent.h:5, from ../include/linux/fs/super_types.h:5, from ../include/linux/fs/super.h:5, from ../include/linux/fs.h:5, from ../include/linux/debugfs.h:15, from ../drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/export.h:5, from ../include/linux/linkage.h:7, from ../arch/x86/include/asm/cache.h:5, from ../include/vdso/cache.h:5, from ../include/linux/cache.h:6, from ../include/linux/time.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c:7: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_mmio.o] Error 1 In file included from ../include/linux/kfifo.h:39, from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, from ../drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_dfs.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt76x02_trace.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_trace.o] Error 1 In file included from ../include/linux/kfifo.h:39, from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, from ../drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c:8: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_beacon.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76_connac.h:7, from ../drivers/net/wireless/mediatek/mt76/mt76_connac3_mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76_connac3_mac.o] Error 1 In file included from ../include/linux/kfifo.h:39, from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, from ../drivers/net/wireless/mediatek/mt76/mt76x02_usb.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt792x_core.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_core.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt792x_debugfs.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_debugfs.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt792x_trace.c:6: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_trace.o] Error 1 In file included from ../include/linux/kfifo.h:39, from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, from ../drivers/net/wireless/mediatek/mt76/mt76x02_mac.c:7: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_mac.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/mmzone.h:8, from ../include/linux/gfp.h:7, from ../include/linux/slab.h:17, from ../include/linux/resource_ext.h:11, from ../include/linux/acpi.h:14, from ../drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/cleanup.h:5, from ../include/linux/acpi.h:11: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c:5: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.o] Error 1 make[9]: *** Waiting for unfinished jobs.... In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x0/usb.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/usb.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7603/soc.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/soc.o] Error 1 make[9]: *** Waiting for unfinished jobs.... In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76x2/mac.c:7: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/mac.o] Error 1 make[9]: *** Waiting for unfinished jobs.... In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt792x_dma.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_dma.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x0/pci.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/pci.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c:5: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7603/main.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/main.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7915/pci.c:7: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/pci.o] Error 1 make[9]: *** Waiting for unfinished jobs.... In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c:7: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7603/pci.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/pci.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h:12, from ../drivers/net/wireless/mediatek/mt76/mt76x0/init.c:9: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/bitfield.h:10, from ../drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h:11: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/init.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt76x0/main.c:8: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/main.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7996/pci.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/pci.o] Error 1 make[9]: *** Waiting for unfinished jobs.... In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76x2/phy.c:7: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/phy.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7603/core.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/core.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7603/dma.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/dma.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7615/main.c:10: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/main.o] Error 1 make[9]: *** Waiting for unfinished jobs.... In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7915/dma.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/dma.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt792x_mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_mac.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/mmzone.h:8, from ../include/linux/gfp.h:7, from ../include/linux/firmware.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/firmware.h:6: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/mcu.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c:8: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/mmzone.h:8, from ../include/linux/gfp.h:7, from ../include/linux/firmware.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/firmware.h:6: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/eeprom.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt792x_usb.c:7: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_usb.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76_connac.h:7, from ../drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76_connac_mac.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/regd.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/regd.o] Error 1 make[9]: *** Waiting for unfinished jobs.... In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../include/linux/smp.h:13, from ../include/linux/lockdep.h:14, from ../include/linux/mutex.h:17, from ../include/linux/kernfs.h:11, from ../include/linux/sysfs.h:16, from ../include/linux/kobject.h:20, from ../include/linux/of.h:18, from ../drivers/net/wireless/mediatek/mt76/mt7921/regd.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/bits.h:30, from ../include/linux/bitops.h:6, from ../include/linux/of.h:15: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/regd.o] Error 1 make[9]: *** Waiting for unfinished jobs.... In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76x2/init.c:7: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/init.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7996/init.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/init.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/delay.h:13, from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/asm-generic/div64.h:27, from ../arch/x86/include/asm/div64.h:100, from ../include/linux/math.h:6, from ../include/linux/delay.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../include/linux/devcoredump.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7921/mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/mac.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/mmzone.h:8, from ../include/linux/gfp.h:7, from ../include/linux/firmware.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7996/eeprom.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/firmware.h:6: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/eeprom.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/mmzone.h:8, from ../include/linux/gfp.h:7, from ../include/linux/firmware.h:8, from ../drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c:4: ../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/firmware.h:6: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x0/phy.c:9: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/phy.o] Error 1 make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt76x0] Error 2 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7915/init.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/init.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7915/main.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/main.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7615/init.c:10: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/init.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7603/init.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/init.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/fs_dirent.h:5, from ../include/linux/fs/super_types.h:5, from ../include/linux/fs/super.h:5, from ../include/linux/fs.h:5, from ../drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/export.h:5, from ../include/linux/linkage.h:7, from ../arch/x86/include/asm/cache.h:5, from ../include/vdso/cache.h:5, from ../include/linux/cache.h:6, from ../include/linux/time.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h:9, from ../drivers/net/wireless/mediatek/mt76/mt7996/main.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/main.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7925/main.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/main.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h:9, from ../drivers/net/wireless/mediatek/mt76/mt7996/dma.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/dma.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../include/linux/devcoredump.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7925/mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/mac.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../include/linux/smp.h:13, from ../include/linux/lockdep.h:14, from ../include/linux/mutex.h:17, from ../include/linux/kernfs.h:11, from ../include/linux/sysfs.h:16, from ../include/linux/kobject.h:20, from ../include/linux/of.h:18, from ../drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/bits.h:30, from ../include/linux/bitops.h:6, from ../include/linux/of.h:15: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/eeprom.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7921/main.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/main.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7921/init.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/init.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/fs_dirent.h:5, from ../include/linux/fs/super_types.h:5, from ../include/linux/fs/super.h:5, from ../include/linux/fs.h:5, from ../drivers/net/wireless/mediatek/mt76/mt7925/mcu.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/export.h:5, from ../include/linux/linkage.h:7, from ../arch/x86/include/asm/cache.h:5, from ../include/vdso/cache.h:5, from ../include/linux/cache.h:6, from ../include/linux/time.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/debugfs.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/debugfs.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7925/init.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/init.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/relay.h:15, from ../drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../arch/x86/include/asm/current.h:5, from ../include/linux/sched.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/debugfs.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7921/testmode.c:3: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/testmode.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/delay.h:13, from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/asm-generic/div64.h:27, from ../arch/x86/include/asm/div64.h:100, from ../include/linux/math.h:6, from ../include/linux/delay.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/mmzone.h:8, from ../include/linux/gfp.h:7, from ../include/linux/firmware.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7615/mcu.c:8: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/firmware.h:6: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7603/beacon.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/beacon.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/relay.h:15, from ../drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../arch/x86/include/asm/current.h:5, from ../include/linux/sched.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/debugfs.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/debugfs.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/debugfs.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7925/nan.c:7: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../arch/x86/include/uapi/asm/swab.h:6, from ../include/uapi/linux/swab.h:8, from ../include/linux/swab.h:5, from ../include/uapi/linux/byteorder/little_endian.h:14, from ../include/linux/byteorder/little_endian.h:5, from ../arch/x86/include/uapi/asm/byteorder.h:5, from ../drivers/net/wireless/mediatek/mt76/mt7925/nan.c:4: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/nan.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7996/npu.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/npu.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../include/linux/smp.h:13, from ../include/linux/lockdep.h:14, from ../include/linux/mutex.h:17, from ../include/linux/kernfs.h:11, from ../include/linux/sysfs.h:16, from ../include/linux/kobject.h:20, from ../include/linux/of.h:18, from ../drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c:8: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/bits.h:30, from ../include/linux/bitops.h:6, from ../include/linux/of.h:15: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/eeprom.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../include/linux/devcoredump.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7996/coredump.c:4: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/coredump.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7603/mac.c:3: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/mac.o] Error 1 make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7603] Error 2 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt76x2/usb.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/usb.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7921/pci_mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/pci_mac.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/module.h:13, from ../drivers/net/wireless/mediatek/mt76/mt7615/trace.c:6: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/module.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/trace.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7915/testmode.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/testmode.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/testmode.c:3: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/testmode.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/swait.h:7, from ../include/linux/completion.h:12, from ../drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7615/testmode.c:4: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/swait.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/testmode.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/iopoll.h:9, from ../drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2u.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../include/linux/devcoredump.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7915/coredump.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/coredump.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/delay.h:13, from ../drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/asm-generic/div64.h:27, from ../arch/x86/include/asm/div64.h:100, from ../include/linux/math.h:6, from ../include/linux/delay.h:12: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c:10: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7915/mmio.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/mmio.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2u.h:9, from ../drivers/net/wireless/mediatek/mt76/mt76x2/usb_main.c:6: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/usb_main.o] Error 1 make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt76x2] Error 2 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/swait.h:7, from ../include/linux/completion.h:12, from ../drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c:3: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/swait.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/debugfs.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c:4: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7921/sdio.c:6: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/sdio.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7996/mmio.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/mmio.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7615/pci.c:8: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/pci.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7921/pci.c:6: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/pci.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7615/mmio.c:4: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/mmio.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/swait.h:7, from ../include/linux/completion.h:12, from ../drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7615/dma.c:10: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/build_bug.h:5, from ../include/linux/container_of.h:5, from ../include/linux/list.h:5, from ../include/linux/swait.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/dma.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../include/linux/dma-mapping.h:5, from ../drivers/net/wireless/mediatek/mt76/mt7925/cached_cal.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/cached_cal.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7615/usb.c:9: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/usb.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7615/soc.c:8: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/soc.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../include/linux/spinlock.h:59, from ../include/linux/mmzone.h:8, from ../include/linux/gfp.h:7, from ../include/linux/firmware.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7996/mcu.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/firmware.h:6: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/pci_mcu.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/pci_mcu.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7925/pci.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/pci.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7921/usb.c:7: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/usb.o] Error 1 make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7921] Error 2 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7915/soc.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/soc.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7615/pci_init.c:10: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/pci_init.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/interrupt.h:6, from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, from ../drivers/net/wireless/mediatek/mt76/mt7925/pci_mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/pci_mac.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7915/mac.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/mac.o] Error 1 In file included from ../include/linux/kernel.h:16, from ../include/linux/skbuff.h:13, from ../include/linux/if_ether.h:19, from ../include/linux/etherdevice.h:20, from ../drivers/net/wireless/mediatek/mt76/mt7996/mac.c:6: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/mac.o] Error 1 make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7996] Error 2 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7925/usb.c:4: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/usb.o] Error 1 make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7925] Error 2 In file included from ../include/linux/kernel.h:16, from ../drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c:8: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/array_size.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.o] Error 1 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../include/linux/sched.h:13, from ../include/linux/ratelimit.h:6, from ../include/linux/dev_printk.h:16, from ../include/linux/device.h:15, from ../include/linux/devcoredump.h:8, from ../drivers/net/wireless/mediatek/mt76/mt7615/mac.c:10: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/dev_printk.h:14: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/mac.o] Error 1 make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7615] Error 2 In file included from ../include/linux/string.h:6, from ../include/linux/bitmap.h:13, from ../include/linux/cpumask.h:11, from ../arch/x86/include/asm/paravirt.h:19, from ../arch/x86/include/asm/irqflags.h:100, from ../include/linux/irqflags.h:18, from ../arch/x86/include/asm/special_insns.h:10, from ../arch/x86/include/asm/processor.h:25, from ../arch/x86/include/asm/timex.h:5, from ../include/linux/timex.h:67, from ../include/linux/time32.h:13, from ../include/linux/time.h:60, from ../include/linux/stat.h:19, from ../include/linux/fs_dirent.h:5, from ../include/linux/fs/super_types.h:5, from ../include/linux/fs/super.h:5, from ../include/linux/fs.h:5, from ../drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:4: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~ ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in ../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~ In file included from ../include/linux/export.h:5, from ../include/linux/linkage.h:7, from ../arch/x86/include/asm/cache.h:5, from ../include/vdso/cache.h:5, from ../include/linux/cache.h:6, from ../include/linux/time.h:5: ../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) | ^ ../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ | ^~~~~~~~~~~~~~~~~~~~~~~ ../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) | ^~~~~~~~~~~~~~~ ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) | ^~~~~~~~~~ make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/mcu.o] Error 1 make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7915] Error 2 make[7]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76] Error 2 make[6]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek] Error 2 make[5]: *** [../scripts/Makefile.build:572: drivers/net/wireless] Error 2 make[4]: *** [../scripts/Makefile.build:572: drivers/net] Error 2 make[4]: *** Waiting for unfinished jobs.... make[3]: *** [../scripts/Makefile.build:572: drivers] Error 2 make[2]: *** [/srv/nipa-poller-wireless/wireless-next/wt-0/Makefile:2244: .] Error 2 make[1]: *** [/srv/nipa-poller-wireless/wireless-next/wt-0/Makefile:248: __sub-make] Error 2 make: *** [Makefile:248: __sub-make] Error 2 New errors added --- /tmp/tmp.tOnglxYlc4 2026-12-02 03:29:38.544719302 -0500 +++ /tmp/tmp.ChsCvpyTp0 2026-12-02 03:29:47.485812316 -0500 @@ -1,0 +2,4681 @@ +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/util.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/util.o] Error 1 +make[8]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/mmio.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mmio.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/trace.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/trace.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../drivers/net/wireless/mediatek/mt76/mac80211.c:5: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../arch/x86/include/asm/current.h:5, + from ../include/linux/sched.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mac80211.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/debugfs.c:5: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/debugfs.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/agg-rx.c:5: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/agg-rx.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../include/linux/smp.h:13, + from ../include/linux/lockdep.h:14, + from ../include/linux/mutex.h:17, + from ../include/linux/kernfs.h:11, + from ../include/linux/sysfs.h:16, + from ../include/linux/kobject.h:20, + from ../include/linux/of.h:18, + from ../drivers/net/wireless/mediatek/mt76/eeprom.c:5: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/bits.h:30, + from ../include/linux/bitops.h:6, + from ../include/linux/of.h:15: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/eeprom.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/mcu.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/wed.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/wed.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/tx.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/tx.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/scan.c:5: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/scan.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../include/linux/dma-mapping.h:5, + from ../drivers/net/wireless/mediatek/mt76/dma.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/dma.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/pci.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/pci.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/channel.c:5: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/channel.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/random.h:7, + from ../drivers/net/wireless/mediatek/mt76/testmode.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/static_call_types.h:7, + from ../arch/x86/include/asm/bug.h:141, + from ../include/linux/bug.h:5, + from ../include/linux/random.h:6: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/testmode.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/iopoll.h:9, + from ../drivers/net/wireless/mediatek/mt76/sdio.c:11: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/sdio.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/usb.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/usb.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/usb_trace.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/usb_trace.o] Error 1 +In file included from ../include/linux/kfifo.h:39, + from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.h:10, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c:9: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../arch/x86/include/uapi/asm/swab.h:6, + from ../include/uapi/linux/swab.h:8, + from ../include/linux/swab.h:5, + from ../include/uapi/linux/byteorder/little_endian.h:14, + from ../include/linux/byteorder/little_endian.h:5, + from ../arch/x86/include/uapi/asm/byteorder.h:5, + from ../include/linux/unaligned.h:10, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.c:7: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_eeprom.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/npu.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/npu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_mcu.c:7: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_phy.c:7: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_phy.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/sdio_txrx.c:9: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/sdio_txrx.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_util.c:7: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_util.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_txrx.c:7: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_txrx.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/fs_dirent.h:5, + from ../include/linux/fs/super_types.h:5, + from ../include/linux/fs/super.h:5, + from ../include/linux/fs.h:5, + from ../include/linux/debugfs.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/export.h:5, + from ../include/linux/linkage.h:7, + from ../arch/x86/include/asm/cache.h:5, + from ../include/vdso/cache.h:5, + from ../include/linux/cache.h:6, + from ../include/linux/time.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_debugfs.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_mmio.c:7: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_mmio.o] Error 1 +In file included from ../include/linux/kfifo.h:39, + from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_dfs.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_dfs.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_trace.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_trace.o] Error 1 +In file included from ../include/linux/kfifo.h:39, + from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_beacon.c:8: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_beacon.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76_connac.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt76_connac3_mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76_connac3_mac.o] Error 1 +In file included from ../include/linux/kfifo.h:39, + from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_usb.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_usb_core.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt792x_core.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_core.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_usb_mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt792x_debugfs.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_debugfs.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt792x_trace.c:6: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_trace.o] Error 1 +In file included from ../include/linux/kfifo.h:39, + from ../drivers/net/wireless/mediatek/mt76/mt76x02.h:10, + from ../drivers/net/wireless/mediatek/mt76/mt76x02_mac.c:7: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x02_mac.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/mmzone.h:8, + from ../include/linux/gfp.h:7, + from ../include/linux/slab.h:17, + from ../include/linux/resource_ext.h:11, + from ../include/linux/acpi.h:14, + from ../drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/cleanup.h:5, + from ../include/linux/acpi.h:11: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_acpi_sar.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.c:5: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/usb_mcu.o] Error 1 +make[9]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/usb.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/usb.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7603/soc.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/soc.o] Error 1 +make[9]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/mac.c:7: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/mac.o] Error 1 +make[9]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt792x_dma.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_dma.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/pci.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/pci.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.c:5: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/pci_mcu.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/eeprom.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7603/main.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/main.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7915/pci.c:7: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/pci.o] Error 1 +make[9]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/mcu.c:7: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7603/pci.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/pci.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h:12, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/init.c:9: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/bitfield.h:10, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/mt76x0.h:11: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/init.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/main.c:8: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/main.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7996/pci.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/pci.o] Error 1 +make[9]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/phy.c:7: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/phy.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7603/core.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/core.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci_main.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7603/dma.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/dma.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7615/main.c:10: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/main.o] Error 1 +make[9]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7915/dma.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/dma.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt792x_mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_mac.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/mmzone.h:8, + from ../include/linux/gfp.h:7, + from ../include/linux/firmware.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7603/mcu.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/firmware.h:6: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/mcu.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.c:8: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/eeprom.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/mmzone.h:8, + from ../include/linux/gfp.h:7, + from ../include/linux/firmware.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7915/eeprom.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/firmware.h:6: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/eeprom.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt792x_usb.c:7: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt792x_usb.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76_connac.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt76_connac_mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76_connac_mac.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/regd.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/regd.o] Error 1 +make[9]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../include/linux/smp.h:13, + from ../include/linux/lockdep.h:14, + from ../include/linux/mutex.h:17, + from ../include/linux/kernfs.h:11, + from ../include/linux/sysfs.h:16, + from ../include/linux/kobject.h:20, + from ../include/linux/of.h:18, + from ../drivers/net/wireless/mediatek/mt76/mt7921/regd.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/bits.h:30, + from ../include/linux/bitops.h:6, + from ../include/linux/of.h:15: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/regd.o] Error 1 +make[9]: *** Waiting for unfinished jobs.... +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/init.c:7: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/init.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7996/init.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/init.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/delay.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/asm-generic/div64.h:27, + from ../arch/x86/include/asm/div64.h:100, + from ../include/linux/math.h:6, + from ../include/linux/delay.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci_init.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../include/linux/devcoredump.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7921/mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/mac.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/mmzone.h:8, + from ../include/linux/gfp.h:7, + from ../include/linux/firmware.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7996/eeprom.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/firmware.h:6: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/eeprom.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/mmzone.h:8, + from ../include/linux/gfp.h:7, + from ../include/linux/firmware.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.c:4: +../drivers/net/wireless/mediatek/mt76/mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/firmware.h:6: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[8]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76_connac_mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x0/phy.c:9: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x0/phy.o] Error 1 +make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt76x0] Error 2 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7915/init.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/init.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7915/main.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/main.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7615/init.c:10: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/init.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7603/init.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/init.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/fs_dirent.h:5, + from ../include/linux/fs/super_types.h:5, + from ../include/linux/fs/super.h:5, + from ../include/linux/fs.h:5, + from ../drivers/net/wireless/mediatek/mt76/mt7921/mcu.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/export.h:5, + from ../include/linux/linkage.h:7, + from ../arch/x86/include/asm/cache.h:5, + from ../include/vdso/cache.h:5, + from ../include/linux/cache.h:6, + from ../include/linux/time.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt7996/main.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/main.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7925/main.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/main.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7996/mt7996.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt7996/dma.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/dma.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../include/linux/devcoredump.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7925/mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/mac.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../include/linux/smp.h:13, + from ../include/linux/lockdep.h:14, + from ../include/linux/mutex.h:17, + from ../include/linux/kernfs.h:11, + from ../include/linux/sysfs.h:16, + from ../include/linux/kobject.h:20, + from ../include/linux/of.h:18, + from ../drivers/net/wireless/mediatek/mt76/mt7603/eeprom.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/bits.h:30, + from ../include/linux/bitops.h:6, + from ../include/linux/of.h:15: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/eeprom.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci_mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7921/main.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/main.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7921/init.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/init.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/fs_dirent.h:5, + from ../include/linux/fs/super_types.h:5, + from ../include/linux/fs/super.h:5, + from ../include/linux/fs.h:5, + from ../drivers/net/wireless/mediatek/mt76/mt7925/mcu.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/export.h:5, + from ../include/linux/linkage.h:7, + from ../arch/x86/include/asm/cache.h:5, + from ../include/vdso/cache.h:5, + from ../include/linux/cache.h:6, + from ../include/linux/time.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7603/debugfs.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/debugfs.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7921/debugfs.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/debugfs.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7925/init.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/init.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/relay.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt7996/debugfs.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../arch/x86/include/asm/current.h:5, + from ../include/linux/sched.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/debugfs.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7921/testmode.c:3: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/testmode.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/delay.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/asm-generic/div64.h:27, + from ../arch/x86/include/asm/div64.h:100, + from ../include/linux/math.h:6, + from ../include/linux/delay.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/pci_phy.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/mmzone.h:8, + from ../include/linux/gfp.h:7, + from ../include/linux/firmware.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7615/mcu.c:8: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/firmware.h:6: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7603/mt7603.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7603/beacon.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/beacon.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/relay.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt7915/debugfs.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../arch/x86/include/asm/current.h:5, + from ../include/linux/sched.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/debugfs.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/debugfs.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/debugfs.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7925/nan.c:7: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../arch/x86/include/uapi/asm/swab.h:6, + from ../include/uapi/linux/swab.h:8, + from ../include/linux/swab.h:5, + from ../include/uapi/linux/byteorder/little_endian.h:14, + from ../include/linux/byteorder/little_endian.h:5, + from ../arch/x86/include/uapi/asm/byteorder.h:5, + from ../drivers/net/wireless/mediatek/mt76/mt7925/nan.c:4: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/nan.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7996/npu.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/npu.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../include/linux/smp.h:13, + from ../include/linux/lockdep.h:14, + from ../include/linux/mutex.h:17, + from ../include/linux/kernfs.h:11, + from ../include/linux/sysfs.h:16, + from ../include/linux/kobject.h:20, + from ../include/linux/of.h:18, + from ../drivers/net/wireless/mediatek/mt76/mt7615/eeprom.c:8: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/bits.h:30, + from ../include/linux/bitops.h:6, + from ../include/linux/of.h:15: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/eeprom.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../include/linux/devcoredump.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7996/coredump.c:4: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/coredump.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7603/mac.c:3: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7603/mac.o] Error 1 +make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7603] Error 2 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/usb.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/usb.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7921/pci_mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/pci_mac.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/module.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt7615/trace.c:6: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/module.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/trace.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7921/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7921/mt7921.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/pci_mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7915/mt7915.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7915/testmode.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/testmode.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/testmode.c:3: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/testmode.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/swait.h:7, + from ../include/linux/completion.h:12, + from ../drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7615/testmode.c:4: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/swait.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/testmode.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/iopoll.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/sdio_mac.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2u.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/usb_mac.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../include/linux/devcoredump.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7915/coredump.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/coredump.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/delay.h:13, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/asm-generic/div64.h:27, + from ../arch/x86/include/asm/div64.h:100, + from ../include/linux/math.h:6, + from ../include/linux/delay.h:12: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/usb_init.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.c:10: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/pci_mac.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7915/mmio.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/mmio.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/mt76x2u.h:9, + from ../drivers/net/wireless/mediatek/mt76/mt76x2/usb_main.c:6: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt76x2/usb_main.o] Error 1 +make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt76x2] Error 2 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/swait.h:7, + from ../include/linux/completion.h:12, + from ../drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7615/debugfs.c:3: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/swait.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/debugfs.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.c:4: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/sdio_mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7921/sdio.c:6: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/sdio.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7996/mmio.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/mmio.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7615/pci.c:8: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/pci.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7921/pci.c:6: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/pci.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7615/mmio.c:4: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/mmio.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/swait.h:7, + from ../include/linux/completion.h:12, + from ../drivers/net/wireless/mediatek/mt76/mt7615/mt7615.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7615/dma.c:10: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/build_bug.h:5, + from ../include/linux/container_of.h:5, + from ../include/linux/list.h:5, + from ../include/linux/swait.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/dma.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../include/linux/dma-mapping.h:5, + from ../drivers/net/wireless/mediatek/mt76/mt7925/cached_cal.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/cached_cal.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7615/usb.c:9: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/usb.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7615/soc.c:8: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/soc.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../include/linux/spinlock.h:59, + from ../include/linux/mmzone.h:8, + from ../include/linux/gfp.h:7, + from ../include/linux/firmware.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7996/mcu.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/firmware.h:6: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/pci_mcu.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/pci_mcu.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7925/pci.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/pci.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7921/usb.c:7: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7921/usb.o] Error 1 +make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7921] Error 2 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7915/soc.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/soc.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7615/pci_init.c:10: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/pci_init.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/interrupt.h:6, + from ../drivers/net/wireless/mediatek/mt76/mt7925/../mt792x.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/mt7925.h:7, + from ../drivers/net/wireless/mediatek/mt76/mt7925/pci_mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/pci_mac.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7915/mac.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/mac.o] Error 1 +In file included from ../include/linux/kernel.h:16, + from ../include/linux/skbuff.h:13, + from ../include/linux/if_ether.h:19, + from ../include/linux/etherdevice.h:20, + from ../drivers/net/wireless/mediatek/mt76/mt7996/mac.c:6: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7996/mac.o] Error 1 +make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7996] Error 2 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7925/usb.c:4: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7925/usb.o] Error 1 +make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7925] Error 2 +In file included from ../include/linux/kernel.h:16, + from ../drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.c:8: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/array_size.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/usb_sdio.o] Error 1 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../include/linux/sched.h:13, + from ../include/linux/ratelimit.h:6, + from ../include/linux/dev_printk.h:16, + from ../include/linux/device.h:15, + from ../include/linux/devcoredump.h:8, + from ../drivers/net/wireless/mediatek/mt76/mt7615/mac.c:10: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/dev_printk.h:14: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7615/mac.o] Error 1 +make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7615] Error 2 +In file included from ../include/linux/string.h:6, + from ../include/linux/bitmap.h:13, + from ../include/linux/cpumask.h:11, + from ../arch/x86/include/asm/paravirt.h:19, + from ../arch/x86/include/asm/irqflags.h:100, + from ../include/linux/irqflags.h:18, + from ../arch/x86/include/asm/special_insns.h:10, + from ../arch/x86/include/asm/processor.h:25, + from ../arch/x86/include/asm/timex.h:5, + from ../include/linux/timex.h:67, + from ../include/linux/time32.h:13, + from ../include/linux/time.h:60, + from ../include/linux/stat.h:19, + from ../include/linux/fs_dirent.h:5, + from ../include/linux/fs/super_types.h:5, + from ../include/linux/fs/super.h:5, + from ../include/linux/fs.h:5, + from ../drivers/net/wireless/mediatek/mt76/mt7915/mcu.c:4: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h: In function ‘mt76_init_tx_queue’: +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: error: ‘dev’ undeclared (first use in this function); did you mean ‘cdev’? + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~ +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:42: note: each undeclared identifier is reported only once for each function it appears in +../include/linux/array_size.h:11:33: note: in definition of macro ‘ARRAY_SIZE’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~ +In file included from ../include/linux/export.h:5, + from ../include/linux/linkage.h:7, + from ../arch/x86/include/asm/cache.h:5, + from ../include/vdso/cache.h:5, + from ../include/linux/cache.h:6, + from ../include/linux/time.h:5: +../include/linux/compiler.h:200:82: error: expression in static assertion is not an integer + 200 | #define __BUILD_BUG_ON_ZERO_MSG(e, msg, ...) ((int)sizeof(struct {_Static_assert(!(e), msg);})) + | ^ +../include/linux/compiler.h:205:33: note: in expansion of macro ‘__BUILD_BUG_ON_ZERO_MSG’ + 205 | #define __must_be_array(a) __BUILD_BUG_ON_ZERO_MSG(!__is_array(a), \ + | ^~~~~~~~~~~~~~~~~~~~~~~ +../include/linux/array_size.h:11:59: note: in expansion of macro ‘__must_be_array’ + 11 | #define ARRAY_SIZE(arr) (sizeof(arr) / sizeof((arr)[0]) + __must_be_array(arr)) + | ^~~~~~~~~~~~~~~ +../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h:1364:31: note: in expansion of macro ‘ARRAY_SIZE’ + 1364 | if (qid < 0 || qid >= ARRAY_SIZE(dev->q_tx)) + | ^~~~~~~~~~ +make[9]: *** [../scripts/Makefile.build:290: drivers/net/wireless/mediatek/mt76/mt7915/mcu.o] Error 1 +make[8]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76/mt7915] Error 2 +make[7]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek/mt76] Error 2 +make[6]: *** [../scripts/Makefile.build:572: drivers/net/wireless/mediatek] Error 2 +make[5]: *** [../scripts/Makefile.build:572: drivers/net/wireless] Error 2 +make[4]: *** [../scripts/Makefile.build:572: drivers/net] Error 2 +make[4]: *** Waiting for unfinished jobs.... +make[3]: *** [../scripts/Makefile.build:572: drivers] Error 2 +make[2]: *** [/srv/nipa-poller-wireless/wireless-next/wt-0/Makefile:2244: .] Error 2 +make[1]: *** [/srv/nipa-poller-wireless/wireless-next/wt-0/Makefile:248: __sub-make] Error 2 +make: *** [Makefile:248: __sub-make] Error 2 Per-file breakdown --- /tmp/tmp.E4iPeL0vvm 2026-12-02 03:29:47.490233626 -0500 +++ /tmp/tmp.l9FXtr55CA 2026-12-02 03:29:47.494233605 -0500 @@ -0,0 +1,10 @@ + 11 ../drivers/net/wireless/mediatek/mt76/mt7603/../mt76.h + 16 ../drivers/net/wireless/mediatek/mt76/mt7615/../mt76.h + 43 ../drivers/net/wireless/mediatek/mt76/mt76.h + 8 ../drivers/net/wireless/mediatek/mt76/mt76x0/../mt76.h + 14 ../drivers/net/wireless/mediatek/mt76/mt76x2/../mt76.h + 12 ../drivers/net/wireless/mediatek/mt76/mt7915/../mt76.h + 14 ../drivers/net/wireless/mediatek/mt76/mt7921/../mt76.h + 13 ../drivers/net/wireless/mediatek/mt76/mt7925/../mt76.h + 11 ../drivers/net/wireless/mediatek/mt76/mt7996/../mt76.h + 142 ../include/linux/compiler.h