From: kernel test robot <lkp@intel.com>
To: Jakub Kicinski <kuba@kernel.org>, davem@davemloft.net
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
netdev@vger.kernel.org, edumazet@google.com, pabeni@redhat.com,
andrew+netdev@lunn.ch, horms@kernel.org,
Jakub Kicinski <kuba@kernel.org>,
hawk@kernel.org, ilias.apalodimas@linaro.org
Subject: Re: [PATCH net] page_pool: store detach_time as ktime_t to avoid false-negatives
Date: Sun, 8 Mar 2026 13:05:12 +0800 [thread overview]
Message-ID: <202603081213.mN3LtMM5-lkp@intel.com> (raw)
In-Reply-To: <20260307204022.1897614-1-kuba@kernel.org>
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
next prev parent reply other threads:[~2026-03-08 5:05 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-07 20:40 [PATCH net] page_pool: store detach_time as ktime_t to avoid false-negatives Jakub Kicinski
2026-03-08 0:10 ` Eric Dumazet
2026-03-08 16:21 ` Jakub Kicinski
2026-03-08 4:54 ` kernel test robot
2026-03-08 5:05 ` kernel test robot [this message]
2026-03-08 5:06 ` kernel test robot
2026-03-08 5:17 ` kernel test robot
2026-03-09 9:42 ` Jesper Dangaard Brouer
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=202603081213.mN3LtMM5-lkp@intel.com \
--to=lkp@intel.com \
--cc=andrew+netdev@lunn.ch \
--cc=davem@davemloft.net \
--cc=edumazet@google.com \
--cc=hawk@kernel.org \
--cc=horms@kernel.org \
--cc=ilias.apalodimas@linaro.org \
--cc=kuba@kernel.org \
--cc=llvm@lists.linux.dev \
--cc=netdev@vger.kernel.org \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=pabeni@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.