[willy-pagecache:headers 4/19] drivers/soc/xilinx/zynqmp_power.c:101:8: error: unknown type name 'irqreturn_t'

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:   032f02810150ef15c319b0ac8f82f7ca9760fe47
commit: ee8c3d1b21838865d98d47c06331c531fa5f426c [4/19] headers: Remove swap.h from suspend.h
config: arm64-randconfig-003-20260818 (https://download.01.org/0day-ci/archive/20260819/[email protected]/config)
compiler: aarch64-linux-gcc (GCC) 8.5.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20260819/[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/soc/xilinx/zynqmp_power.c:101:8: error: unknown type name 'irqreturn_t'
    static irqreturn_t zynqmp_pm_isr(int irq, void *data)
           ^~~~~~~~~~~
   drivers/soc/xilinx/zynqmp_power.c: In function 'zynqmp_pm_isr':
>> drivers/soc/xilinx/zynqmp_power.c:124:9: error: 'IRQ_HANDLED' undeclared (first use in this function); did you mean 'EBADHANDLE'?
     return IRQ_HANDLED;
            ^~~~~~~~~~~
            EBADHANDLE
   drivers/soc/xilinx/zynqmp_power.c:124:9: note: each undeclared identifier is reported only once for each function it appears in
   drivers/soc/xilinx/zynqmp_power.c: In function 'zynqmp_pm_probe':
>> drivers/soc/xilinx/zynqmp_power.c:366:9: error: implicit declaration of function 'devm_request_threaded_irq'; did you mean 'devm_request_region'? [-Werror=implicit-function-declaration]
      ret = devm_request_threaded_irq(&pdev->dev, irq, NULL,
            ^~~~~~~~~~~~~~~~~~~~~~~~~
            devm_request_region
>> drivers/soc/xilinx/zynqmp_power.c:368:7: error: 'IRQF_NO_SUSPEND' undeclared (first use in this function); did you mean 'SUSPEND_SUSPEND'?
          IRQF_NO_SUSPEND | IRQF_ONESHOT,
          ^~~~~~~~~~~~~~~
          SUSPEND_SUSPEND
>> drivers/soc/xilinx/zynqmp_power.c:368:25: error: 'IRQF_ONESHOT' undeclared (first use in this function); did you mean 'SA_ONESHOT'?
          IRQF_NO_SUSPEND | IRQF_ONESHOT,
                            ^~~~~~~~~~~~
                            SA_ONESHOT
   cc1: some warnings being treated as errors


vim +/irqreturn_t +101 drivers/soc/xilinx/zynqmp_power.c

70602b37c4afd9 Abhyuday Godhasara      2021-11-28  100  
ab272643d723f5 Rajan Vaja              2019-01-29 @101  static irqreturn_t zynqmp_pm_isr(int irq, void *data)
ab272643d723f5 Rajan Vaja              2019-01-29  102  {
ab272643d723f5 Rajan Vaja              2019-01-29  103  	u32 payload[CB_PAYLOAD_SIZE];
ab272643d723f5 Rajan Vaja              2019-01-29  104  
ab272643d723f5 Rajan Vaja              2019-01-29  105  	zynqmp_pm_get_callback_data(payload);
ab272643d723f5 Rajan Vaja              2019-01-29  106  
ab272643d723f5 Rajan Vaja              2019-01-29  107  	/* First element is callback API ID, others are callback arguments */
ab272643d723f5 Rajan Vaja              2019-01-29  108  	if (payload[0] == PM_INIT_SUSPEND_CB) {
ab272643d723f5 Rajan Vaja              2019-01-29  109  		switch (payload[1]) {
ab272643d723f5 Rajan Vaja              2019-01-29  110  		case SUSPEND_SYSTEM_SHUTDOWN:
ab272643d723f5 Rajan Vaja              2019-01-29  111  			orderly_poweroff(true);
ab272643d723f5 Rajan Vaja              2019-01-29  112  			break;
ab272643d723f5 Rajan Vaja              2019-01-29  113  		case SUSPEND_POWER_REQUEST:
ab272643d723f5 Rajan Vaja              2019-01-29  114  			pm_suspend(PM_SUSPEND_MEM);
ab272643d723f5 Rajan Vaja              2019-01-29  115  			break;
ab272643d723f5 Rajan Vaja              2019-01-29  116  		default:
4c0afac2dfa1e1 Michal Simek            2023-10-27  117  			pr_err("%s Unsupported InitSuspendCb reason code %d\n",
4c0afac2dfa1e1 Michal Simek            2023-10-27  118  			       __func__, payload[1]);
ab272643d723f5 Rajan Vaja              2019-01-29  119  		}
87fda1acfc3b90 Naman Trivedi Manojbhai 2023-12-07  120  	} else {
87fda1acfc3b90 Naman Trivedi Manojbhai 2023-12-07  121  		pr_err("%s() Unsupported Callback %d\n", __func__, payload[0]);
ab272643d723f5 Rajan Vaja              2019-01-29  122  	}
ab272643d723f5 Rajan Vaja              2019-01-29  123  
ab272643d723f5 Rajan Vaja              2019-01-29 @124  	return IRQ_HANDLED;
ab272643d723f5 Rajan Vaja              2019-01-29  125  }
ab272643d723f5 Rajan Vaja              2019-01-29  126  

:::::: The code at line 101 was first introduced by commit
:::::: ab272643d723f531b9caa8a4ac5f85fcd26840d2 drivers: soc: xilinx: Add ZynqMP PM driver

:::::: TO: Rajan Vaja <[email protected]>
:::::: CC: Michal Simek <[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.