Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=198.175.65.10 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795954399; b=N2cJd94V5OygfcyK30zSHWLhx8hEznp0ezE/3HLLyb4l9k0AlgIINE/PIio9/z5fmfbV tVjdUtrv0NX+TDbmokiI4doKHA0M7kQNqQgJjg8LSJuz0ySz72luN9a9A9xgkWcICo7im cUC8qVSi68zs4/37+wU9Evh7r5N4BXihh75wD6hbED35vvcS1OG/nr4toCcJ54k8jNcWE uW3XwvW1pG8frr5CHyMAXQCoRuwM42EWYwNKwezhlcoqSV3AqQi2PBrPcON6hGE1+j/4G NXrUTpTlWgcNPZn0P41hTscPvG7fq7Wp9HpYcv9tBFFn3KHr4y+DFluJnoi4n3ryysA== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795954399; h=DMARC-Filter:DKIM-Signature:X-CSE-ConnectionGUID:X-CSE-MsgGUID: X-IronPort-AV:X-IronPort-AV:Received:X-CSE-ConnectionGUID: X-CSE-MsgGUID:X-ExtLoop1:X-IronPort-AV:Received:Received:Date:From:To: Cc:Subject:Message-ID:User-Agent; bh=suFmctrDO/++/BEVHmJra6Ly2018OirMe/PooRMdXB0=; b=iKt8zKUJD1vg/HaXXv5uGiwZ4SGkvATZUXJtZdmHhmLsZ5uKRIG0cEmx2PrC6Np2ei8Q io2Q9lyObNFXVNA+/+WrTyom6iQP54guUv9rAXHDiqdExvpe3tvRFDE3kW959BgKdGHqo +W/+kh+F7mEGMWuWOHyWM7AJhCHgR7eUgyZalC8pT9LfaAXEETwYO0VogSbBmboJHh2g1 7WftICyRxC2p2KBRKide93dHe2nC7v13kKDVarJ3qwRLNfB4sec60+VY5eKR3vM/xE+VJ Lmi8Iqv2GJNlWNWz34ofozcmXlLRpV/nZuLDxjvKvPRq8eDhXdxVzOFjU7P2LqSwXRA== ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b="m4w/RCbq"; arc=none smtp.remote-ip=198.175.65.10 Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.10]) (using TLSv1.2 with cipher ECDHE-ECDSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id DBBEA606A325 for ; Sun, 29 Nov 2026 12:13:18 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org DBBEA606A325 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=intel.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=m4w/RCbq DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795954399; x=1827490399; h=date:from:to:cc:subject:message-id; bh=qM6AKvQ6v5LK1HlcoHeJgjE6HbkK9/MSGNqrhYUvK5Q=; b=m4w/RCbqduxAm5Y+gkD/jncW9J52/3g+qRV0cdwpqqCKa8cUGnLqoHcY xT0vU2qQtLBtJvAEEMdr5f6BYHm707r6YBnqIO5LlV4OIUX719cAjomfm AKaNJ7R+sdpgcQETg1UMQiXjlrvLVwcIbHl7Ol9OJX9ft4xeQrIqu5m1B 8rGGRBqPDVKjFI1c0KU333TBDR0EC+6TaUNIcAT4RosVbFMGGAUOnjwq7 QV1iSsTAhmTtnZ8rZ4JZAq608/5qebZlQmKhNUBjKbpBogYIQ8aeq93lu 8CtdaGjSj3CJHoG92m/tmK8jS2CbvCS5jqM7x/uEUMKh1y/N8lOFObKSo w==; X-CSE-ConnectionGUID: br7oKXZlTrC1swNi1THBww== X-CSE-MsgGUID: N8gVj/shSbSM3wW3MEIfng== X-IronPort-AV: E=McAfee;i="6800,10657,11980"; a="4721967" X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4721967" Received: from orviesa010.jf.intel.com ([10.64.159.150]) by orvoesa102.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 29 Nov 2026 04:13:18 -0800 X-CSE-ConnectionGUID: +Xle7PkFS6+OBqh61bbN4A== X-CSE-MsgGUID: yA20yII5TCq3LJDZzRaggw== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,240,1787036400"; d="scan'208";a="4240658" Received: from igk-lkp-server01.igk.intel.com (HELO 146cf1e082f1) ([10.211.93.152]) by orviesa010.jf.intel.com with ESMTP; 29 Nov 2026 04:13:17 -0800 Received: from kbuild by 146cf1e082f1 with local (Exim 4.98.2) (envelope-from ) id 1xXdmM-0000000013O-2NTa; Sun, 29 Nov 2026 12:13:14 +0000 Date: Sun, 29 Nov 2026 13:12:29 +0100 From: kernel test robot To: Kumar Kartikeya Dwivedi Cc: oe-kbuild-all@lists.linux.dev Subject: [kkdwivedi:fermata 410/441] drivers/nvme/host/tcp.c:4464:2: error: implicit declaration of function 'bpf_struct_ops_for_each_prog' Message-ID: <20261129130419.OLepyQjg-lkp@intel.com> User-Agent: s-nail v14.9.25 X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list tree: https://github.com/kkdwivedi/linux fermata head: 71012f36d1d04ec653daeebbce8dccf19aeb205d commit: c694ea706b13a2ae779cf45a14ae9bdf18c42296 [410/441] nvme-tcp: Let a struct_ops hold a request, its frame in the request config: arc-randconfig-2200-20261129 (https://download.01.org/0day-ci/archive/20261129/20261129130419.OLepyQjg-lkp@intel.com/config) compiler: arc-linux-gcc (GCC) 10.5.0 smatch: v0.5.0-9187-g5189e3fb reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261129/20261129130419.OLepyQjg-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 | Closes: https://lore.kernel.org/oe-kbuild-all/20261129130419.OLepyQjg-lkp@intel.com/ All errors (new ones prefixed by >>): drivers/nvme/host/tcp.c: In function 'bpf_nvme_tcp_ops_reg': >> drivers/nvme/host/tcp.c:4464:2: error: implicit declaration of function 'bpf_struct_ops_for_each_prog' [-Werror=implicit-function-declaration] 4464 | bpf_struct_ops_for_each_prog(kdata, nvme_tcp_ext_first_prog, &prog); | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ In file included from include/linux/security.h:35, from include/net/scm.h:9, from include/linux/netlink.h:9, from include/uapi/linux/neighbour.h:6, from include/linux/netdevice.h:44, from include/net/sock.h:46, from drivers/nvme/host/tcp.c:16: drivers/nvme/host/tcp.c: In function 'nvme_tcp_exec_init': include/linux/bpf.h:2569:50: warning: statement with no effect [-Wunused-value] 2569 | #define register_bpf_struct_ops(st_ops, type) ({ (void *)(st_ops); 0; }) | ^~~~~~~~~~~~~~~~ drivers/nvme/host/tcp.c:4802:6: note: in expansion of macro 'register_bpf_struct_ops' 4802 | register_bpf_struct_ops(&bpf_bpf_nvme_tcp_ops, bpf_nvme_tcp_ops)) | ^~~~~~~~~~~~~~~~~~~~~~~ cc1: some warnings being treated as errors vim +/bpf_struct_ops_for_each_prog +4464 drivers/nvme/host/tcp.c 4453 4454 static int bpf_nvme_tcp_ops_reg(void *kdata, struct bpf_link *link) 4455 { 4456 struct nvme_tcp_ctrl *tctrl, *ctrl = NULL; 4457 struct bpf_nvme_tcp_ops *ops = kdata; 4458 const struct bpf_prog *prog = NULL; 4459 struct nvme_tcp_exec *exec; 4460 struct nvme_tcp_ext *ext; 4461 unsigned long index; 4462 int err = 0; 4463 > 4464 bpf_struct_ops_for_each_prog(kdata, nvme_tcp_ext_first_prog, &prog); 4465 if (!prog) 4466 return -EINVAL; 4467 mutex_lock(&nvme_tcp_ctrl_mutex); 4468 list_for_each_entry(tctrl, &nvme_tcp_ctrl_list, list) { 4469 if (tctrl->ctrl.instance == ops->ctrl && 4470 nvme_ctrl_state(&tctrl->ctrl) < NVME_CTRL_DELETING) { 4471 ctrl = tctrl; 4472 break; 4473 } 4474 } 4475 if (!ctrl) { 4476 err = -ENODEV; 4477 goto unlock; 4478 } 4479 ext = kzalloc(struct_size(ext, execs, ctrl->nr_allocated_queues), GFP_KERNEL); 4480 if (!ext) { 4481 err = -ENOMEM; 4482 goto unlock; 4483 } 4484 ext->ops = ops; 4485 ext->ctrl = ctrl; 4486 ext->prog = prog; 4487 ext->held_max = ops->held_max ?: NVME_TCP_HELD_MAX; 4488 ext->held_bound = msecs_to_jiffies(ops->held_ms ?: NVME_TCP_HELD_MS); 4489 ext->nr_queues = ctrl->nr_allocated_queues; 4490 4491 mutex_lock(&nvme_tcp_exec_mutex); 4492 if (nvme_tcp_ext_locked()) { 4493 err = -EBUSY; 4494 } else { 4495 nvme_get_ctrl(&ctrl->ctrl); 4496 xa_for_each(&nvme_tcp_execs, index, exec) 4497 if (exec->queue->ctrl == ctrl) 4498 nvme_tcp_held_open(ext, exec); 4499 static_call_update(nvme_tcp_ext_arrive_call, prog->bpf_func); 4500 static_branch_inc(&nvme_tcp_ext_key); 4501 rcu_assign_pointer(nvme_tcp_ext, ext); 4502 } 4503 mutex_unlock(&nvme_tcp_exec_mutex); 4504 if (err) 4505 kfree(ext); 4506 unlock: 4507 mutex_unlock(&nvme_tcp_ctrl_mutex); 4508 return err; 4509 } 4510 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki