* Re: [PATCH net] page_pool: store detach_time as ktime_t to avoid false-negatives
[not found] <20260307204022.1897614-1-kuba@kernel.org>
@ 2026-03-08 5:05 ` kernel test robot
2026-03-08 5:06 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-08 5:05 UTC (permalink / raw)
To: Jakub Kicinski, davem
Cc: llvm, oe-kbuild-all, netdev, edumazet, pabeni, andrew+netdev,
horms, Jakub Kicinski, hawk, ilias.apalodimas
Hi Jakub,
kernel test robot noticed the following build errors:
[auto build test ERROR on net/main]
url: https://github.com/intel-lab-lkp/linux/commits/Jakub-Kicinski/page_pool-store-detach_time-as-ktime_t-to-avoid-false-negatives/20260308-044057
base: net/main
patch link: https://lore.kernel.org/r/20260307204022.1897614-1-kuba%40kernel.org
patch subject: [PATCH net] page_pool: store detach_time as ktime_t to avoid false-negatives
config: loongarch-randconfig-001-20260308 (https://download.01.org/0day-ci/archive/20260308/202603081213.mN3LtMM5-lkp@intel.com/config)
compiler: clang version 19.1.7 (https://github.com/llvm/llvm-project cd708029e0b2869e80abe31ddb175f7c35361f90)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260308/202603081213.mN3LtMM5-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603081213.mN3LtMM5-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/core/page_pool_user.c:248:5: error: call to undeclared function 'ktime_to_seconds'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
248 | ktime_to_seconds(pool->user.detach_time)))
| ^
net/core/page_pool_user.c:248:5: note: did you mean 'ktime_get_seconds'?
include/linux/timekeeping.h:59:17: note: 'ktime_get_seconds' declared here
59 | extern time64_t ktime_get_seconds(void);
| ^
1 error generated.
vim +/ktime_to_seconds +248 net/core/page_pool_user.c
214
215 static int
216 page_pool_nl_fill(struct sk_buff *rsp, const struct page_pool *pool,
217 const struct genl_info *info)
218 {
219 size_t inflight, refsz;
220 unsigned int napi_id;
221 void *hdr;
222
223 hdr = genlmsg_iput(rsp, info);
224 if (!hdr)
225 return -EMSGSIZE;
226
227 if (nla_put_uint(rsp, NETDEV_A_PAGE_POOL_ID, pool->user.id))
228 goto err_cancel;
229
230 if (pool->slow.netdev->ifindex != LOOPBACK_IFINDEX &&
231 nla_put_u32(rsp, NETDEV_A_PAGE_POOL_IFINDEX,
232 pool->slow.netdev->ifindex))
233 goto err_cancel;
234
235 napi_id = pool->p.napi ? READ_ONCE(pool->p.napi->napi_id) : 0;
236 if (napi_id_valid(napi_id) &&
237 nla_put_uint(rsp, NETDEV_A_PAGE_POOL_NAPI_ID, napi_id))
238 goto err_cancel;
239
240 inflight = page_pool_inflight(pool, false);
241 refsz = PAGE_SIZE << pool->p.order;
242 if (nla_put_uint(rsp, NETDEV_A_PAGE_POOL_INFLIGHT, inflight) ||
243 nla_put_uint(rsp, NETDEV_A_PAGE_POOL_INFLIGHT_MEM,
244 inflight * refsz))
245 goto err_cancel;
246 if (pool->user.detach_time &&
247 nla_put_uint(rsp, NETDEV_A_PAGE_POOL_DETACH_TIME,
> 248 ktime_to_seconds(pool->user.detach_time)))
249 goto err_cancel;
250
251 if (pool->mp_ops && pool->mp_ops->nl_fill(pool->mp_priv, rsp, NULL))
252 goto err_cancel;
253
254 genlmsg_end(rsp, hdr);
255
256 return 0;
257 err_cancel:
258 genlmsg_cancel(rsp, hdr);
259 return -EMSGSIZE;
260 }
261
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread* Re: [PATCH net] page_pool: store detach_time as ktime_t to avoid false-negatives
[not found] <20260307204022.1897614-1-kuba@kernel.org>
2026-03-08 5:05 ` [PATCH net] page_pool: store detach_time as ktime_t to avoid false-negatives kernel test robot
@ 2026-03-08 5:06 ` kernel test robot
1 sibling, 0 replies; 2+ messages in thread
From: kernel test robot @ 2026-03-08 5:06 UTC (permalink / raw)
To: Jakub Kicinski, davem
Cc: llvm, oe-kbuild-all, netdev, edumazet, pabeni, andrew+netdev,
horms, Jakub Kicinski, hawk, ilias.apalodimas
Hi Jakub,
kernel test robot noticed the following build errors:
[auto build test ERROR on net/main]
url: https://github.com/intel-lab-lkp/linux/commits/Jakub-Kicinski/page_pool-store-detach_time-as-ktime_t-to-avoid-false-negatives/20260308-044057
base: net/main
patch link: https://lore.kernel.org/r/20260307204022.1897614-1-kuba%40kernel.org
patch subject: [PATCH net] page_pool: store detach_time as ktime_t to avoid false-negatives
config: x86_64-kexec (https://download.01.org/0day-ci/archive/20260308/202603080650.SZhWEYVL-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260308/202603080650.SZhWEYVL-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 <lkp@intel.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202603080650.SZhWEYVL-lkp@intel.com/
All errors (new ones prefixed by >>):
>> net/core/page_pool_user.c:248:5: error: call to undeclared function 'ktime_to_seconds'; ISO C99 and later do not support implicit function declarations [-Wimplicit-function-declaration]
248 | ktime_to_seconds(pool->user.detach_time)))
| ^
net/core/page_pool_user.c:248:5: note: did you mean 'ktime_get_seconds'?
include/linux/timekeeping.h:59:17: note: 'ktime_get_seconds' declared here
59 | extern time64_t ktime_get_seconds(void);
| ^
1 error generated.
vim +/ktime_to_seconds +248 net/core/page_pool_user.c
214
215 static int
216 page_pool_nl_fill(struct sk_buff *rsp, const struct page_pool *pool,
217 const struct genl_info *info)
218 {
219 size_t inflight, refsz;
220 unsigned int napi_id;
221 void *hdr;
222
223 hdr = genlmsg_iput(rsp, info);
224 if (!hdr)
225 return -EMSGSIZE;
226
227 if (nla_put_uint(rsp, NETDEV_A_PAGE_POOL_ID, pool->user.id))
228 goto err_cancel;
229
230 if (pool->slow.netdev->ifindex != LOOPBACK_IFINDEX &&
231 nla_put_u32(rsp, NETDEV_A_PAGE_POOL_IFINDEX,
232 pool->slow.netdev->ifindex))
233 goto err_cancel;
234
235 napi_id = pool->p.napi ? READ_ONCE(pool->p.napi->napi_id) : 0;
236 if (napi_id_valid(napi_id) &&
237 nla_put_uint(rsp, NETDEV_A_PAGE_POOL_NAPI_ID, napi_id))
238 goto err_cancel;
239
240 inflight = page_pool_inflight(pool, false);
241 refsz = PAGE_SIZE << pool->p.order;
242 if (nla_put_uint(rsp, NETDEV_A_PAGE_POOL_INFLIGHT, inflight) ||
243 nla_put_uint(rsp, NETDEV_A_PAGE_POOL_INFLIGHT_MEM,
244 inflight * refsz))
245 goto err_cancel;
246 if (pool->user.detach_time &&
247 nla_put_uint(rsp, NETDEV_A_PAGE_POOL_DETACH_TIME,
> 248 ktime_to_seconds(pool->user.detach_time)))
249 goto err_cancel;
250
251 if (pool->mp_ops && pool->mp_ops->nl_fill(pool->mp_priv, rsp, NULL))
252 goto err_cancel;
253
254 genlmsg_end(rsp, hdr);
255
256 return 0;
257 err_cancel:
258 genlmsg_cancel(rsp, hdr);
259 return -EMSGSIZE;
260 }
261
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread