Re: [PATCH] net: af_packet: add af_packet hrtimer mode
From: kernel test robot <hidden>
Date: 2025-08-06 20:29:11
Also in:
lkml, oe-kbuild-all
Hi Xin, kernel test robot noticed the following build errors: [auto build test ERROR on net-next/main] [also build test ERROR on net/main linus/master v6.16 next-20250806] [cannot apply to horms-ipvs/master] [If your patch is applied to the wrong git tree, kindly drop us a note. And when submitting patch, we suggest to use '--base' as documented in https://git-scm.com/docs/git-format-patch#_base_tree_information] url: https://github.com/intel-lab-lkp/linux/commits/Xin-Zhao/net-af_packet-add-af_packet-hrtimer-mode/20250806-135354 base: net-next/main patch link: https://lore.kernel.org/r/20250806055210.1530081-1-jackzxcui1989%40163.com patch subject: [PATCH] net: af_packet: add af_packet hrtimer mode config: x86_64-randconfig-004-20250807 (https://download.01.org/0day-ci/archive/20250807/202508070419.1T0vxudH-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14+deb12u1) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250807/202508070419.1T0vxudH-lkp@intel.com/reproduce) 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 [off-list ref] | Closes: https://lore.kernel.org/oe-kbuild-all/202508070419.1T0vxudH-lkp@intel.com/ (local) All errors (new ones prefixed by >>): net/packet/af_packet.c: In function 'prb_setup_retire_blk_timer':
quoted
net/packet/af_packet.c:615:9: error: implicit declaration of function 'hrtimer_init'; did you mean 'hrtimers_init'? [-Werror=implicit-function-declaration]
615 | hrtimer_init(&pkc->retire_blk_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
| ^~~~~~~~~~~~
| hrtimers_init
cc1: some warnings being treated as errors
vim +615 net/packet/af_packet.c
608
609 static void prb_setup_retire_blk_timer(struct packet_sock *po)
610 {
611 struct tpacket_kbdq_core *pkc;
612
613 pkc = GET_PBDQC_FROM_RB(&po->rx_ring);
614 #ifdef CONFIG_PACKET_HRTIMER
> 615 hrtimer_init(&pkc->retire_blk_timer, CLOCK_MONOTONIC, HRTIMER_MODE_REL_SOFT);
616 pkc->retire_blk_timer.function = prb_retire_rx_blk_timer_expired;
617 if (pkc->tov_in_msecs == 0)
618 pkc->tov_in_msecs = jiffies_to_msecs(1);
619 #else
620 timer_setup(&pkc->retire_blk_timer, prb_retire_rx_blk_timer_expired,
621 0);
622 pkc->retire_blk_timer.expires = jiffies;
623 #endif
624 }
625
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki