* [davejiang:cxl-ide 21/24] drivers/acpi/x86/keyp.c:89:13: error: 'struct pci_dev' has no member named 'ide'
@ 2023-08-11 20:22 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-08-11 20:22 UTC (permalink / raw)
To: Dave Jiang; +Cc: oe-kbuild-all
tree: https://github.com/davejiang/linux.git cxl-ide
head: ee3a63e65f46140bcb484e3d0052d641abceb9da
commit: c4ac61d5d895b22169ec35fd66d0105407693bfa [21/24] acpi: Add KEYP key configuration unit parsing
config: x86_64-defconfig (https://download.01.org/0day-ci/archive/20230812/202308120411.VWz0fLnk-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120411.VWz0fLnk-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/202308120411.VWz0fLnk-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/acpi/x86/keyp.c: In function 'keyp_setup_pcie_ide_stream':
>> drivers/acpi/x86/keyp.c:89:13: error: 'struct pci_dev' has no member named 'ide'
89 | pdev->ide.stream_min = kcu->stream_id_claimed;
| ^~
drivers/acpi/x86/keyp.c:90:13: error: 'struct pci_dev' has no member named 'ide'
90 | pdev->ide.stream_max = kcu->stream_id_claimed + max_rp_streams - 1;
| ^~
vim +89 drivers/acpi/x86/keyp.c
70
71 void keyp_setup_pcie_ide_stream(struct pci_dev *pdev)
72 {
73 u16 segment = pci_domain_nr(pdev->bus);
74 u32 index = construct_xa_key(segment, pdev->bus->number, pdev->devfn);
75 struct keyp_config_unit *kcu;
76 int max_rp_streams;
77
78 kcu = xa_load(&keyp_xa, index);
79 if (!kcu)
80 return;
81
82 /*
83 * PCIe base spec r6.0.1, 7.9.26.4 and 7.9.26.5
84 * Stream ID is an 8bit field so only 256 IDs are available per root port.
85 * However, for the KEYP config unit the stream IDs must be unique. A single
86 * KEYP config unit may have multiple root ports
87 */
88 max_rp_streams = 256 / kcu->rp_count;
> 89 pdev->ide.stream_min = kcu->stream_id_claimed;
90 pdev->ide.stream_max = kcu->stream_id_claimed + max_rp_streams - 1;
91 kcu->stream_id_claimed += max_rp_streams;
92 }
93 EXPORT_SYMBOL_GPL(keyp_setup_pcie_ide_stream);
94
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
* [davejiang:cxl-ide 21/24] drivers/acpi/x86/keyp.c:89:13: error: 'struct pci_dev' has no member named 'ide'
@ 2023-08-11 20:33 kernel test robot
0 siblings, 0 replies; 2+ messages in thread
From: kernel test robot @ 2023-08-11 20:33 UTC (permalink / raw)
To: Dave Jiang; +Cc: oe-kbuild-all
tree: https://github.com/davejiang/linux.git cxl-ide
head: ee3a63e65f46140bcb484e3d0052d641abceb9da
commit: c4ac61d5d895b22169ec35fd66d0105407693bfa [21/24] acpi: Add KEYP key configuration unit parsing
config: x86_64-randconfig-r033-20230812 (https://download.01.org/0day-ci/archive/20230812/202308120441.4mEHh1Mr-lkp@intel.com/config)
compiler: gcc-12 (Debian 12.2.0-14) 12.2.0
reproduce: (https://download.01.org/0day-ci/archive/20230812/202308120441.4mEHh1Mr-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/202308120441.4mEHh1Mr-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/acpi/x86/keyp.c: In function 'keyp_setup_pcie_ide_stream':
>> drivers/acpi/x86/keyp.c:89:13: error: 'struct pci_dev' has no member named 'ide'
89 | pdev->ide.stream_min = kcu->stream_id_claimed;
| ^~
drivers/acpi/x86/keyp.c:90:13: error: 'struct pci_dev' has no member named 'ide'
90 | pdev->ide.stream_max = kcu->stream_id_claimed + max_rp_streams - 1;
| ^~
vim +89 drivers/acpi/x86/keyp.c
70
71 void keyp_setup_pcie_ide_stream(struct pci_dev *pdev)
72 {
73 u16 segment = pci_domain_nr(pdev->bus);
74 u32 index = construct_xa_key(segment, pdev->bus->number, pdev->devfn);
75 struct keyp_config_unit *kcu;
76 int max_rp_streams;
77
78 kcu = xa_load(&keyp_xa, index);
79 if (!kcu)
80 return;
81
82 /*
83 * PCIe base spec r6.0.1, 7.9.26.4 and 7.9.26.5
84 * Stream ID is an 8bit field so only 256 IDs are available per root port.
85 * However, for the KEYP config unit the stream IDs must be unique. A single
86 * KEYP config unit may have multiple root ports
87 */
88 max_rp_streams = 256 / kcu->rp_count;
> 89 pdev->ide.stream_min = kcu->stream_id_claimed;
90 pdev->ide.stream_max = kcu->stream_id_claimed + max_rp_streams - 1;
91 kcu->stream_id_claimed += max_rp_streams;
92 }
93 EXPORT_SYMBOL_GPL(keyp_setup_pcie_ide_stream);
94
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2023-08-11 20:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-08-11 20:22 [davejiang:cxl-ide 21/24] drivers/acpi/x86/keyp.c:89:13: error: 'struct pci_dev' has no member named 'ide' kernel test robot
2023-08-11 20:33 kernel test robot
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).