All of lore.kernel.org
 help / color / mirror / Atom feed
* drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:283:17: warning: assignment to 'struct irq_data *' from 'int' makes pointer from integer without a cast
@ 2026-09-29 18:31 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2026-09-29 18:31 UTC (permalink / raw)
  To: Karunika Choo; +Cc: oe-kbuild-all, 0day robot

tree:   https://github.com/intel-lab-lkp/linux/commits/Karunika-Choo/drm-panthor-Ignore-EOPNOTSUPP-for-shader-present-nvmem-lookup/20260922-214455
head:   d1fb2a7097a879293d3b0e71e2556f48f2793224
commit: 63cfc63d64c81b04d163214896204034c88aa688 drm/panthor: Add AM_PARTITION_CONTROL support
date:   7 days ago
config: sparc64-randconfig-r2303-20260929 (https://download.01.org/0day-ci/archive/20260929/202609292029.ynftATMU-lkp@intel.com/config)
compiler: sparc64-linux-gcc (GCC) 11.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260929/202609292029.ynftATMU-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/202609292029.ynftATMU-lkp@intel.com/

All warnings (new ones prefixed by >>):

   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c: In function 'partition_state_get':
   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:22:49: error: implicit declaration of function 'FIELD_GET' [-Werror=implicit-function-declaration]
      22 | #define   AM_PART_STATE_GET(x)                  FIELD_GET(GENMASK(11, 8), x)
         |                                                 ^~~~~~~~~
   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:83:16: note: in expansion of macro 'AM_PART_STATE_GET'
      83 |         return AM_PART_STATE_GET(state);
         |                ^~~~~~~~~~~~~~~~~
   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c: In function 'yield_now':
   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:30:49: error: implicit declaration of function 'FIELD_PREP' [-Werror=implicit-function-declaration]
      30 | #define   AM_PART_SET_COMMAND(x)                FIELD_PREP(GENMASK(7, 0), x)
         |                                                 ^~~~~~~~~~
   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:107:19: note: in expansion of macro 'AM_PART_SET_COMMAND'
     107 |                   AM_PART_SET_COMMAND(PART_CMD_YIELD_NOW));
         |                   ^~~~~~~~~~~~~~~~~~~
   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c: In function 'partition_control_init':
   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:283:19: error: implicit declaration of function 'irq_get_irq_data'; did you mean 'irq_set_irq_wake'? [-Werror=implicit-function-declaration]
     283 |         irqdata = irq_get_irq_data(irq);
         |                   ^~~~~~~~~~~~~~~~
         |                   irq_set_irq_wake
>> drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:283:17: warning: assignment to 'struct irq_data *' from 'int' makes pointer from integer without a cast [-Wint-conversion]
     283 |         irqdata = irq_get_irq_data(irq);
         |                 ^
   drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:285:29: error: implicit declaration of function 'irqd_get_trigger_type' [-Werror=implicit-function-declaration]
     285 |                 irq_flags = irqd_get_trigger_type(irqdata);
         |                             ^~~~~~~~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +283 drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c

   237	
   238	static int partition_control_init(struct panthor_arbitration *adev,
   239					   const struct fwnode_handle *child)
   240	{
   241		struct panthor_arbitration_resource res;
   242		struct panthor_partition_control *pc;
   243		struct device *dev = adev->dev;
   244		struct irq_data *irqdata;
   245		void __iomem *iomem;
   246		u32 irq_flags = 0;
   247		char *name;
   248		int irq;
   249		int ret;
   250	
   251		ret = panthor_arbitration_parse_resource(dev, child, &res);
   252		if (ret)
   253			return ret;
   254	
   255		if (res.id >= AM_ARB_MAX_PC_COUNT)
   256			return -ENODEV;
   257	
   258		if (adev->pc[res.id])
   259			return dev_warn_probe(dev, -ENODEV, "partition@%llx: id (%u) already present",
   260					      res.res.start, res.id);
   261	
   262		pc = devm_kzalloc(dev, sizeof(*pc), GFP_KERNEL);
   263		if (!pc)
   264			return -ENOMEM;
   265	
   266		name = devm_kasprintf(dev, GFP_KERNEL, "pc%d", res.id);
   267	
   268		iomem = devm_ioremap_resource(dev, &res.res);
   269		if (IS_ERR(iomem))
   270			return dev_err_probe(dev, PTR_ERR(iomem), "%s: Failed to ioremap", name);
   271	
   272		pc->name = name;
   273		pc->dev = dev;
   274		pc->iomem = iomem;
   275	
   276		spin_lock_init(&pc->lock);
   277		pc->current_aw = -1;
   278	
   279		irq = fwnode_irq_get(child, 0);
   280		if (irq < 0)
   281			return dev_err_probe(dev, irq, "%s: Failed to get IRQ", name);
   282	
 > 283		irqdata = irq_get_irq_data(irq);
   284		if (irqdata)
   285			irq_flags = irqd_get_trigger_type(irqdata);
   286	
   287		ret = devm_request_irq(
   288			dev, irq, partition_irq_raw_handler, irq_flags | IRQF_SHARED,
   289			devm_kasprintf(dev, GFP_KERNEL, "panthor-%s-irq", name), pc);
   290		if (ret)
   291			return ret;
   292	
   293		adev->pc[res.id] = pc;
   294	
   295		partition_irq_resume(pc);
   296	
   297		return 0;
   298	}
   299	

--
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-09-29 18:32 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-09-29 18:31 drivers/gpu/drm/panthor/arbitration/panthor_partition_control.c:283:17: warning: assignment to 'struct irq_data *' from 'int' makes pointer from integer without a cast 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.