From mboxrd@z Thu Jan 1 00:00:00 1970 Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.remote-ip=192.198.163.13 ARC-Seal: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; cv=none; t=1795722634; b=OVOj0Pm4WlepRfunKh0HDPvuZaCgOfQuALzDjN/jP+GCoX5v1y+B/c1uGklDcXSNZr3q pHDmohqvpceRBoAX611eF/RfZfv65Gbq8uJAOKAsQDVPMh4V2tBfZWK0DpUY6JCr+M6Xp eANpCYJnSL+TMuW7J5Z8jF6TCzIPBH2QHeQdp+HWh+aBQeecWcLKrP3POKjHsVsCjG+3X wU2LzfFCaHgEr2GDjBC3QJcGuPl3ZMHQ+umN7GA8BRbaNvdePJXuM0RRQipbLcNPd2sbr +80V+G5MC1VfoRL4NOWqQ1OZczk0IEz8059goaDUCBz+1UM2VdzO0oAkXRWFI256Nig== ARC-Message-Signature: i=1; d=subspace.kernel.org; s=arc20261015; a=rsa-sha256; c=relaxed/relaxed; t=1795722634; 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:References:MIME-Version:Content-Type: Content-Disposition:In-Reply-To; bh=PApAgSiln+hh6JflyYnfRekc/2BSzRX8bTBW8ZT3ly4=; b=T8qF7FvBEDXxr4Rk2HkkIMxAWyRhTSlBFzUfeK4c7gT2c8fm1znO6rBYRq20qod501tI ThFv/Gi+vaAuZQdQDpPyw7ge9A3Ka7IiQeoCLqrj6rnWIZ16fJicX1P3qY95YJM75zJdU UpRcQ/W79o2jJzpUhsUaQcTbWDmIDeW5BIpPFeFfE6jSPDv+O6nTwe+jbuwwS/3KZRv/V m8wpEriMAlJKkjSahcoYQxHsSY6gTtmRqOK3MlVTE+vFD4zNK8L/fYD6N6CSFyMBgoLn5 GHFw5ri+rK1n+l3UT0EIt6g4YcgOB7BbcrSv11D0Y7ukK/xR+ib5RFShALw3kwCmQKA== 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=AfzfecGW; arc=none smtp.remote-ip=192.198.163.13 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.13]) (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 E2695606A323; Thu, 26 Nov 2026 19:50:32 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.4.2 smtp.subspace.kernel.org E2695606A323 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=AfzfecGW DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1795722633; x=1827258633; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=7XbhYgmt9VIR+gaczvT2AxUQBvDrnRwFqc75UL7ToJo=; b=AfzfecGWw/Y/IOyS8PqfSX/QdPDsWNaLd28HzINxXPH1hjDywWXwge65 gHlvnrD0Ln4lGyr4T24Zf9c/qCDKnwww7goGNjjFYlwPqMGznMBVPp6Y8 cQQMmTek3KqwFpCH2mxc7rbc4/ERRgK12FRHOlCLZ0Z5kFJlAodlXh4U0 8mzIWlW/aIUcyRkeaDsowIStZuMSpRlkJaapaQvE9C85WIHP31b0fU/f3 hhM1OSy9LPWdTV3+BnGsMTB4dURB+Ojkuce/OX35ZWfKk8tccbqWgtt39 NCz/xUR6RWxYFRRr1dRAEwO7yQ/JsX9NTQTMVNwPzY9uTnC8xcnD2S/zu A==; X-CSE-ConnectionGUID: OkXnngiJTVasE51NZl98zA== X-CSE-MsgGUID: RbgBQxaWTQCdW+KBINpmRw== X-IronPort-AV: E=McAfee;i="6800,10657,11978"; a="4607424" X-IronPort-AV: E=Sophos;i="6.27,235,1787036400"; d="scan'208";a="4607424" Received: from fmviesa009.fm.intel.com ([10.60.135.149]) by fmvoesa107.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 26 Nov 2026 11:50:32 -0800 X-CSE-ConnectionGUID: o83//Om2QLucrqmvDUMgkQ== X-CSE-MsgGUID: 5IP6TDIYQaaw1vayA23NAQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.27,235,1787036400"; d="scan'208";a="12657769" Received: from lkp-server01.sh.intel.com (HELO 0caa9d2d175c) ([10.239.97.150]) by fmviesa009.fm.intel.com with ESMTP; 26 Nov 2026 11:50:28 -0800 Received: from kbuild by 0caa9d2d175c with local (Exim 4.98.2) (envelope-from ) id 1xWfU8-00000001Uj6-0ghg; Thu, 26 Nov 2026 19:50:24 +0000 Date: Fri, 27 Nov 2026 03:49:52 +0800 From: kernel test robot To: Hannes Reinecke , Keith Busch , Jens Axboe , Christoph Hellwig , Sagi Grimberg , Hannes Reinecke , Chaitanya Kulkarni , Eric Biggers , David Howells , Jarkko Sakkinen , Jonathan Corbet , Shuah Khan , Randy Dunlap , Kees Cook , "Gustavo A. R. Silva" Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev, linux-nvme@lists.infradead.org, linux-kernel@vger.kernel.org, keyrings@vger.kernel.org, linux-doc@vger.kernel.org, linux-hardening@vger.kernel.org Subject: Re: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring Message-ID: <20261127034638.jk3QPDaD-lkp@intel.com> References: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org> X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Post: List-Help: List-Subscribe: List-Unsubscribe: List-Owner: Precedence: list MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20261126-dhchap-keyring-v4-v7-5-ee438ffea527@kernel.org> Hi Hannes, kernel test robot noticed the following build errors: [auto build test ERROR on 68099cf27253a8c89d703a282d3d811446d9453b] url: https://github.com/intel-lab-lkp/linux/commits/Hannes-Reinecke/nvme-auth-modify-nvme_auth_transform_key-to-return-status/20261126-151219 base: 68099cf27253a8c89d703a282d3d811446d9453b patch link: https://lore.kernel.org/r/20261126-dhchap-keyring-v4-v7-5-ee438ffea527%40kernel.org patch subject: [PATCH v7 05/14] nvme-keyring: link addtional keyring into .nvme keyring config: loongarch-defconfig (https://download.01.org/0day-ci/archive/20261127/20261127034638.jk3QPDaD-lkp@intel.com/config) compiler: clang version 24.0.0git (https://github.com/llvm/llvm-project fb29ca8163c3309160711e5a14eb46bc6d4fdad2) reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261127/20261127034638.jk3QPDaD-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/20261127034638.jk3QPDaD-lkp@intel.com/ All error/warnings (new ones prefixed by >>): In file included from drivers/nvme/host/sysfs.c:9: >> include/linux/nvme-keyring.h:47:5: warning: no previous prototype for function 'nvme_keyring_unlink' [-Wmissing-prototypes] 47 | int nvme_keyring_unlink(struct key *keyring) | ^ include/linux/nvme-keyring.h:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 47 | int nvme_keyring_unlink(struct key *keyring) | ^ | static include/linux/nvme-keyring.h:39:20: warning: unused function 'nvme_keyring_name' [-Wunused-function] 39 | static const char *nvme_keyring_name(void) | ^~~~~~~~~~~~~~~~~ include/linux/nvme-keyring.h:43:12: warning: unused function 'nvme_keyring_link' [-Wunused-function] 43 | static int nvme_keyring_link(struct key *keyring) | ^~~~~~~~~~~~~~~~~ 3 warnings generated. -- In file included from drivers/nvme/host/fabrics.c:15: >> include/linux/nvme-keyring.h:47:5: warning: no previous prototype for function 'nvme_keyring_unlink' [-Wmissing-prototypes] 47 | int nvme_keyring_unlink(struct key *keyring) | ^ include/linux/nvme-keyring.h:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 47 | int nvme_keyring_unlink(struct key *keyring) | ^ | static include/linux/nvme-keyring.h:39:20: warning: unused function 'nvme_keyring_name' [-Wunused-function] 39 | static const char *nvme_keyring_name(void) | ^~~~~~~~~~~~~~~~~ 2 warnings generated. -- In file included from drivers/nvme/host/tcp.c:15: >> include/linux/nvme-keyring.h:47:5: warning: no previous prototype for function 'nvme_keyring_unlink' [-Wmissing-prototypes] 47 | int nvme_keyring_unlink(struct key *keyring) | ^ include/linux/nvme-keyring.h:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 47 | int nvme_keyring_unlink(struct key *keyring) | ^ | static >> drivers/nvme/host/tcp.c:2420:34: error: too few arguments to function call, expected 3, have 2 2419 | pskid = nvme_tls_psk_default(ctrl->opts->host->nqn, | ~~~~~~~~~~~~~~~~~~~~ 2420 | ctrl->opts->subsysnqn); | ^ include/linux/nvme-keyring.h:30:28: note: 'nvme_tls_psk_default' declared here 30 | static inline key_serial_t nvme_tls_psk_default(struct key *keyring, | ^ ~~~~~~~~~~~~~~~~~~~~ 31 | const char *hostnqn, const char *subnqn) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. -- In file included from tcp.c:15: >> include/linux/nvme-keyring.h:47:5: warning: no previous prototype for function 'nvme_keyring_unlink' [-Wmissing-prototypes] 47 | int nvme_keyring_unlink(struct key *keyring) | ^ include/linux/nvme-keyring.h:47:1: note: declare 'static' if the function is not intended to be used outside of this translation unit 47 | int nvme_keyring_unlink(struct key *keyring) | ^ | static tcp.c:2420:34: error: too few arguments to function call, expected 3, have 2 2419 | pskid = nvme_tls_psk_default(ctrl->opts->host->nqn, | ~~~~~~~~~~~~~~~~~~~~ 2420 | ctrl->opts->subsysnqn); | ^ include/linux/nvme-keyring.h:30:28: note: 'nvme_tls_psk_default' declared here 30 | static inline key_serial_t nvme_tls_psk_default(struct key *keyring, | ^ ~~~~~~~~~~~~~~~~~~~~ 31 | const char *hostnqn, const char *subnqn) | ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ 1 warning and 1 error generated. vim +2420 drivers/nvme/host/tcp.c 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2409 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2410 static int nvme_tcp_alloc_admin_queue(struct nvme_ctrl *ctrl) 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2411 { 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2412 int ret; be8e82caa68599 Hannes Reinecke 2023-08-24 2413 key_serial_t pskid = 0; be8e82caa68599 Hannes Reinecke 2023-08-24 2414 363895767fbfa0 Hannes Reinecke 2024-07-22 2415 if (nvme_tcp_tls_configured(ctrl)) { adf22c520b5ec4 Hannes Reinecke 2023-08-24 2416 if (ctrl->opts->tls_key) adf22c520b5ec4 Hannes Reinecke 2023-08-24 2417 pskid = key_serial(ctrl->opts->tls_key); e88a7595b57f2a Hannes Reinecke 2025-02-24 2418 else if (ctrl->opts->tls) { 83137991c12380 Hannes Reinecke 2026-11-26 2419 pskid = nvme_tls_psk_default(ctrl->opts->host->nqn, be8e82caa68599 Hannes Reinecke 2023-08-24 @2420 ctrl->opts->subsysnqn); be8e82caa68599 Hannes Reinecke 2023-08-24 2421 if (!pskid) { be8e82caa68599 Hannes Reinecke 2023-08-24 2422 dev_err(ctrl->device, "no valid PSK found\n"); ef184b8844bf98 Guixin Liu 2023-12-31 2423 return -ENOKEY; be8e82caa68599 Hannes Reinecke 2023-08-24 2424 } be8e82caa68599 Hannes Reinecke 2023-08-24 2425 } 363895767fbfa0 Hannes Reinecke 2024-07-22 2426 } 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2427 be8e82caa68599 Hannes Reinecke 2023-08-24 2428 ret = nvme_tcp_alloc_queue(ctrl, 0, pskid); 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2429 if (ret) ef184b8844bf98 Guixin Liu 2023-12-31 2430 return ret; 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2431 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2432 ret = nvme_tcp_alloc_async_req(to_tcp_ctrl(ctrl)); 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2433 if (ret) 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2434 goto out_free_queue; 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2435 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2436 return 0; 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2437 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2438 out_free_queue: 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2439 nvme_tcp_free_queue(ctrl, 0); 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2440 return ret; 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2441 } 3f2304f8c6d6ed Sagi Grimberg 2018-12-03 2442 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki