×

签到

分享到微信

打开微信,使用扫一扫进入页面后,点击右上角菜单,

点击“发送给朋友”或“分享到朋友圈”完成分享

求助关于寒武纪MLU370-X8显卡驱动兼容问题(Ubuntu 24 + 内核6.11) 已完结 wkh2025-04-25 14:32:28 回复 2 查看 技术答疑
求助关于寒武纪MLU370-X8显卡驱动兼容问题(Ubuntu 24 + 内核6.11)
分享到:

DKMS make.log for cambricon-mlu-driver-ubuntu18.04-4.20.11 for kernel 6.11.0-21-generic (x86_64)

Fri Apr 25 10:04:07 AM CST 2025

make[1]: warning: -j0 forced in submake: resetting jobserver mode.

make[1]: Entering directory '/usr/src/linux-headers-6.11.0-21-generic'

warning: the compiler differs from the one used to build the kernel

  The kernel was built by: x86_64-linux-gnu-gcc-14 (Ubuntu 14.2.0-4ubuntu2) 14.2.0

  You are using:           gcc-14 (Ubuntu 14.2.0-4ubuntu2) 14.2.0

BOARD_NAME is 

  PRECOMPILE: access_ok

  PRECOMPILE: topology_sibling_cpumask

  PRECOMPILE: get_user_pages

  PRECOMPILE: get_user_pages_remote

  PRECOMPILE: vm_map_ram

  PRECOMPILE: mmap_read_lock

  PRECOMPILE: mmap_write_lock

  PRECOMPILE: map_vm_area

  PRECOMPILE: fcheck

  PRECOMPILE: llist_reverse_order

  PRECOMPILE: pci_cleanup_aer_uncorrect_error_status

  PRECOMPILE: cpumask_clear_cpu

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/serv_stat.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/crc32.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_bringup.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20l_fpga_boot.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/virt_console.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20l_asic_boot.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20e_boot.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20_fpga_boot.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.o

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/crc32.c:72:14: error: no previous prototype for ‘crc32_no_comp’ [-Werror=missing-prototypes]

   72 | unsigned int crc32_no_comp(unsigned int crc, const unsigned char *buf, unsigned int len)

      |              ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/crc32.c:101:14: error: no previous prototype for ‘crc32_o’ [-Werror=missing-prototypes]

  101 | unsigned int crc32_o (unsigned int crc, unsigned char  *p, unsigned int len)

      |              ^~~~~~~

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/ce3226_boot.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/expmnt/exp_mgnt.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_main.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_info.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.o

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.o

cc1: all warnings being treated as errors

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.o

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/crc32.o] Error 1

make[3]: *** Waiting for unfinished jobs....

  CC [M]  /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/noc/qos.o

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.c:22:5: error: no previous prototype for ‘check_firmware’ [-Werror=missing-prototypes]

   22 | int check_firmware(struct cn_fw *cn_fw)

      |     ^~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.c:49:6: error: no previous prototype for ‘put_firmware’ [-Werror=missing-prototypes]

   49 | void put_firmware(struct cn_fw *cn_fw)

      |      ^~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.c:54:5: error: no previous prototype for ‘get_firmware’ [-Werror=missing-prototypes]

   54 | int get_firmware(struct cn_fw *cn_fw, struct device *dev, u64 device_id)

      |     ^~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.c:123:5: error: no previous prototype for ‘upload_buff’ [-Werror=missing-prototypes]

  123 | int upload_buff(struct cn_core_set *core, unsigned char *image_name,

      |     ^~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.c:161:5: error: no previous prototype for ‘upload_dma_buff’ [-Werror=missing-prototypes]

  161 | int upload_dma_buff(

      |     ^~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20l_fpga_boot.c:15:5: error: no previous prototype for ‘c20l_fpga_boot_pre’ [-Werror=missing-prototypes]

   15 | int c20l_fpga_boot_pre(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20l_fpga_boot.c:62:5: error: no previous prototype for ‘c20l_fpga_cpu_boot’ [-Werror=missing-prototypes]

   62 | int c20l_fpga_cpu_boot(struct cn_core_set *core, uint64_t boot_entry)

      |     ^~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.c:222:5: error: no previous prototype for ‘upload_image’ [-Werror=missing-prototypes]

  222 | int upload_image(struct cn_core_set *core, unsigned char *image_name, unsigned char* image, unsigned long load_addr, unsigned long size)

      |     ^~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.c:238:15: error: no previous prototype for ‘aligned_pagesize’ [-Werror=missing-prototypes]

  238 | unsigned long aligned_pagesize(unsigned long size, unsigned long pagesize)

      |               ^~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.c:247:5: error: no previous prototype for ‘upload_fw’ [-Werror=missing-prototypes]

  247 | int upload_fw(struct cn_core_set *core, unsigned long *bl1_entry_point, unsigned long *img_certs_addr)

      |     ^~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20l_asic_boot.c:30:5: error: no previous prototype for ‘c20l_asic_boot_pre’ [-Werror=missing-prototypes]

   30 | int c20l_asic_boot_pre(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20l_asic_boot.c:104:5: error: no previous prototype for ‘c20l_asic_cpu_boot’ [-Werror=missing-prototypes]

  104 | int c20l_asic_cpu_boot(struct cn_core_set *core, uint64_t boot_entry)

      |     ^~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20e_boot.c:71:5: error: no previous prototype for ‘c20e_boot_pre’ [-Werror=missing-prototypes]

   71 | int c20e_boot_pre(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20e_boot.c:121:5: error: no previous prototype for ‘c20e_cpu_boot’ [-Werror=missing-prototypes]

  121 | int c20e_cpu_boot(struct cn_core_set *core, uint64_t boot_entry)

      |     ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20_fpga_boot.c:16:5: error: no previous prototype for ‘c20_boot_pre’ [-Werror=missing-prototypes]

   16 | int c20_boot_pre(struct cn_core_set *core)

      |     ^~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20_fpga_boot.c:64:5: error: no previous prototype for ‘c20_cpu_boot’ [-Werror=missing-prototypes]

   64 | int c20_cpu_boot(struct cn_core_set *core, uint64_t boot_entry)

      |     ^~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:39:6: error: no previous prototype for ‘sync_wr_reg32’ [-Werror=missing-prototypes]

   39 | void sync_wr_reg32(void *bus_set, unsigned long offset, u32 val)

      |      ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:45:5: error: no previous prototype for ‘sync_rd_reg32’ [-Werror=missing-prototypes]

   45 | u32 sync_rd_reg32(void *bus_set, unsigned long offset)

      |     ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:75:5: error: no previous prototype for ‘c30s_boot_pre_non_secure’ [-Werror=missing-prototypes]

   75 | int c30s_boot_pre_non_secure(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:133:5: error: no previous prototype for ‘c30s_cpu_boot_non_secure’ [-Werror=missing-prototypes]

  133 | int c30s_cpu_boot_non_secure(struct cn_core_set *core, uint64_t boot_entry)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:446:5: error: no previous prototype for ‘session_open’ [-Werror=missing-prototypes]

  446 | int session_open(struct cn_core_set *core)

      |     ^~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:495:5: error: no previous prototype for ‘session_close’ [-Werror=missing-prototypes]

  495 | int session_close(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:528:5: error: no previous prototype for ‘c30s_cpu_boot_secure’ [-Werror=missing-prototypes]

  528 | int c30s_cpu_boot_secure(struct cn_core_set *core, uint64_t boot_entry)

      |     ^~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:569:5: error: no previous prototype for ‘c30s_boot_pre’ [-Werror=missing-prototypes]

  569 | int c30s_boot_pre(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.c:588:5: error: no previous prototype for ‘c30s_cpu_boot’ [-Werror=missing-prototypes]

  588 | int c30s_cpu_boot(struct cn_core_set *core, uint64_t boot_entry)

      |     ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/ce3226_boot.c:13:5: error: no previous prototype for ‘reg_read64’ [-Werror=missing-prototypes]

   13 | u64 reg_read64(void *bus_set, unsigned long offset)

      |     ^~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/ce3226_boot.c:22:6: error: no previous prototype for ‘reg_write64’ [-Werror=missing-prototypes]

   22 | void reg_write64(void *bus_set, unsigned long offset, u64 val)

      |      ^~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/ce3226_boot.c:32:6: error: no previous prototype for ‘regwrite32’ [-Werror=missing-prototypes]

   32 | void regwrite32(void *bus_set, unsigned long offset, u32 val)

      |      ^~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/ce3226_boot.c:43:5: error: no previous prototype for ‘ce3226_boot_pre’ [-Werror=missing-prototypes]

   43 | int ce3226_boot_pre(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/ce3226_boot.c:49:5: error: no previous prototype for ‘ce3226_cpu_boot’ [-Werror=missing-prototypes]

   49 | int ce3226_cpu_boot(struct cn_core_set *core, uint64_t boot_entry)

      |     ^~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_main.c:36:5: error: no previous prototype for ‘cndrv_mcu_read_basic_info’ [-Werror=missing-prototypes]

   36 | int cndrv_mcu_read_basic_info(void *pcore)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:52:5: error: no previous prototype for ‘__mcu_read_power_cap_mlu270’ [-Werror=missing-prototypes]

   52 | int __mcu_read_power_cap_mlu270(void *pcore, u32 *cap_value, u16 *dec_cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:76:5: error: no previous prototype for ‘__mcu_set_power_cap_mlu270’ [-Werror=missing-prototypes]

   76 | int __mcu_set_power_cap_mlu270(void *pcore, u32 cap_value, u16 dec_vap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:107:5: error: no previous prototype for ‘mcu_read_basic_info_mlu270’ [-Werror=missing-prototypes]

  107 | int mcu_read_basic_info_mlu270(void *pcore)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_main.c:164:5: error: no previous prototype for ‘cndrv_mcu_read_overtemp_freq’ [-Werror=missing-prototypes]

  164 | int cndrv_mcu_read_overtemp_freq(void *pcore, u8 *flag)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_main.c:181:5: error: no previous prototype for ‘cndrv_check_overtemp_warning_recallflag’ [-Werror=missing-prototypes]

  181 | int cndrv_check_overtemp_warning_recallflag(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

cc1: all warnings being treated as errors

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_main.c:300:6: error: no previous prototype for ‘__mcu_set_basic_for_vf’ [-Werror=missing-prototypes]

  300 | void __mcu_set_basic_for_vf(struct cn_core_set *core)

      |      ^~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:25:5: error: no previous prototype for ‘__mcu_read_power_cap_mlu220’ [-Werror=missing-prototypes]

   25 | int __mcu_read_power_cap_mlu220(void *pcore, u32 *cap_value, u16 *dec_cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_main.c:367:5: error: no previous prototype for ‘__mcu_board_init’ [-Werror=missing-prototypes]

  367 | int __mcu_board_init(struct cn_core_set *core)

      |     ^~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:57:5: error: no previous prototype for ‘__mcu_set_power_cap_mlu220’ [-Werror=missing-prototypes]

   57 | int __mcu_set_power_cap_mlu220(void *pcore, u32 cap_value, u16 dec_cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:86:5: error: no previous prototype for ‘mcu_read_basic_info_mlu220’ [-Werror=missing-prototypes]

   86 | int mcu_read_basic_info_mlu220(void *pcore)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:298:5: error: no previous prototype for ‘mcu_read_power_info_mlu270’ [-Werror=missing-prototypes]

  298 | int mcu_read_power_info_mlu270(void *pcore, struct board_power_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:345:5: error: no previous prototype for ‘mcu_read_ipu_freq_mlu270’ [-Werror=missing-prototypes]

  345 | int mcu_read_ipu_freq_mlu270(void *pcore, struct ipu_freq_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:368:5: error: no previous prototype for ‘mcu_read_max_temp_mlu270’ [-Werror=missing-prototypes]

  368 | int mcu_read_max_temp_mlu270(void *pcore, int *max_temp)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:405:5: error: no previous prototype for ‘mcu_read_over_temp_flag_mlu270’ [-Werror=missing-prototypes]

  405 | int mcu_read_over_temp_flag_mlu270(void *pcore, int *flag)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:282:5: error: no previous prototype for ‘mcu_read_power_info_mlu220’ [-Werror=missing-prototypes]

  282 | int mcu_read_power_info_mlu220(void *pcore, struct board_power_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:422:5: error: no previous prototype for ‘mcu_power_capping_mlu270’ [-Werror=missing-prototypes]

  422 | int mcu_power_capping_mlu270(void *pcore, struct power_capping_info *pcinfo)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

cc1: all warnings being treated as errors

cc1: all warnings being treated as errors

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.c:35:5: error: no previous prototype for ‘__mcu_read_power_cap_ce3226’ [-Werror=missing-prototypes]

   35 | int __mcu_read_power_cap_ce3226(void *pcore, u32 *cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.c:42:5: error: no previous prototype for ‘__mcu_set_power_cap_ce3226’ [-Werror=missing-prototypes]

   42 | int __mcu_set_power_cap_ce3226(void *pcore, u32 cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.c:439:6: error: no previous prototype for ‘mcu_exit_mlu270’ [-Werror=missing-prototypes]

  439 | void mcu_exit_mlu270(void *mset)

      |      ^~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.c:196:5: error: no previous prototype for ‘mcu_read_basic_info_ce3226’ [-Werror=missing-prototypes]

  196 | int mcu_read_basic_info_ce3226(void *pcore)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.c:202:5: error: no previous prototype for ‘mcu_read_power_info_ce3226’ [-Werror=missing-prototypes]

  202 | int mcu_read_power_info_ce3226(void *pcore, struct board_power_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20l_fpga_boot.o] Error 1

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:23:5: error: no previous prototype for ‘__mcu_read_power_cap_mlu290’ [-Werror=missing-prototypes]

   23 | int __mcu_read_power_cap_mlu290(void *pcore, u32 *cap_value, u16 *dec_cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:42:5: error: no previous prototype for ‘__mcu_set_power_cap_mlu290’ [-Werror=missing-prototypes]

   42 | int __mcu_set_power_cap_mlu290(void *pcore, u32 cap_value, u16 dec_cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:68:5: error: no previous prototype for ‘mcu_read_basic_info_mlu290’ [-Werror=missing-prototypes]

   68 | int mcu_read_basic_info_mlu290(void *pcore)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:330:5: error: no previous prototype for ‘mcu_read_ipu_freq_mlu220’ [-Werror=missing-prototypes]

  330 | int mcu_read_ipu_freq_mlu220(void *pcore, struct ipu_freq_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.c:300:5: error: no previous prototype for ‘mcu_read_max_temp_ce3226’ [-Werror=missing-prototypes]

  300 | int mcu_read_max_temp_ce3226(void *pcore, int *max_temp)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:358:5: error: no previous prototype for ‘mcu_read_max_temp_mlu220’ [-Werror=missing-prototypes]

  358 | int mcu_read_max_temp_mlu220(void *pcore, int *max_temp)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.c:329:5: error: no previous prototype for ‘mcu_power_capping_ce3226’ [-Werror=missing-prototypes]

  329 | int mcu_power_capping_ce3226(void *pcore, struct power_capping_info *pcinfo)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.c:336:5: error: no previous prototype for ‘mcu_read_uuid_ce3226’ [-Werror=missing-prototypes]

  336 | int mcu_read_uuid_ce3226(void *pcore, unsigned char *uuid)

      |     ^~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:387:5: error: no previous prototype for ‘mcu_power_capping_mlu220’ [-Werror=missing-prototypes]

  387 | int mcu_power_capping_mlu220(void *pcore, struct power_capping_info *pcinfo)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

cc1: all warnings being treated as errors

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:404:6: error: no previous prototype for ‘mcu_exit_mlu220’ [-Werror=missing-prototypes]

  404 | void mcu_exit_mlu220(void *mset)

      |      ^~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.c:413:5: error: no previous prototype for ‘mcu_read_uuid_mlu220’ [-Werror=missing-prototypes]

  413 | int mcu_read_uuid_mlu220(void *pcore, unsigned char *uuid)

      |     ^~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/expmnt/exp_mgnt.c:124:5: error: no previous prototype for ‘check_timeout’ [-Werror=missing-prototypes]

  124 | int check_timeout(ktime_t cur, ktime_t last, unsigned long threshold)

      |     ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/expmnt/exp_mgnt.c:131:5: error: no previous prototype for ‘check_err’ [-Werror=missing-prototypes]

  131 | int check_err(struct module_data_s *module)

      |     ^~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/expmnt/exp_mgnt.c:138:5: error: no previous prototype for ‘fast_checkout’ [-Werror=missing-prototypes]

  138 | int fast_checkout(struct heartbeat_pkg_s *pkg, int result_len, unsigned long *bitmap)

      |     ^~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.c:365:6: error: no previous prototype for ‘mcu_exit_ce3226’ [-Werror=missing-prototypes]

  365 | void mcu_exit_ce3226(void *mset)

      |      ^~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:34:5: error: no previous prototype for ‘__mcu_read_power_cap_mlu370’ [-Werror=missing-prototypes]

   34 | int __mcu_read_power_cap_mlu370(void *pcore, u32 *cap_value, u16 *dec_cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:61:5: error: no previous prototype for ‘__mcu_set_power_cap_mlu370’ [-Werror=missing-prototypes]

   61 | int __mcu_set_power_cap_mlu370(void *pcore, u32 cap_value, u32 mode, u16 dec_cap_value)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:200:5: error: no previous prototype for ‘mcu_read_power_info_mlu290’ [-Werror=missing-prototypes]

  200 | int mcu_read_power_info_mlu290(void *pcore, struct board_power_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:112:5: error: no previous prototype for ‘mcu_read_basic_info_mlu370’ [-Werror=missing-prototypes]

  112 | int mcu_read_basic_info_mlu370(void *pcore)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:255:5: error: no previous prototype for ‘mcu_read_ipu_freq_mlu290’ [-Werror=missing-prototypes]

  255 | int mcu_read_ipu_freq_mlu290(void *pcore, struct ipu_freq_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:268:5: error: no previous prototype for ‘mcu_read_max_temp_mlu290’ [-Werror=missing-prototypes]

  268 | int mcu_read_max_temp_mlu290(void *pcore, int *max_temp)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20l_asic_boot.o] Error 1

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:310:5: error: no previous prototype for ‘mcu_read_over_temp_flag_mlu290’ [-Werror=missing-prototypes]

  310 | int mcu_read_over_temp_flag_mlu290(void *pcore, int *flag)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20_fpga_boot.o] Error 1

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:320:5: error: no previous prototype for ‘mcu_read_ddr_freq_mlu290’ [-Werror=missing-prototypes]

  320 | int mcu_read_ddr_freq_mlu290(void *pcore, u32 *freq)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:337:5: error: no previous prototype for ‘mcu_power_capping_mlu290’ [-Werror=missing-prototypes]

  337 | int mcu_power_capping_mlu290(void *pcore, struct power_capping_info *pcinfo)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:359:5: error: no previous prototype for ‘mcu_set_host_driver_status_mlu290’ [-Werror=missing-prototypes]

  359 | int mcu_set_host_driver_status_mlu290(void *pcore, int status)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:376:5: error: no previous prototype for ‘mcu_read_overtemp_freq_mlu290’ [-Werror=missing-prototypes]

  376 | int mcu_read_overtemp_freq_mlu290(void *pcore, u8 *flag)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:387:6: error: no previous prototype for ‘mcu_exit_mlu290’ [-Werror=missing-prototypes]

  387 | void mcu_exit_mlu290(void *mset)

      |      ^~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:397:5: error: no previous prototype for ‘mcu_set_overtemp_policy_mlu290’ [-Werror=missing-prototypes]

  397 | int mcu_set_overtemp_policy_mlu290(void *pcore, struct cndev_overtemp_param *overtemp)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.c:420:5: error: no previous prototype for ‘mcu_get_overtemp_policy_mlu290’ [-Werror=missing-prototypes]

  420 | int mcu_get_overtemp_policy_mlu290(void *pcore, struct cndev_overtemp_param *overtemp)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c20e_boot.o] Error 1

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c: In function ‘mcu_read_basic_info_mlu370’:

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:279:35: error: implicit conversion from ‘enum cn_board_mlu370_info_idx’ to ‘cn_board_model_t’ {aka ‘enum cn_board_model’} [-Werror=enum-conversion]

  279 |                 core->board_model = MLU370_EVB_S;

      |                                   ^

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c: At top level:

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:337:5: error: no previous prototype for ‘mcu_read_power_info_mlu370’ [-Werror=missing-prototypes]

  337 | int mcu_read_power_info_mlu370(void *pcore, struct board_power_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:380:5: error: no previous prototype for ‘mcu_read_ipu_freq_mlu370’ [-Werror=missing-prototypes]

  380 | int mcu_read_ipu_freq_mlu370(void *pcore, struct ipu_freq_info *info)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:402:5: error: no previous prototype for ‘mcu_read_max_temp_mlu370’ [-Werror=missing-prototypes]

  402 | int mcu_read_max_temp_mlu370(void *pcore, int *max_temp)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:428:5: error: no previous prototype for ‘mcu_read_over_temp_flag_mlu370’ [-Werror=missing-prototypes]

  428 | int mcu_read_over_temp_flag_mlu370(void *pcore, int *flag)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:438:5: error: no previous prototype for ‘mcu_power_capping_mlu370’ [-Werror=missing-prototypes]

  438 | int mcu_power_capping_mlu370(void *pcore, struct power_capping_info *pcinfo)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:454:5: error: no previous prototype for ‘mcu_set_host_driver_status_mlu370’ [-Werror=missing-prototypes]

  454 | int mcu_set_host_driver_status_mlu370(void *pcore, int status)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:471:5: error: no previous prototype for ‘mcu_set_d2d_crc_err_mlu370’ [-Werror=missing-prototypes]

  471 | int mcu_set_d2d_crc_err_mlu370(void *pcore, u32 status)

      |     ^~~~~~~~~~~~~~~~~~~~~~~~~~

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.c:488:6: error: no previous prototype for ‘mcu_exit_mlu370’ [-Werror=missing-prototypes]

  488 | void mcu_exit_mlu370(void *mset)

      |      ^~~~~~~~~~~~~~~

cc1: all warnings being treated as errors

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/ce3226_boot.o] Error 1

/var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/noc/qos.c:408:5: error: no previous prototype for ‘cndev_qos_info_init’ [-Werror=missing-prototypes]

  408 | int cndev_qos_info_init(void *cset,

      |     ^~~~~~~~~~~~~~~~~~~

cc1: all warnings being treated as errors

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/plat/c30s_boot.o] Error 1

cc1: all warnings being treated as errors

cc1: all warnings being treated as errors

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_ce3226.o] Error 1

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/fw/cndrv_fw.o] Error 1

cc1: all warnings being treated as errors

cc1: all warnings being treated as errors

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu270.o] Error 1

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu290.o] Error 1

cc1: all warnings being treated as errors

cc1: all warnings being treated as errors

cc1: all warnings being treated as errors

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu220.o] Error 1

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_main.o] Error 1

make[3]: *** [ s/Makefile.build:244: /var/lib/dkms/cambricon-mlu-driver-ubuntu18.04/4.20.11/build/mcu/cndrv_mcu_mlu370.o] Error 1

cc1: all warnings being treated as errors


版权所有 © 2026 寒武纪 Cambricon.com 备案/许可证号:京ICP备17003415号-1
关闭