[wsa:renesas/n1d/enablement 7/10] drivers/clocksource/timer-rzn1.c:297:25: error: implicit declaration of function 'irq_set_status_flags'

kernel test robot <[email protected]> Wed, 05 Aug 2026 11:12:49 +0800
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   https://git.kernel.org/pub/scm/linux/kernel/git/wsa/linux.git renesas/n1d/enablement
head:   a2d12f9e27fc974d97e58b9c5a7d15452a1be447
commit: 003b1177ec24b75646dd215f6c04525f67d19060 [7/10] clocksource/drivers: Add support for the Renesas RZ/N1 timers
config: i386-allmodconfig (https://download.01.org/0day-ci/archive/20260805/[email protected]/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/20260805/[email protected]/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 <[email protected]>
| Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/

All errors (new ones prefixed by >>):

   drivers/clocksource/timer-rzn1.c: In function 'rzn1_timer_setup_timers':
>> drivers/clocksource/timer-rzn1.c:297:25: error: implicit declaration of function 'irq_set_status_flags' [-Wimplicit-function-declaration]
     297 |                         irq_set_status_flags(timer->ced.irq, IRQ_NOAUTOEN);
         |                         ^~~~~~~~~~~~~~~~~~~~
>> drivers/clocksource/timer-rzn1.c:297:62: error: 'IRQ_NOAUTOEN' undeclared (first use in this function); did you mean 'IRQF_NO_AUTOEN'?
     297 |                         irq_set_status_flags(timer->ced.irq, IRQ_NOAUTOEN);
         |                                                              ^~~~~~~~~~~~
         |                                                              IRQF_NO_AUTOEN
   drivers/clocksource/timer-rzn1.c:297:62: note: each undeclared identifier is reported only once for each function it appears in


vim +/irq_set_status_flags +297 drivers/clocksource/timer-rzn1.c

   266	
   267	static int rzn1_timer_setup_timers(struct platform_device *pdev,
   268					   struct rzn1_timer *tab_timers,
   269					   unsigned int first_timer_index,
   270					   unsigned int last_timer_index,
   271					   void __iomem *base, unsigned long clock_rate,
   272					   bool irq_disabled)
   273	{
   274		struct device *dev = &pdev->dev;
   275		struct rzn1_timer *timer;
   276		unsigned int i;
   277		char *name;
   278		int irq;
   279		int ret;
   280	
   281		for (i = first_timer_index; i <= last_timer_index; i++) {
   282			timer = &tab_timers[i];
   283	
   284			rzn1_timer_init(timer, i, base, clock_rate);
   285	
   286			irq = platform_get_irq(pdev, i);
   287			if (irq < 0)
   288				return irq;
   289	
   290			name = devm_kasprintf(dev, GFP_KERNEL, "%s-%u", dev_name(dev), i);
   291			if (!name)
   292				return -ENOMEM;
   293	
   294			rzn1_timer_clkevt_init_ced(timer, name, irq);
   295	
   296			if (irq_disabled)
 > 297				irq_set_status_flags(timer->ced.irq, IRQ_NOAUTOEN);
   298	
   299			ret = devm_request_irq(dev, timer->ced.irq, rzn1_timer_interrupt,
   300					       IRQF_TIMER, timer->ced.name, timer);
   301			if (ret < 0)
   302				return dev_err_probe(dev, ret, "timer%u: Failed to request IRQ\n", i);
   303	
   304			rzn1_timer_int_enable(timer);
   305		}
   306		return 0;
   307	}
   308	

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki