in 5.17 i get the error
drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.c: In function 'wmt_detect_unlocked_ioctl':
drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.c:120:12: error: implicit declaration of function 'wmt_plat_get_soc_chipid' [-Werror=implicit-function-declaration]
120 | retval = wmt_plat_get_soc_chipid();
| ^~~~~~~~~~~~~~~~~~~~~~~
as far as i debugged, this filter in drivers/misc/mediatek/connectivity/common/Makefile does not match and do not include the conn_soc directory:
ifneq ($(filter "CONSYS_%",$(CONFIG_MTK_COMBO_CHIP)),)
MTK_COMBO_CHIP is set to this [=CONSYS_7623] so imho it should be included
but the filter seems not working, it returns empty string
$(warning $$MTK_PLATFORM is [${MTK_PLATFORM}])
$(warning $$CONFIG_MTK_COMBO_CHIP is [$(CONFIG_MTK_COMBO_CHIP)] (should not be empty))
$(warning filter-result: $(filter "CONSYS_%",$(CONFIG_MTK_COMBO_CHIP)))
shows this:
drivers/misc/mediatek/connectivity/common/Makefile:4: $MTK_PLATFORM is [mt7623]
drivers/misc/mediatek/connectivity/common/Makefile:5: $CONFIG_MTK_COMBO_CHIP is [CONSYS_7623] (should not be empty)
drivers/misc/mediatek/connectivity/common/Makefile:7: filter-result:
does anyone have an idea?
if i skip the check and always include the conn_soc, i get the same error about implicit declaration, but i have it in sourcefile defined, and it seems this is compiled
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/wmt_plat_alps.c:1019:UINT32 wmt_plat_get_soc_chipid(void)
drivers/misc/mediatek/connectivity/common/conn_soc/mt7623/wmt_plat_alps.c:1026:EXPORT_SYMBOL(wmt_plat_get_soc_chipid);
uploaded my current state to 5.17-rc tree
seems problem is again the filter command in a makefile…
drivers/misc/mediatek/connectivity/common/common_detect/Makefile
-ifneq ($(filter "CONSYS_%",$(CONFIG_MTK_COMBO_CHIP)),)
+#ifneq ($(filter "CONSYS_%",$(CONFIG_MTK_COMBO_CHIP)),)
subdir-ccflags-y += -D MTK_WCN_SOC_CHIP_SUPPORT
ccflags-y += -I$(srctree)/$(src)/../conn_soc/linux/include
-endif
+#endif
MTK_WCN_SOC_CHIP_SUPPORT is guarding the extern function declaration in drivers/misc/mediatek/connectivity/common/common_detect/wmt_detect.h
The problem are the quotes around filter string…without them compiling works
but in system i get a
root@bpi-r2:~# echo A > /dev/wmtWifi
-bash: echo: write error: Input/output error
this had same rootcause…there were many other filter statements.got it solved so far.wifi is working.only see a trace on poweroff.