From: kernel test robot <lkp@intel.com>
To: Philipp Stanner <phasta@kernel.org>,
Basavaraj Natikar <Basavaraj.Natikar@amd.com>,
Vinod Koul <vkoul@kernel.org>
Cc: llvm@lists.linux.dev, oe-kbuild-all@lists.linux.dev,
dmaengine@vger.kernel.org, linux-kernel@vger.kernel.org,
Philipp Stanner <phasta@kernel.org>
Subject: Re: [PATCH] dmaengine: amd: Replace deprecated PCI functions
Date: Wed, 4 Feb 2026 04:16:52 +0800 [thread overview]
Message-ID: <202602040433.65nFJ1K1-lkp@intel.com> (raw)
In-Reply-To: <20260203123238.88598-2-phasta@kernel.org>
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@intel.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
prev parent reply other threads:[~2026-02-03 20:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-02-03 12:32 [PATCH] dmaengine: amd: Replace deprecated PCI functions Philipp Stanner
2026-02-03 12:41 ` Philipp Stanner
2026-02-03 19:08 ` kernel test robot
2026-02-03 20:16 ` kernel test robot
2026-02-03 20:16 ` kernel test robot [this message]
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=202602040433.65nFJ1K1-lkp@intel.com \
--to=lkp@intel.com \
--cc=Basavaraj.Natikar@amd.com \
--cc=dmaengine@vger.kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=llvm@lists.linux.dev \
--cc=oe-kbuild-all@lists.linux.dev \
--cc=phasta@kernel.org \
--cc=vkoul@kernel.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox