[willy-pagecache:headers 5/20] arch/arm/mach-pxa/pxa3xx.c:423:17: error: implicit declaration of function 'enable_irq_wake'

kernel test robot <[email protected]>
Newsgroups dev.linux.lists.oe-kbuild-all
Message-ID <[email protected]>
tree:   git://git.infradead.org/users/willy/pagecache headers
head:   59e9c46a34f4b92aee962208f9d8953891709933
commit: ef1af1bbc3cf307179196f42c7c054931ad36626 [5/20] headers: Remove swap.h from suspend.h
config: arm-randconfig-r121-20260820 (https://download.01.org/0day-ci/archive/20260820/[email protected]/config)
compiler: arm-linux-gnueabi-gcc (GCC) 11.5.0
sparse: v0.6.5-rc1
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260820/[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 >>):

   arch/arm/mach-pxa/pxa3xx.c: In function 'pxa3xx_init':
>> arch/arm/mach-pxa/pxa3xx.c:423:17: error: implicit declaration of function 'enable_irq_wake' [-Werror=implicit-function-declaration]
     423 |                 enable_irq_wake(IRQ_WAKEUP0);
         |                 ^~~~~~~~~~~~~~~
   cc1: some warnings being treated as errors


vim +/enable_irq_wake +423 arch/arm/mach-pxa/pxa3xx.c

851982c1b6ca18c Marek Vasut         2010-10-11  397  
2c8086a5d073e8e eric miao           2007-09-11  398  static int __init pxa3xx_init(void)
2c8086a5d073e8e eric miao           2007-09-11  399  {
2eaa03b5bebd1e8 Rafael J. Wysocki   2011-04-22  400  	int ret = 0;
2c8086a5d073e8e eric miao           2007-09-11  401  
2c8086a5d073e8e eric miao           2007-09-11  402  	if (cpu_is_pxa3xx()) {
04fef228fb00dd7 Eric Miao           2008-07-29  403  
e86bd43bcfc579c Arnd Bergmann       2019-09-08  404  		pxa_register_wdt(ARSR);
04fef228fb00dd7 Eric Miao           2008-07-29  405  
86260f987319fb5 Dmitry Krivoschekov 2008-02-08  406  		/*
86260f987319fb5 Dmitry Krivoschekov 2008-02-08  407  		 * clear RDH bit every time after reset
86260f987319fb5 Dmitry Krivoschekov 2008-02-08  408  		 *
86260f987319fb5 Dmitry Krivoschekov 2008-02-08  409  		 * Note: the last 3 bits DxS are write-1-to-clear so carefully
86260f987319fb5 Dmitry Krivoschekov 2008-02-08  410  		 * preserve them here in case they will be referenced later
86260f987319fb5 Dmitry Krivoschekov 2008-02-08  411  		 */
86260f987319fb5 Dmitry Krivoschekov 2008-02-08  412  		ASCR &= ~(ASCR_RDH | ASCR_D1S | ASCR_D2S | ASCR_D3S);
86260f987319fb5 Dmitry Krivoschekov 2008-02-08  413  
adf3442cc890f04 Robert Jarzmik      2015-08-23  414  		/*
adf3442cc890f04 Robert Jarzmik      2015-08-23  415  		 * Disable DFI bus arbitration, to prevent a system bus lock if
adf3442cc890f04 Robert Jarzmik      2015-08-23  416  		 * somebody disables the NAND clock (unused clock) while this
adf3442cc890f04 Robert Jarzmik      2015-08-23  417  		 * bit remains set.
adf3442cc890f04 Robert Jarzmik      2015-08-23  418  		 */
adf3442cc890f04 Robert Jarzmik      2015-08-23  419  		NDCR = (NDCR & ~NDCR_ND_ARB_EN) | NDCR_ND_ARB_CNTL;
adf3442cc890f04 Robert Jarzmik      2015-08-23  420  
7b5dea12346f98b Russell King        2008-01-07  421  		pxa3xx_init_pm();
7b5dea12346f98b Russell King        2008-01-07  422  
c1c14f8954c6d1c Daniel Mack         2018-05-24 @423  		enable_irq_wake(IRQ_WAKEUP0);
c1c14f8954c6d1c Daniel Mack         2018-05-24  424  		if (cpu_is_pxa320())
c1c14f8954c6d1c Daniel Mack         2018-05-24  425  			enable_irq_wake(IRQ_WAKEUP1);
c1c14f8954c6d1c Daniel Mack         2018-05-24  426  
a97fbc3ee3e2a53 Thierry Reding      2025-10-29  427  		register_syscore(&pxa_irq_syscore);
a97fbc3ee3e2a53 Thierry Reding      2025-10-29  428  		register_syscore(&pxa3xx_mfp_syscore);
b8f649f1f531914 Haojian Zhuang      2013-04-09  429  	}
c016550490687c6 eric miao           2008-01-28  430  
c016550490687c6 eric miao           2008-01-28  431  	return ret;
2c8086a5d073e8e eric miao           2007-09-11  432  }
2c8086a5d073e8e eric miao           2007-09-11  433  

:::::: The code at line 423 was first introduced by commit
:::::: c1c14f8954c6d1cb9867024618e93687d9d035ba ARM: pxa3xx: enable external wakeup pins

:::::: TO: Daniel Mack <[email protected]>
:::::: CC: Robert Jarzmik <[email protected]>

--
0-DAY CI Kernel Test Service
https://github.com/intel/lkp-tests/wiki
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.