From: kernel test robot <lkp@intel.com>
To: Manik Bajpai <manik.bajpai@intel.com>
Cc: oe-kbuild-all@lists.linux.dev, 0day robot <lkp@intel.com>
Subject: drivers/media/pci/intel/ipu6/ipu7-boot.c:249:17: error: implicit declaration of function 'ipu7_release_boot_config'; did you mean 'ipu6_ipu7_release_boot_config'?
Date: Sun, 04 Oct 2026 08:36:40 +0200 [thread overview]
Message-ID: <202610040829.wYNTqHst-lkp@intel.com> (raw)
tree: https://github.com/intel-lab-lkp/linux/commits/Manik-Bajpai/media-ipu6-Free-boot-config-on-queue-memory-alloc-failure/20260928-172643
head: 5b83218feeee7f71c10dedecc073175c8e936510
commit: c71ae86fcb6b3f0ce91cc3025abdbd51094320db media: ipu6: Free boot config on queue memory alloc failure
date: 6 days ago
config: x86_64-randconfig-2103-20261004 (https://download.01.org/0day-ci/archive/20261004/202610040829.wYNTqHst-lkp@intel.com/config)
compiler: gcc-14 (Debian 14.2.0-19) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20261004/202610040829.wYNTqHst-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/202610040829.wYNTqHst-lkp@intel.com/
All errors (new ones prefixed by >>):
drivers/media/pci/intel/ipu6/ipu7-boot.c: In function 'ipu6_ipu7_init_boot_config':
>> drivers/media/pci/intel/ipu6/ipu7-boot.c:249:17: error: implicit declaration of function 'ipu7_release_boot_config'; did you mean 'ipu6_ipu7_release_boot_config'? [-Wimplicit-function-declaration]
249 | ipu7_release_boot_config(adev);
| ^~~~~~~~~~~~~~~~~~~~~~~~
| ipu6_ipu7_release_boot_config
vim +249 drivers/media/pci/intel/ipu6/ipu7-boot.c
192
193 int ipu6_ipu7_init_boot_config(struct ipu6_bus_device *adev,
194 struct ipu7_fw_com_queue_config *qconfigs,
195 int num_queues, u32 uc_freq,
196 dma_addr_t subsys_config, u8 major)
197 {
198 struct ipu6_isys *isys = ipu6_bus_get_drvdata(adev);
199 struct ipu7_fw_com_context *fwctx = isys->fwctx;
200 struct ipu7_boot_abi_cfg *boot_config;
201 struct ipu7_fw_com_queue_params_config *cfgs;
202 struct device *dev = &adev->auxdev.dev;
203 u32 total_queue_size_aligned = 0;
204 dma_addr_t queue_mem_dma_ptr;
205 void *queue_mem_ptr;
206 unsigned int i;
207
208 /* Allocate boot config. */
209 fwctx->boot_config_size =
210 sizeof(*cfgs) * num_queues + sizeof(*boot_config);
211 fwctx->boot_config = ipu6_dma_alloc(adev, fwctx->boot_config_size,
212 &fwctx->boot_config_dma_addr,
213 GFP_KERNEL, 0);
214 if (!fwctx->boot_config) {
215 dev_err(dev, "Failed to allocate boot config.\n");
216 return -ENOMEM;
217 }
218
219 boot_config = fwctx->boot_config;
220 memset(boot_config, 0, sizeof(*boot_config));
221 init_cfg_versions(boot_config, fwctx->boot_config_size, major);
222 boot_config->subsys_config = subsys_config;
223
224 boot_config->uc_tile_frequency = uc_freq;
225 boot_config->uc_tile_frequency_units = 0;
226 boot_config->fw_com_config.max_output_queues =
227 fwctx->num_output_queues;
228 boot_config->fw_com_config.max_input_queues =
229 fwctx->num_input_queues;
230
231 ipu6_dma_sync_single(adev, fwctx->boot_config_dma_addr,
232 fwctx->boot_config_size);
233
234 for (i = 0; i < num_queues; i++) {
235 u32 queue_size = qconfigs[i].max_capacity *
236 qconfigs[i].token_size_in_bytes;
237
238 queue_size = ALIGN(queue_size, 64U);
239 total_queue_size_aligned += queue_size;
240 qconfigs[i].queue_size = queue_size;
241 }
242
243 /* Allocate queue memory */
244 fwctx->queue_mem = ipu6_dma_alloc(adev, total_queue_size_aligned,
245 &fwctx->queue_mem_dma_addr,
246 GFP_KERNEL, 0);
247 if (!fwctx->queue_mem) {
248 dev_err(dev, "Failed to allocate queue memory.\n");
> 249 ipu7_release_boot_config(adev);
250 return -ENOMEM;
251 }
252 fwctx->queue_mem_size = total_queue_size_aligned;
253
254 cfgs = ipu7_fw_com_get_queue_config(&boot_config->fw_com_config);
255 queue_mem_ptr = fwctx->queue_mem;
256 queue_mem_dma_ptr = fwctx->queue_mem_dma_addr;
257 for (i = 0; i < num_queues; i++) {
258 cfgs[i].token_array_mem = queue_mem_dma_ptr;
259 cfgs[i].max_capacity = qconfigs[i].max_capacity;
260 cfgs[i].token_size_in_bytes = qconfigs[i].token_size_in_bytes;
261 qconfigs[i].token_array_mem = queue_mem_ptr;
262 queue_mem_dma_ptr += qconfigs[i].queue_size;
263 queue_mem_ptr += qconfigs[i].queue_size;
264 }
265
266 ipu6_dma_sync_single(adev, fwctx->queue_mem_dma_addr,
267 total_queue_size_aligned);
268
269 return 0;
270 }
271 EXPORT_SYMBOL_NS_GPL(ipu6_ipu7_init_boot_config, "INTEL_IPU6");
272
--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
reply other threads:[~2026-10-04 6:37 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=202610040829.wYNTqHst-lkp@intel.com \
--to=lkp@intel.com \
--cc=manik.bajpai@intel.com \
--cc=oe-kbuild-all@lists.linux.dev \
/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.