From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id 827C7CEDDA9 for ; Thu, 10 Oct 2024 01:10:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20210309; h=Sender:List-Subscribe:List-Help :List-Post:List-Archive:List-Unsubscribe:List-Id:In-Reply-To:Content-Type: MIME-Version:References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Owner; bh=TuXu7xFS3DlCCIq2UNCZc8HWgItGj4KrrL2pVI8LQYw=; b=a90GMUoKeVZYr3dzBGhVVRMjNy xlkROEZGAQW6t821Fg9M7vjDOW1J7FwMUNB+Uc4p1uxAmwsBSyOzOV0VXPdNNZ3ixZKW1JWU/GQ94 FUNrNGT21R8PzxA5xAQJhb6xFKS8LYHQM0hoLwg+1KTl++Zov+w4/KJehnbHNFCp9cHFobdH58hIN K1ogW6GT6bGMXYHcB6SjZyfVz8ev3cgtvBynLnCaLdZ0+kh346gs8mtB+Lu7lmOSc5+RYR92c+USv 96lZL5o6n4uff0FH8PqG2sCK36eY+DioBB5rhSEX11xHq0qT14e4NxXUjAb/w1grsdQZBCNL9SxXV pmT7zWhg==; Received: from localhost ([::1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.98 #2 (Red Hat Linux)) id 1syhhZ-0000000BBb6-3Mpf; Thu, 10 Oct 2024 01:10:49 +0000 Received: from mgamail.intel.com ([192.198.163.14]) by bombadil.infradead.org with esmtps (Exim 4.98 #2 (Red Hat Linux)) id 1syhhW-0000000BBZY-36uw for linux-nvme@lists.infradead.org; Thu, 10 Oct 2024 01:10:48 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1728522647; x=1760058647; h=date:from:to:cc:subject:message-id:references: mime-version:in-reply-to; bh=Qq985kPM2kR5NPx7dLci4TmZFgYxHUtg9/kh9dwzS7c=; b=KcxWoLEes/QEF55L9xMpnQ934HuBQFqxFzJIAGj2fuXsOtYJv077SsLs LKPaLNw59iXP+pA1dILAHLpF29niBZx5t3Zw1a22wv57bYIA2Xznx4x1G asKkrtV2Ll35uNY6Qw998Hcj8AvJF0o78hI3wle8ya7C4gcg51ZChEqVV NWdaemNTpmuAjHuT41dN95X9wC0qyEm+QTkb6+Tt9HHNUDezt1TY4TXtO oZKSRMNYgy2EpIg2xe22ankOTPFQP3v4q3sTBtvKRBzoTwbx26Lfzvptg uLXUsaakDF58g8+GJH2bsm+5QxGh1dFE6OwCRrb5jSbekjTIL2tm9Utzz A==; X-CSE-ConnectionGUID: OI9DF8wjTQiatB3BygUbNw== X-CSE-MsgGUID: 6lRlBQAkSImE65eHfDlApA== X-IronPort-AV: E=McAfee;i="6700,10204,11220"; a="28015192" X-IronPort-AV: E=Sophos;i="6.11,191,1725346800"; d="scan'208";a="28015192" Received: from fmviesa005.fm.intel.com ([10.60.135.145]) by fmvoesa108.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 09 Oct 2024 18:10:41 -0700 X-CSE-ConnectionGUID: teWRoEUTS/WA7fSvj/H55g== X-CSE-MsgGUID: OMIvwlOFTBCz35hqcw06eA== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.11,191,1725346800"; d="scan'208";a="80951730" Received: from lkp-server01.sh.intel.com (HELO a48cf1aa22e8) ([10.239.97.150]) by fmviesa005.fm.intel.com with ESMTP; 09 Oct 2024 18:10:37 -0700 Received: from kbuild by a48cf1aa22e8 with local (Exim 4.96) (envelope-from ) id 1syhhL-000A0N-0V; Thu, 10 Oct 2024 01:10:35 +0000 Date: Thu, 10 Oct 2024 09:10:29 +0800 From: kernel test robot To: Damien Le Moal , linux-nvme@lists.infradead.org, Keith Busch , Christoph Hellwig , Sagi Grimberg , Manivannan Sadhasivam , Krzysztof =?utf-8?Q?Wilczy=C5=84ski?= , Kishon Vijay Abraham I , Bjorn Helgaas , Lorenzo Pieralisi , linux-pci@vger.kernel.org Cc: oe-kbuild-all@lists.linux.dev, Rick Wertenbroek , Niklas Cassel Subject: Re: [PATCH v1 4/5] PCI: endpoint: Add NVMe endpoint function driver Message-ID: <202410100833.wTKBq6k1-lkp@intel.com> References: <20241007044351.157912-5-dlemoal@kernel.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20241007044351.157912-5-dlemoal@kernel.org> X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20241009_181046_821737_A24DBE95 X-CRM114-Status: GOOD ( 14.89 ) X-BeenThere: linux-nvme@lists.infradead.org X-Mailman-Version: 2.1.34 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "Linux-nvme" Errors-To: linux-nvme-bounces+linux-nvme=archiver.kernel.org@lists.infradead.org Hi Damien, kernel test robot noticed the following build errors: [auto build test ERROR on pci/next] [also build test ERROR on pci/for-linus linus/master v6.12-rc2 next-20241009] [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/Damien-Le-Moal/nvmet-rename-and-move-nvmet_get_log_page_len/20241007-124428 base: https://git.kernel.org/pub/scm/linux/kernel/git/pci/pci.git next patch link: https://lore.kernel.org/r/20241007044351.157912-5-dlemoal%40kernel.org patch subject: [PATCH v1 4/5] PCI: endpoint: Add NVMe endpoint function driver config: microblaze-allmodconfig (https://download.01.org/0day-ci/archive/20241010/202410100833.wTKBq6k1-lkp@intel.com/config) compiler: microblaze-linux-gcc (GCC) 14.1.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20241010/202410100833.wTKBq6k1-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/202410100833.wTKBq6k1-lkp@intel.com/ All error/warnings (new ones prefixed by >>): >> drivers/pci/endpoint/functions/pci-epf-nvme.c:81:33: error: field 'pci_map' has incomplete type 81 | struct pci_epc_map pci_map; | ^~~~~~~ drivers/pci/endpoint/functions/pci-epf-nvme.c: In function 'pci_epf_nvme_mmio_transfer': >> drivers/pci/endpoint/functions/pci-epf-nvme.c:415:28: error: storage size of 'map' isn't known 415 | struct pci_epc_map map; | ^~~ >> drivers/pci/endpoint/functions/pci-epf-nvme.c:419:15: error: implicit declaration of function 'pci_epc_mem_map'; did you mean 'pci_epc_mem_exit'? [-Wimplicit-function-declaration] 419 | ret = pci_epc_mem_map(epf->epc, epf->func_no, epf->vfunc_no, | ^~~~~~~~~~~~~~~ | pci_epc_mem_exit >> drivers/pci/endpoint/functions/pci-epf-nvme.c:438:9: error: implicit declaration of function 'pci_epc_mem_unmap'; did you mean 'pci_epc_mem_init'? [-Wimplicit-function-declaration] 438 | pci_epc_mem_unmap(epf->epc, epf->func_no, epf->vfunc_no, &map); | ^~~~~~~~~~~~~~~~~ | pci_epc_mem_init >> drivers/pci/endpoint/functions/pci-epf-nvme.c:415:28: warning: unused variable 'map' [-Wunused-variable] 415 | struct pci_epc_map map; | ^~~ In file included from include/linux/bits.h:7, from include/linux/bitops.h:6, from include/linux/log2.h:12, from include/asm-generic/div64.h:55, from ./arch/microblaze/include/generated/asm/div64.h:1, from include/linux/math.h:6, from include/linux/delay.h:22, from drivers/pci/endpoint/functions/pci-epf-nvme.c:10: drivers/pci/endpoint/functions/pci-epf-nvme.c: In function 'pci_epf_nvme_init_ctrl_regs': include/uapi/linux/bits.h:8:31: warning: left shift count >= width of type [-Wshift-count-overflow] 8 | (((~_UL(0)) - (_UL(1) << (l)) + 1) & \ | ^~ include/linux/bits.h:35:38: note: in expansion of macro '__GENMASK' 35 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/pci/endpoint/functions/pci-epf-nvme.c:1391:23: note: in expansion of macro 'GENMASK' 1391 | ctrl->cap &= ~GENMASK(35, 32); | ^~~~~~~ include/uapi/linux/bits.h:9:19: warning: right shift count is negative [-Wshift-count-negative] 9 | (~_UL(0) >> (__BITS_PER_LONG - 1 - (h)))) | ^~ include/linux/bits.h:35:38: note: in expansion of macro '__GENMASK' 35 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/pci/endpoint/functions/pci-epf-nvme.c:1391:23: note: in expansion of macro 'GENMASK' 1391 | ctrl->cap &= ~GENMASK(35, 32); | ^~~~~~~ drivers/pci/endpoint/functions/pci-epf-nvme.c: In function 'pci_epf_nvme_enable_ctrl': include/uapi/linux/bits.h:9:19: warning: right shift count is negative [-Wshift-count-negative] 9 | (~_UL(0) >> (__BITS_PER_LONG - 1 - (h)))) | ^~ include/linux/bits.h:35:38: note: in expansion of macro '__GENMASK' 35 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/pci/endpoint/functions/pci-epf-nvme.c:1467:45: note: in expansion of macro 'GENMASK' 1467 | ctrl->acq & GENMASK(63, 12)); | ^~~~~~~ include/uapi/linux/bits.h:9:19: warning: right shift count is negative [-Wshift-count-negative] 9 | (~_UL(0) >> (__BITS_PER_LONG - 1 - (h)))) | ^~ include/linux/bits.h:35:38: note: in expansion of macro '__GENMASK' 35 | (GENMASK_INPUT_CHECK(h, l) + __GENMASK(h, l)) | ^~~~~~~~~ drivers/pci/endpoint/functions/pci-epf-nvme.c:1473:50: note: in expansion of macro 'GENMASK' 1473 | ctrl->asq & GENMASK(63, 12)); | ^~~~~~~ Kconfig warnings: (for reference only) WARNING: unmet direct dependencies detected for GET_FREE_REGION Depends on [n]: SPARSEMEM [=n] Selected by [m]: - RESOURCE_KUNIT_TEST [=m] && RUNTIME_TESTING_MENU [=y] && KUNIT [=m] vim +/pci_map +81 drivers/pci/endpoint/functions/pci-epf-nvme.c 69 70 /* 71 * Queue definition and mapping for the local PCI controller. 72 */ 73 struct pci_epf_nvme_queue { 74 struct pci_epf_nvme *epf_nvme; 75 76 unsigned int qflags; 77 int ref; 78 79 phys_addr_t pci_addr; 80 size_t pci_size; > 81 struct pci_epc_map pci_map; 82 83 u16 qid; 84 u16 cqid; 85 u16 size; 86 u16 depth; 87 u16 flags; 88 u16 vector; 89 u16 head; 90 u16 tail; 91 u16 phase; 92 u32 db; 93 94 size_t qes; 95 96 struct workqueue_struct *cmd_wq; 97 struct delayed_work work; 98 spinlock_t lock; 99 struct list_head list; 100 }; 101 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki