[openeuler:OLK-6.6 13/13] drivers/ub/ubus/services/hotplug/hotplug_msg.c:48:6: warning: no previous prototype for 'ubhp_handle_event'
tree: https://gitee.com/openeuler/kernel.git OLK-6.6 head: 03c9c649e6f28e26260d276ce755f785b2435da3 commit: 03f481a88c6b72336d8e6cba6f2b71d6f28e2027 [13/13] ub:ubus: Support processing protocol link messages config: arm64-randconfig-004-20251226 (https://download.01.org/0day-ci/archive/20251228/202512281950.nFNoH9PH-lkp@i...) compiler: aarch64-linux-gcc (GCC) 13.4.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20251228/202512281950.nFNoH9PH-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/202512281950.nFNoH9PH-lkp@intel.com/ All warnings (new ones prefixed by >>):
drivers/ub/ubus/services/hotplug/hotplug_msg.c:48:6: warning: no previous prototype for 'ubhp_handle_event' [-Wmissing-prototypes] 48 | void ubhp_handle_event(struct ub_slot *slot, enum hotplug_event event) | ^~~~~~~~~~~~~~~~~
Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for RESCTRL_FS Depends on [n]: MISC_FILESYSTEMS [=n] && ARCH_HAS_CPU_RESCTRL [=y] Selected by [y]: - ARM64_MPAM [=y] vim +/ubhp_handle_event +48 drivers/ub/ubus/services/hotplug/hotplug_msg.c 47
48 void ubhp_handle_event(struct ub_slot *slot, enum hotplug_event event) 49 { 50 bool queued = false; 51 u32 flag; 52 53 if (!ubhp_confirm_event(slot, event)) 54 return; 55 56 /** 57 * get slot if work is queued 58 * queue_work: return false if work already exists 59 * mod_delayed_work: return true if work exists, with its timer modified 60 */ 61 if (event == HPE_BUTTON_PRESSED) { 62 queued = queue_work(get_rx_msg_wq(UB_MSG_CODE_LINK), 63 &slot->button_work); 64 } else if (event == HPE_PRESENCE_DETECT) { 65 flag = work_busy(&slot->present_work.work); 66 if (!(flag & WORK_BUSY_RUNNING)) 67 queued = !mod_delayed_work( 68 get_rx_msg_wq(UB_MSG_CODE_LINK), 69 &slot->present_work, 0); 70 } 71 if (queued) 72 ubhp_get_slot(slot); 73 } 74
-- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki
participants (1)
-
kernel test robot