[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202602040433.65nFJ1K1-lkp@intel.com>
Date: Wed, 4 Feb 2026 04:16:52 +0800
From: kernel test robot <lkp@...el.com>
To: Philipp Stanner <phasta@...nel.org>,
Basavaraj Natikar <Basavaraj.Natikar@....com>,
Vinod Koul <vkoul@...nel.org>
Cc: llvm@...ts.linux.dev, oe-kbuild-all@...ts.linux.dev,
dmaengine@...r.kernel.org, linux-kernel@...r.kernel.org,
Philipp Stanner <phasta@...nel.org>
Subject: Re: [PATCH] dmaengine: amd: Replace deprecated PCI functions
Hi Philipp,
kernel test robot noticed the following build errors:
[auto build test ERROR on vkoul-dmaengine/next]
[also build test ERROR on linus/master v6.19-rc8 next-20260202]
[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/Philipp-Stanner/dmaengine-amd-Replace-deprecated-PCI-functions/20260203-204040
base: https://git.kernel.org/pub/scm/linux/kernel/git/vkoul/dmaengine.git next
patch link: https://lore.kernel.org/r/20260203123238.88598-2-phasta%40kernel.org
patch subject: [PATCH] dmaengine: amd: Replace deprecated PCI functions
config: x86_64-rhel-9.4-rust (https://download.01.org/0day-ci/archive/20260204/202602040433.65nFJ1K1-lkp@intel.com/config)
compiler: clang version 20.1.8 (https://github.com/llvm/llvm-project 87f0227cb60147a26a1eeb4fb06e3b505e9c7261)
rustc: rustc 1.88.0 (6b00bc388 2025-06-23)
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260204/202602040433.65nFJ1K1-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202602040433.65nFJ1K1-lkp@intel.com/
All errors (new ones prefixed by >>):
>> drivers/dma/amd/ptdma/ptdma-pci.c:156:40: error: use of undeclared identifier 'ptdma'
156 | ret = pcim_request_region(pdev, bar, DRIVER_NAME);
| ^
drivers/dma/amd/ptdma/ptdma-pci.c:26:21: note: expanded from macro 'DRIVER_NAME'
26 | #define DRIVER_NAME ptdma
| ^
drivers/dma/amd/ptdma/ptdma-pci.c:230:10: error: use of undeclared identifier 'ptdma'
230 | .name = DRIVER_NAME,
| ^
drivers/dma/amd/ptdma/ptdma-pci.c:26:21: note: expanded from macro 'DRIVER_NAME'
26 | #define DRIVER_NAME ptdma
| ^
2 errors generated.
vim +/ptdma +156 drivers/dma/amd/ptdma/ptdma-pci.c
122
123 static int pt_pci_probe(struct pci_dev *pdev, const struct pci_device_id *id)
124 {
125 struct pt_device *pt;
126 struct pt_msix *pt_msix;
127 struct device *dev = &pdev->dev;
128 unsigned long bar_mask;
129 int ret = -ENOMEM;
130 int bar;
131
132 pt = pt_alloc_struct(dev);
133 if (!pt)
134 goto e_err;
135
136 pt_msix = devm_kzalloc(dev, sizeof(*pt_msix), GFP_KERNEL);
137 if (!pt_msix)
138 goto e_err;
139
140 pt->pt_msix = pt_msix;
141 pt->dev_vdata = (struct pt_dev_vdata *)id->driver_data;
142 if (!pt->dev_vdata) {
143 ret = -ENODEV;
144 dev_err(dev, "missing driver data\n");
145 goto e_err;
146 }
147
148 ret = pcim_enable_device(pdev);
149 if (ret) {
150 dev_err(dev, "pcim_enable_device failed (%d)\n", ret);
151 goto e_err;
152 }
153
154 bar_mask = pci_select_bars(pdev, IORESOURCE_MEM);
155 for_each_set_bit(bar, &bar_mask, sizeof(bar_mask)) {
> 156 ret = pcim_request_region(pdev, bar, DRIVER_NAME);
157 if (ret) {
158 dev_err(dev, "pcim_iomap_regions failed (%d)\n", ret);
159 goto e_err;
160 }
161 }
162
163 pt->io_regs = pcim_iomap(pdev, pt->dev_vdata->bar, 0);
164 if (!pt->io_regs) {
165 dev_err(dev, "ioremap failed\n");
166 ret = -ENOMEM;
167 goto e_err;
168 }
169
170 ret = pt_get_irqs(pt);
171 if (ret)
172 goto e_err;
173
174 pci_set_master(pdev);
175
176 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(48));
177 if (ret) {
178 ret = dma_set_mask_and_coherent(dev, DMA_BIT_MASK(32));
179 if (ret) {
180 dev_err(dev, "dma_set_mask_and_coherent failed (%d)\n",
181 ret);
182 goto e_err;
183 }
184 }
185
186 dev_set_drvdata(dev, pt);
187
188 if (pt->dev_vdata)
189 ret = pt_core_init(pt);
190
191 if (ret)
192 goto e_err;
193
194 return 0;
195
196 e_err:
197 dev_err(dev, "initialization failed ret = %d\n", ret);
198
199 return ret;
200 }
201
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
Powered by blists - more mailing lists