[openeuler:OLK-6.6 3508/3508] drivers/ub/urma/ubcore/ubcore_msg.c:205:27: sparse: sparse: symbol 'ubcore_asyn_send_ue2mue_msg' was not declared. Should it be static?
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: d281438782e3c28a3df71a64513a3312d43dcf01 commit: b303cf2411a212c47f1dc4616f77ea9ae016696d [3508/3508] ubcore: add genl, netlink and vtp support to ubcore module. config: arm64-randconfig-r112-20251210 (https://download.01.org/0day-ci/archive/20251211/202512110538.WcU44lJd-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251211/202512110538.WcU44lJd-lkp@i...) If you fix the issue in a separate patch/commit (i.e. not just a new version of the same patch/commit), kindly add following tags | Reported-by: kernel test robot <lkp@intel.com> | Closes: https://lore.kernel.org/oe-kbuild-all/202512110538.WcU44lJd-lkp@intel.com/ sparse warnings: (new ones prefixed by >>)
drivers/ub/urma/ubcore/ubcore_msg.c:205:27: sparse: sparse: symbol 'ubcore_asyn_send_ue2mue_msg' was not declared. Should it be static? -- drivers/ub/urma/ubcore/ubcore_device.c:322:22: sparse: sparse: symbol 'ubcore_find_mue_device_legacy' was not declared. Should it be static? drivers/ub/urma/ubcore/ubcore_device.c:1354:5: sparse: sparse: symbol 'ubcore_dispatch_event' was not declared. Should it be static? drivers/ub/urma/ubcore/ubcore_device.c:2010:6: sparse: sparse: symbol 'ubcore_net_exit' was not declared. Should it be static? drivers/ub/urma/ubcore/ubcore_device.c:474:56: sparse: sparse: invalid access past the end of 'g_ht_params' (160 160) drivers/ub/urma/ubcore/ubcore_device.c:477:58: sparse: sparse: invalid access past the end of 'g_ht_params' (200 160) drivers/ub/urma/ubcore/ubcore_device.c:486:58: sparse: sparse: invalid access past the end of 'g_ht_params' (520 160) drivers/ub/urma/ubcore/ubcore_device.c:490:57: sparse: sparse: invalid access past the end of 'g_ht_params' (600 160) -- drivers/ub/urma/ubcore/ubcore_vtp.c:170:6: sparse: sparse: symbol 'ubcore_add_vtp_work_list' was not declared. Should it be static? drivers/ub/urma/ubcore/ubcore_vtp.c:177:6: sparse: sparse: symbol 'ubcore_del_vtp_work_list' was not declared. Should it be static?
vim +/ubcore_asyn_send_ue2mue_msg +205 drivers/ub/urma/ubcore/ubcore_msg.c 201 202 /** 203 * If you do not need to wait for the response of a message, use ubcore_asyn_send_ue2mue_msg. 204 */
205 struct ubcore_msg_session * 206 ubcore_asyn_send_ue2mue_msg(struct ubcore_device *dev, struct ubcore_req *req) 207 { 208 struct ubcore_msg_session *s; 209 int ret; 210 211 req->msg_id = ubcore_get_msg_seq(); 212 s = ubcore_create_msg_session(req); 213 if (s == NULL) { 214 ubcore_log_err("Failed to create req session!\n"); 215 return NULL; 216 } 217 218 ret = ubcore_send_req(dev, req); 219 (void)kref_put(&s->kref, ubcore_free_msg_session); 220 if (ret != 0) { 221 ubcore_log_err( 222 "Failed to send req, msg_id = %u, opcode = %u.\n", 223 req->msg_id, (uint16_t)req->opcode); 224 ubcore_destroy_msg_session(s); 225 return NULL; 226 } 227 return s; 228 } 229
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot