All of lore.kernel.org
 help / color / mirror / Atom feed
* [tglx-devel:irq/core 6/53] drivers/irqchip/irq-tb10x.c:48:59: error: 'im' undeclared; did you mean 'tm'?
@ 2025-03-12 13:56 kernel test robot
  0 siblings, 0 replies; only message in thread
From: kernel test robot @ 2025-03-12 13:56 UTC (permalink / raw)
  To: Thomas Gleixner; +Cc: llvm, oe-kbuild-all

Hi Thomas,

FYI, the error/warning was bisected to this commit, please ignore it if it's irrelevant.

tree:   https://git.kernel.org/pub/scm/linux/kernel/git/tglx/devel.git irq/core
head:   369c4f7fd7564a8952129a147cacf88cb4697c79
commit: 75b5ef045115fe0f58281089aedd60cb2e79efcc [6/53] irqchip: Convert generic irqchip locking to guards
config: arc-randconfig-002-20250312 (https://download.01.org/0day-ci/archive/20250312/202503122110.ifAog2e2-lkp@intel.com/config)
compiler: arc-elf-gcc (GCC) 13.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250312/202503122110.ifAog2e2-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/202503122110.ifAog2e2-lkp@intel.com/

All errors (new ones prefixed by >>):

   drivers/irqchip/irq-tb10x.c: In function 'tb10x_irq_set_type':
>> drivers/irqchip/irq-tb10x.c:48:59: error: 'im' undeclared (first use in this function); did you mean 'tm'?
      48 |         mod = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_MODE) | im;
         |                                                           ^~
         |                                                           tm
   drivers/irqchip/irq-tb10x.c:48:59: note: each undeclared identifier is reported only once for each function it appears in


vim +48 drivers/irqchip/irq-tb10x.c

b06eb0173ef1d93 Christian Ruppert 2013-06-25  40  
b06eb0173ef1d93 Christian Ruppert 2013-06-25  41  static int tb10x_irq_set_type(struct irq_data *data, unsigned int flow_type)
b06eb0173ef1d93 Christian Ruppert 2013-06-25  42  {
b06eb0173ef1d93 Christian Ruppert 2013-06-25  43  	struct irq_chip_generic *gc = irq_data_get_irq_chip_data(data);
75b5ef045115fe0 Thomas Gleixner   2025-03-12  44  	uint32_t mod, pol = data->mask;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  45  
75b5ef045115fe0 Thomas Gleixner   2025-03-12  46  	guard(raw_spinlock)(&gc->lock);
b06eb0173ef1d93 Christian Ruppert 2013-06-25  47  
b06eb0173ef1d93 Christian Ruppert 2013-06-25 @48  	mod = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_MODE) | im;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  49  	pol = ab_irqctl_readreg(gc, AB_IRQCTL_SRC_POLARITY) | im;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  50  
b06eb0173ef1d93 Christian Ruppert 2013-06-25  51  	switch (flow_type & IRQF_TRIGGER_MASK) {
b06eb0173ef1d93 Christian Ruppert 2013-06-25  52  	case IRQ_TYPE_EDGE_FALLING:
b06eb0173ef1d93 Christian Ruppert 2013-06-25  53  		pol ^= im;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  54  		break;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  55  	case IRQ_TYPE_LEVEL_HIGH:
b06eb0173ef1d93 Christian Ruppert 2013-06-25  56  		mod ^= im;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  57  		break;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  58  	case IRQ_TYPE_NONE:
b06eb0173ef1d93 Christian Ruppert 2013-06-25  59  		flow_type = IRQ_TYPE_LEVEL_LOW;
a6992bbe9774e04 Randy Dunlap      2021-04-21  60  		fallthrough;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  61  	case IRQ_TYPE_LEVEL_LOW:
b06eb0173ef1d93 Christian Ruppert 2013-06-25  62  		mod ^= im;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  63  		pol ^= im;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  64  		break;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  65  	case IRQ_TYPE_EDGE_RISING:
b06eb0173ef1d93 Christian Ruppert 2013-06-25  66  		break;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  67  	default:
75b5ef045115fe0 Thomas Gleixner   2025-03-12  68  		pr_err("%s: Cannot assign multiple trigger modes to IRQ %d.\n",	__func__, data->irq);
b06eb0173ef1d93 Christian Ruppert 2013-06-25  69  		return -EBADR;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  70  	}
b06eb0173ef1d93 Christian Ruppert 2013-06-25  71  
b06eb0173ef1d93 Christian Ruppert 2013-06-25  72  	irqd_set_trigger_type(data, flow_type);
b06eb0173ef1d93 Christian Ruppert 2013-06-25  73  	irq_setup_alt_chip(data, flow_type);
b06eb0173ef1d93 Christian Ruppert 2013-06-25  74  
b06eb0173ef1d93 Christian Ruppert 2013-06-25  75  	ab_irqctl_writereg(gc, AB_IRQCTL_SRC_MODE, mod);
b06eb0173ef1d93 Christian Ruppert 2013-06-25  76  	ab_irqctl_writereg(gc, AB_IRQCTL_SRC_POLARITY, pol);
b06eb0173ef1d93 Christian Ruppert 2013-06-25  77  	ab_irqctl_writereg(gc, AB_IRQCTL_INT_STATUS, im);
b06eb0173ef1d93 Christian Ruppert 2013-06-25  78  	return IRQ_SET_MASK_OK;
b06eb0173ef1d93 Christian Ruppert 2013-06-25  79  }
b06eb0173ef1d93 Christian Ruppert 2013-06-25  80  

:::::: The code at line 48 was first introduced by commit
:::::: b06eb0173ef1d9366d14b4ca3e8e38dc72b03e8b irqchip: Add TB10x interrupt controller driver

:::::: TO: Christian Ruppert <christian.ruppert@abilis.com>
:::::: CC: Thomas Gleixner <tglx@linutronix.de>

-- 
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:[~2025-03-12 13:57 UTC | newest]

Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-03-12 13:56 [tglx-devel:irq/core 6/53] drivers/irqchip/irq-tb10x.c:48:59: error: 'im' undeclared; did you mean 'tm'? 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.