From: kernel test robot <lkp@intel.com>
To: steven@liquorix.net
Cc: oe-kbuild-all@lists.linux.dev
Subject: [zen:6.19/zen-sauce 4/34] drivers/pci/controller/intel-nvme-remap.c:47:21: error: field has incomplete type 'struct pci_sysdata'
Date: Tue, 07 Apr 2026 12:03:04 +0800 [thread overview]
Message-ID: <202604070132.aP3AbdnW-lkp@intel.com> (raw)
tree: https://github.com/zen-kernel/zen-kernel 6.19/zen-sauce
head: d17b2b02b5cf029f5248299f56e4a0a041548604
commit: e79f96b70c040b0948a21e1421365406601215d8 [4/34] ZEN: PCI: Add Intel remapped NVMe device support
config: um-allmodconfig (https://download.01.org/0day-ci/archive/20260407/202604070132.aP3AbdnW-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/20260407/202604070132.aP3AbdnW-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/202604070132.aP3AbdnW-lkp@intel.com/
All errors (new ones prefixed by >>):
In file included from drivers/pci/controller/intel-nvme-remap.c:37:
In file included from include/linux/irq.h:20:
In file included from include/linux/io.h:12:
In file included from arch/um/include/asm/io.h:24:
include/asm-generic/io.h:1209:55: warning: performing pointer arithmetic on a null pointer has undefined behavior [-Wnull-pointer-arithmetic]
1209 | return (port > MMIO_UPPER_LIMIT) ? NULL : PCI_IOBASE + port;
| ~~~~~~~~~~ ^
>> drivers/pci/controller/intel-nvme-remap.c:47:21: error: field has incomplete type 'struct pci_sysdata'
47 | struct pci_sysdata sysdata;
| ^
drivers/pci/controller/intel-nvme-remap.c:47:9: note: forward declaration of 'struct pci_sysdata'
47 | struct pci_sysdata sysdata;
| ^
drivers/pci/controller/intel-nvme-remap.c:447:12: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
447 | .class = PCI_CLASS_STORAGE_RAID << 8,
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/pci_ids.h:23:33: note: expanded from macro 'PCI_CLASS_STORAGE_RAID'
23 | #define PCI_CLASS_STORAGE_RAID 0x0104
| ^
drivers/pci/controller/intel-nvme-remap.c:446:3: note: previous initialization is here
446 | PCI_VDEVICE(INTEL, PCI_ANY_ID),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/pci.h:1105:52: note: expanded from macro 'PCI_VDEVICE'
1105 | .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
| ^
drivers/pci/controller/intel-nvme-remap.c:448:17: warning: initializer overrides prior initialization of this subobject [-Winitializer-overrides]
448 | .class_mask = 0xffffff00,
| ^~~~~~~~~~
drivers/pci/controller/intel-nvme-remap.c:446:3: note: previous initialization is here
446 | PCI_VDEVICE(INTEL, PCI_ANY_ID),
| ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
include/linux/pci.h:1105:55: note: expanded from macro 'PCI_VDEVICE'
1105 | .subvendor = PCI_ANY_ID, .subdevice = PCI_ANY_ID, 0, 0
| ^
3 warnings and 1 error generated.
vim +47 drivers/pci/controller/intel-nvme-remap.c
35
36 #include <linux/ahci-remap.h>
> 37 #include <linux/irq.h>
38 #include <linux/kernel.h>
39 #include <linux/module.h>
40 #include <linux/pci.h>
41
42 #define AHCI_PCI_BAR_STANDARD 5
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
reply other threads:[~2026-04-07 4:03 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=202604070132.aP3AbdnW-lkp@intel.com \
--to=lkp@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=steven@liquorix.net \
/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.