From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from mgamail.intel.com (mgamail.intel.com [192.198.163.10]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id B030315442C for ; Wed, 26 Mar 2025 05:59:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=192.198.163.10 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742968756; cv=none; b=KaOHRIOm9wXgodwFdcuJR43Igp1GXUkTwT4ZLPO3ICUbZWeS2vUgfzdzKTdK/3FMZpb6hF+hRvmuliVXHAygUvaz9Q/XOvR7+LUmljWzz08U/xVwAR9N22AU+zu8rJ3lTfGB1PcSn23pXglnITz6tkM+hAvKZgTJEHAmmYWuFTs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1742968756; c=relaxed/simple; bh=sMfJUeixAghvz+SN81R9EpmcdILkeYRWnrxsQKcqJUY=; h=Date:From:To:Cc:Subject:Message-ID:MIME-Version:Content-Type: Content-Disposition; b=Sx46Vm3X5qjHb8kDm+ua22unR2MJg/fXAaaIv/0GvgE07wdjpY92sNQ9HLnAgIXwKNYdeTq6mJcGUPc+9oHsnG6DdjE9FeegbTynWWg87ecn/dYRZTLv1BYnyDR99DBpbQP752+wczJuDNbOomPyeIbf0A0SMGYyjA6h8ni5n34= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=intel.com; spf=pass smtp.mailfrom=intel.com; dkim=pass (2048-bit key) header.d=intel.com header.i=@intel.com header.b=Fr7jKk72; arc=none smtp.client-ip=192.198.163.10 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.b="Fr7jKk72" DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1742968755; x=1774504755; h=date:from:to:cc:subject:message-id:mime-version; bh=sMfJUeixAghvz+SN81R9EpmcdILkeYRWnrxsQKcqJUY=; b=Fr7jKk725MOhYdGsP6ACMghCMnJ9ONzGDKEMXwjCKxwqCPBwdle+5B7K IeBbckBtqnTbMBmsI8wVoZ80L41g4l4NdijgTYQ9T6mHFXivFaZp1Mq8U G64SemJcPVz9KA+CCs8v3w0F79bPQhc10V9lXblZBdT8oPaev4mwHc0RM HjP7x1FGYNeThR7qZpn3kgbbEd6o7bz6TyUKDfLB5+wJSDWMAB125ykAC Ybr/IR20z+xLVyJIY85pHgp672ET5Vh+2XglSfRJ0eskXE/Mi34zs1vcr 6xZkW1nomDU1OO9ahF504K0NLriBOhBUzWYHTIZAQNsd8AtMWhJdbfNaj Q==; X-CSE-ConnectionGUID: kgLoV7OLRVyT1YThg2XEpQ== X-CSE-MsgGUID: twCner4IS7yfRd6Rlx2tmg== X-IronPort-AV: E=McAfee;i="6700,10204,11384"; a="55621226" X-IronPort-AV: E=Sophos;i="6.14,277,1736841600"; d="scan'208";a="55621226" Received: from orviesa004.jf.intel.com ([10.64.159.144]) by fmvoesa104.fm.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 25 Mar 2025 22:59:14 -0700 X-CSE-ConnectionGUID: 65Lev5kdQk+1HmTAdfVejw== X-CSE-MsgGUID: h3TNlTAQR6ShWDaIDtWSDg== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.14,277,1736841600"; d="scan'208";a="129668893" Received: from lkp-server02.sh.intel.com (HELO e98e3655d6d2) ([10.239.97.151]) by orviesa004.jf.intel.com with ESMTP; 25 Mar 2025 22:59:12 -0700 Received: from kbuild by e98e3655d6d2 with local (Exim 4.96) (envelope-from ) id 1txJnC-0005US-1d; Wed, 26 Mar 2025 05:59:10 +0000 Date: Wed, 26 Mar 2025 13:58:55 +0800 From: kernel test robot To: steven@liquorix.net Cc: oe-kbuild-all@lists.linux.dev Subject: [zen:6.14/zen-sauce 6/31] drivers/pci/controller/intel-nvme-remap.c:47:33: error: field 'sysdata' has incomplete type Message-ID: <202503261358.jsZcAROl-lkp@intel.com> Precedence: bulk X-Mailing-List: oe-kbuild-all@lists.linux.dev List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline tree: https://github.com/zen-kernel/zen-kernel 6.14/zen-sauce head: cb33a6dc022faa07ac1e1cd544567b28a7e9afeb commit: 02b4d790bb05e24e7408a147f33e4e9ca0b805fa [6/31] ZEN: PCI: Add Intel remapped NVMe device support config: um-allyesconfig (https://download.01.org/0day-ci/archive/20250326/202503261358.jsZcAROl-lkp@intel.com/config) compiler: gcc-12 (Debian 12.2.0-14) 12.2.0 reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250326/202503261358.jsZcAROl-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/202503261358.jsZcAROl-lkp@intel.com/ All errors (new ones prefixed by >>): >> drivers/pci/controller/intel-nvme-remap.c:47:33: error: field 'sysdata' has incomplete type 47 | struct pci_sysdata sysdata; | ^~~~~~~ In file included from include/linux/init.h:5, from include/linux/printk.h:6, from include/asm-generic/bug.h:22, from ./arch/um/include/generated/asm/bug.h:1, from include/linux/bug.h:5, from include/linux/thread_info.h:13, from include/asm-generic/preempt.h:5, from ./arch/um/include/generated/asm/preempt.h:1, from include/linux/preempt.h:79, from include/linux/spinlock.h:56, from include/linux/irq.h:14, from drivers/pci/controller/intel-nvme-remap.c:37: drivers/pci/controller/intel-nvme-remap.c: In function 'nrdev_from_bus': include/linux/compiler_types.h:483:27: error: expression in static assertion is not an integer 483 | #define __same_type(a, b) __builtin_types_compatible_p(typeof(a), typeof(b)) | ^~~~~~~~~~~~~~~~~~~~~~~~~~~~ include/linux/build_bug.h:78:56: note: in definition of macro '__static_assert' 78 | #define __static_assert(expr, msg, ...) _Static_assert(expr, msg) | ^~~~ include/linux/container_of.h:20:9: note: in expansion of macro 'static_assert' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~~~ include/linux/container_of.h:20:23: note: in expansion of macro '__same_type' 20 | static_assert(__same_type(*(ptr), ((type *)0)->member) || \ | ^~~~~~~~~~~ drivers/pci/controller/intel-nvme-remap.c:74:16: note: in expansion of macro 'container_of' 74 | return container_of(bus->sysdata, struct nvme_remap_dev, sysdata); | ^~~~~~~~~~~~ In file included from include/linux/pci.h:44, from drivers/pci/controller/intel-nvme-remap.c:40: drivers/pci/controller/intel-nvme-remap.c: At top level: include/linux/pci_ids.h:23:41: warning: initialized field overwritten [-Woverride-init] 23 | #define PCI_CLASS_STORAGE_RAID 0x0104 | ^~~~~~ drivers/pci/controller/intel-nvme-remap.c:447:26: note: in expansion of macro 'PCI_CLASS_STORAGE_RAID' 447 | .class = PCI_CLASS_STORAGE_RAID << 8, | ^~~~~~~~~~~~~~~~~~~~~~ include/linux/pci_ids.h:23:41: note: (near initialization for 'nvme_remap_ids[0].class') 23 | #define PCI_CLASS_STORAGE_RAID 0x0104 | ^~~~~~ drivers/pci/controller/intel-nvme-remap.c:447:26: note: in expansion of macro 'PCI_CLASS_STORAGE_RAID' 447 | .class = PCI_CLASS_STORAGE_RAID << 8, | ^~~~~~~~~~~~~~~~~~~~~~ drivers/pci/controller/intel-nvme-remap.c:448:31: warning: initialized field overwritten [-Woverride-init] 448 | .class_mask = 0xffffff00, | ^~~~~~~~~~ drivers/pci/controller/intel-nvme-remap.c:448:31: note: (near initialization for 'nvme_remap_ids[0].class_mask') vim +/sysdata +47 drivers/pci/controller/intel-nvme-remap.c 43 44 struct nvme_remap_dev { 45 struct pci_dev *dev; /* AHCI device */ 46 struct pci_bus *bus; /* our fake PCI bus */ > 47 struct pci_sysdata sysdata; 48 int irq_base; /* our fake interrupts */ 49 50 /* 51 * When we detect an all-ones write to a BAR register, this flag 52 * is set, so that we return the BAR size on the next read (a 53 * standard PCI behaviour). 54 * This includes the assumption that an all-ones BAR write is 55 * immediately followed by a read of the same register. 56 */ 57 bool bar_sizing; 58 59 /* 60 * Resources copied from the AHCI device, to be regarded as 61 * resources on our fake bus. 62 */ 63 struct resource ahci_resources[PCI_NUM_RESOURCES]; 64 65 /* Resources corresponding to the NVMe devices. */ 66 struct resource remapped_dev_mem[AHCI_MAX_REMAP]; 67 68 /* Number of remapped NVMe devices found. */ 69 int num_remapped_devices; 70 }; 71 -- 0-DAY CI Kernel Test Service https://github.com/intel/lkp-tests/wiki