tree: https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git dev-queue head: ed145d0a3bdc74466c65ea28662ed856890ae4f2 commit: be6c31bdaadacabdaa4b0d2a59a2b6b592ea1eb2 [58/61] ice: use debugfs to output FW log data config: sparc-randconfig-r025-20230105 compiler: sparc-linux-gcc (GCC) 12.1.0 reproduce (this is a W=1 build): wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross chmod +x ~/bin/make.cross # https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git/commit/?id=be6c31bdaadacabdaa4b0d2a59a2b6b592ea1eb2 git remote add tnguy-next-queue https://git.kernel.org/pub/scm/linux/kernel/git/tnguy/next-queue.git git fetch --no-tags tnguy-next-queue dev-queue git checkout be6c31bdaadacabdaa4b0d2a59a2b6b592ea1eb2 # save the config file mkdir build_dir && cp config build_dir/.config COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc olddefconfig COMPILER_INSTALL_PATH=$HOME/0day COMPILER=gcc-12.1.0 make.cross W=1 O=build_dir ARCH=sparc SHELL=/bin/bash drivers/net/ethernet/intel/ice/ If you fix the issue, kindly add following tag where applicable | Reported-by: kernel test robot All errors (new ones prefixed by >>): >> drivers/net/ethernet/intel/ice/ice_debugfs.c:67:6: error: redefinition of 'ice_debugfs_fwlog_init' 67 | void ice_debugfs_fwlog_init(struct ice_pf *pf) | ^~~~~~~~~~~~~~~~~~~~~~ In file included from drivers/net/ethernet/intel/ice/ice_debugfs.c:7: drivers/net/ethernet/intel/ice/ice.h:889:20: note: previous definition of 'ice_debugfs_fwlog_init' with type 'void(struct ice_pf *)' 889 | static inline void ice_debugfs_fwlog_init(struct ice_pf *pf) { } | ^~~~~~~~~~~~~~~~~~~~~~ >> drivers/net/ethernet/intel/ice/ice_debugfs.c:95:6: error: redefinition of 'ice_debugfs_init' 95 | void ice_debugfs_init(void) | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/intel/ice/ice.h:890:20: note: previous definition of 'ice_debugfs_init' with type 'void(void)' 890 | static inline void ice_debugfs_init(void) { } | ^~~~~~~~~~~~~~~~ >> drivers/net/ethernet/intel/ice/ice_debugfs.c:105:6: error: redefinition of 'ice_debugfs_exit' 105 | void ice_debugfs_exit(void) | ^~~~~~~~~~~~~~~~ drivers/net/ethernet/intel/ice/ice.h:891:20: note: previous definition of 'ice_debugfs_exit' with type 'void(void)' 891 | static inline void ice_debugfs_exit(void) { } | ^~~~~~~~~~~~~~~~ vim +/ice_debugfs_fwlog_init +67 drivers/net/ethernet/intel/ice/ice_debugfs.c 62 63 /** 64 * ice_debugfs_fwlog_init - setup the debugfs directory 65 * @pf: the ice that is starting up 66 */ > 67 void ice_debugfs_fwlog_init(struct ice_pf *pf) 68 { 69 const char *name = pci_name(pf->pdev); 70 struct dentry *pfile; 71 72 /* only support fw log commands on PF 0 */ 73 if (pf->hw.bus.func) 74 return; 75 76 pf->ice_debugfs_pf = debugfs_create_dir(name, ice_debugfs_root); 77 if (IS_ERR(pf->ice_debugfs_pf)) 78 return; 79 80 pfile = debugfs_create_file("fwlog", 0400, pf->ice_debugfs_pf, pf, 81 &ice_debugfs_command_fops); 82 if (!pfile) 83 goto create_failed; 84 85 return; 86 87 create_failed: 88 dev_err(ice_pf_to_dev(pf), "debugfs dir/file for %s failed\n", name); 89 debugfs_remove_recursive(pf->ice_debugfs_pf); 90 } 91 92 /** 93 * ice_debugfs_init - create root directory for debugfs entries 94 */ > 95 void ice_debugfs_init(void) 96 { 97 ice_debugfs_root = debugfs_create_dir(KBUILD_MODNAME, NULL); 98 if (IS_ERR(ice_debugfs_root)) 99 pr_info("init of debugfs failed\n"); 100 } 101 102 /** 103 * ice_debugfs_exit - remove debugfs entries 104 */ > 105 void ice_debugfs_exit(void) -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests