On 2022-11-12 at 17:34:46 +0800, Zhang Qilong wrote: > Building with CONFIG_FW_LOADER=m && CONFIG_FW_UPLOAD=y causes > errors: > > ld: drivers/fpga/intel-m10-bmc-sec-update.o: in function `m10bmc_sec_remove': > intel-m10-bmc-sec-update.c:(.text+0x25b): undefined reference to `firmware_upload_unregister' > ld: drivers/fpga/intel-m10-bmc-sec-update.o: in function `m10bmc_sec_probe': > intel-m10-bmc-sec-update.c:(.text+0x3c1): undefined reference to `firmware_upload_register' > > When CONFIG_FW_LOADER is configed with module, the firmware_upload_unregister() > could not be seen in m10bmc_sec_remove(), it is controlled by CONFIG_FW_UPLOAD > that it depends CONFIG_FW_LOADER. We fix it by adding FW_LOADER in > FPGA_M10_BMC_SEC_UPDATE depends. > > Fixes: 5cd339b370e2 ("fpga: m10bmc-sec: add max10 secure update functions") > Signed-off-by: Zhang Qilong <zhangqilong3@xxxxxxxxxx> Thanks for your patch, please check this thread: https://lore.kernel.org/all/d81630d5-756c-4067-fc1b-47e5f56cad33@xxxxxxxxxxxxx/ Thanks, Yilun