Open ywt114 opened 1 year ago
make[6]: [scripts/Makefile.build:262: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80/mt7921/mcu.o] Error 1 make[5]: [scripts/Makefile.build:497: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80/mt7921] Error 2 make[4]: Leaving directory '/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.257' make[4]: [Makefile:1750: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80] Error 2 make[3]: [Makefile:585: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80/.built] Error 2 make[2]: [package/Makefile:116: package/kernel/mt76/compile] Error 1 make[3]: Leaving directory '/home/runner/work/test/test/openwrt/package/kernel/mt76' time: package/kernel/mt76/compile#3.01#0.77#3.77 ERROR: package/kernel/mt76 failed to build. make[2]: Leaving directory '/home/runner/work/test/test/openwrt' make[1]: [package/Makefile:110: /home/runner/work/test/test/openwrt/staging_dir/target-x86_64_musl/stamp/.package_compile] Error 2 make[1]: Leaving directory '/home/runner/work/test/test/openwrt' make: *** [/home/runner/work/test/test/openwrt/include/toplevel.mk:231: world] Error 2
/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80/mt7921/mcu.c:16:52: error: expected ')' before 'bool' 16 | module_param_named(disable_clc, mt7921_disable_clc, bool, 0644); | ^~~~~ | ) /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80/mt7921/mcu.c:17:30: error: expected ')' before string constant 17 | MODULE_PARM_DESC(disable_clc, "disable CLC support"); | ^
~~~~~ | ) make[6]: [scripts/Makefile.build:262: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80/mt7921/mcu.o] Error 1 make[5]: [scripts/Makefile.build:497: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80/mt7921] Error 2 make[4]: [Makefile:1750: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80] Error 2 make[3]: [Makefile:585: /home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/mt76-2022-12-22-5b509e80/.built] Error 2 make[4]: Leaving directory '/home/runner/work/test/test/openwrt/build_dir/target-x86_64_musl/linux-x86_64/linux-5.4.257' make[3]: Leaving directory '/home/runner/work/test/test/openwrt/package/kernel/mt76' time: package/kernel/mt76/compile#2.20#0.46#2.65 ERROR: package/kernel/mt76 failed to build.The error message indicates that there's a problem on line 16 of the mcu.c file, specifically saying: "expected ')' before 'bool'." This error suggests there's a problem with how the parameter is defined. In this case, it might be related to the module_param_named line where the parameter is declared.Would it be better to modify it as follows?
static bool mt7921_disable_clc; module_param_named(disable_clc, mt7921_disable_clc, bool, 0644); MODULE_PARM_DESC(disable_clc, "Disable CLC support (0/1)");