All of lore.kernel.org
 help / color / mirror / Atom feed
* 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'?
@ 2026-10-04  6:36 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-10-04  6:36 UTC (permalink / raw)
  To: Manik Bajpai; +Cc: oe-kbuild-all, 0day robot

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-04  6:37 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-10-04  6:36 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'? kernel test robot

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.