lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <202502201907.xdsGS0fm-lkp@intel.com>
Date: Thu, 20 Feb 2025 19:27:05 +0800
From: kernel test robot <lkp@...el.com>
To: Raag Jadav <raag.jadav@...el.com>, rafael@...nel.org,
	paul@...pouillou.net, andriy.shevchenko@...ux.intel.com
Cc: oe-kbuild-all@...ts.linux.dev, linux-pm@...r.kernel.org,
	linux-kernel@...r.kernel.org, Raag Jadav <raag.jadav@...el.com>
Subject: Re: [PATCH v1] PM: Discard runtime_xx() handles using pm_ptr()

Hi Raag,

kernel test robot noticed the following build errors:

[auto build test ERROR on rafael-pm/linux-next]
[also build test ERROR on rafael-pm/bleeding-edge linus/master v6.14-rc3 next-20250220]
[If your patch is applied to the wrong git tree, kindly drop us a note.
And when submitting patch, we suggest to use '--base' as documented in
https://git-scm.com/docs/git-format-patch#_base_tree_information]

url:    https://github.com/intel-lab-lkp/linux/commits/Raag-Jadav/PM-Discard-runtime_xx-handles-using-pm_ptr/20250220-160636
base:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git linux-next
patch link:    https://lore.kernel.org/r/20250220080318.2660840-1-raag.jadav%40intel.com
patch subject: [PATCH v1] PM: Discard runtime_xx() handles using pm_ptr()
config: sparc-randconfig-002-20250220 (https://download.01.org/0day-ci/archive/20250220/202502201907.xdsGS0fm-lkp@intel.com/config)
compiler: sparc-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250220/202502201907.xdsGS0fm-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@...el.com>
| Closes: https://lore.kernel.org/oe-kbuild-all/202502201907.xdsGS0fm-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/cpumask.h:11,
                    from arch/sparc/include/asm/smp_32.h:15,
                    from arch/sparc/include/asm/smp.h:7,
                    from arch/sparc/include/asm/switch_to_32.h:5,
                    from arch/sparc/include/asm/switch_to.h:7,
                    from arch/sparc/include/asm/ptrace.h:120,
                    from arch/sparc/include/asm/thread_info_32.h:19,
                    from arch/sparc/include/asm/thread_info.h:7,
                    from include/linux/thread_info.h:60,
                    from include/asm-generic/preempt.h:5,
                    from ./arch/sparc/include/generated/asm/preempt.h:1,
                    from include/linux/preempt.h:79,
                    from include/linux/spinlock.h:56,
                    from include/linux/irq.h:14,
                    from drivers/slimbus/qcom-ctrl.c:6:
>> drivers/slimbus/qcom-ctrl.c:711:28: error: 'qcom_slim_runtime_suspend' undeclared here (not in a function); did you mean 'pm_runtime_suspend'?
     711 |                            qcom_slim_runtime_suspend,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/slimbus/qcom-ctrl.c:710:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     710 |         SET_RUNTIME_PM_OPS(
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/slimbus/qcom-ctrl.c:712:28: error: 'qcom_slim_runtime_resume' undeclared here (not in a function); did you mean 'pm_runtime_resume'?
     712 |                            qcom_slim_runtime_resume,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/slimbus/qcom-ctrl.c:710:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     710 |         SET_RUNTIME_PM_OPS(
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/clk.h:13,
                    from drivers/spi/spi-amlogic-spifc-a1.c:11:
>> drivers/spi/spi-amlogic-spifc-a1.c:440:28: error: 'amlogic_spifc_a1_runtime_suspend' undeclared here (not in a function); did you mean 'amlogic_spifc_a1_fill_buffer'?
     440 |         SET_RUNTIME_PM_OPS(amlogic_spifc_a1_runtime_suspend,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-amlogic-spifc-a1.c:440:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     440 |         SET_RUNTIME_PM_OPS(amlogic_spifc_a1_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-amlogic-spifc-a1.c:441:28: error: 'amlogic_spifc_a1_runtime_resume' undeclared here (not in a function); did you mean 'amlogic_spifc_a1_request'?
     441 |                            amlogic_spifc_a1_runtime_resume,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-amlogic-spifc-a1.c:440:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     440 |         SET_RUNTIME_PM_OPS(amlogic_spifc_a1_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/clk.h:13,
                    from drivers/spi/spi-slave-mt27xx.c:4:
>> drivers/spi/spi-slave-mt27xx.c:548:28: error: 'mtk_spi_slave_runtime_suspend' undeclared here (not in a function); did you mean 'mtk_spi_slave_interrupt'?
     548 |         SET_RUNTIME_PM_OPS(mtk_spi_slave_runtime_suspend,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-slave-mt27xx.c:548:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     548 |         SET_RUNTIME_PM_OPS(mtk_spi_slave_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-slave-mt27xx.c:549:28: error: 'mtk_spi_slave_runtime_resume' undeclared here (not in a function); did you mean 'mtk_spi_slave_interrupt'?
     549 |                            mtk_spi_slave_runtime_resume, NULL)
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-slave-mt27xx.c:548:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     548 |         SET_RUNTIME_PM_OPS(mtk_spi_slave_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/clk.h:13,
                    from drivers/spi/spi-meson-spifc.c:8:
>> drivers/spi/spi-meson-spifc.c:418:28: error: 'meson_spifc_runtime_suspend' undeclared here (not in a function); did you mean 'pm_generic_runtime_suspend'?
     418 |         SET_RUNTIME_PM_OPS(meson_spifc_runtime_suspend,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-meson-spifc.c:418:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     418 |         SET_RUNTIME_PM_OPS(meson_spifc_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-meson-spifc.c:419:28: error: 'meson_spifc_runtime_resume' undeclared here (not in a function); did you mean 'pm_generic_runtime_resume'?
     419 |                            meson_spifc_runtime_resume,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-meson-spifc.c:418:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     418 |         SET_RUNTIME_PM_OPS(meson_spifc_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/clk.h:13,
                    from drivers/spi/spi-s3c64xx.c:8:
>> drivers/spi/spi-s3c64xx.c:1507:28: error: 's3c64xx_spi_runtime_suspend' undeclared here (not in a function)
    1507 |         SET_RUNTIME_PM_OPS(s3c64xx_spi_runtime_suspend,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-s3c64xx.c:1507:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1507 |         SET_RUNTIME_PM_OPS(s3c64xx_spi_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-s3c64xx.c:1508:28: error: 's3c64xx_spi_runtime_resume' undeclared here (not in a function)
    1508 |                            s3c64xx_spi_runtime_resume, NULL)
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-s3c64xx.c:1507:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1507 |         SET_RUNTIME_PM_OPS(s3c64xx_spi_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/clk.h:13,
                    from drivers/spi/spi-img-spfi.c:9:
>> drivers/spi/spi-img-spfi.c:741:28: error: 'img_spfi_runtime_suspend' undeclared here (not in a function); did you mean 'pm_runtime_suspend'?
     741 |         SET_RUNTIME_PM_OPS(img_spfi_runtime_suspend, img_spfi_runtime_resume,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-img-spfi.c:741:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     741 |         SET_RUNTIME_PM_OPS(img_spfi_runtime_suspend, img_spfi_runtime_resume,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-img-spfi.c:741:54: error: 'img_spfi_runtime_resume' undeclared here (not in a function); did you mean 'pm_runtime_resume'?
     741 |         SET_RUNTIME_PM_OPS(img_spfi_runtime_suspend, img_spfi_runtime_resume,
         |                                                      ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-img-spfi.c:741:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     741 |         SET_RUNTIME_PM_OPS(img_spfi_runtime_suspend, img_spfi_runtime_resume,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from drivers/spi/spi-dln2.c:8:
>> drivers/spi/spi-dln2.c:864:28: error: 'dln2_spi_runtime_suspend' undeclared here (not in a function); did you mean 'pm_runtime_suspend'?
     864 |         SET_RUNTIME_PM_OPS(dln2_spi_runtime_suspend,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-dln2.c:864:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     864 |         SET_RUNTIME_PM_OPS(dln2_spi_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-dln2.c:865:28: error: 'dln2_spi_runtime_resume' undeclared here (not in a function); did you mean 'pm_runtime_resume'?
     865 |                            dln2_spi_runtime_resume, NULL)
         |                            ^~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-dln2.c:864:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     864 |         SET_RUNTIME_PM_OPS(dln2_spi_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/interrupt.h:6,
                    from drivers/spi/spi-orion.c:9:
>> drivers/spi/spi-orion.c:837:28: error: 'orion_spi_runtime_suspend' undeclared here (not in a function); did you mean 'pm_runtime_suspend'?
     837 |         SET_RUNTIME_PM_OPS(orion_spi_runtime_suspend,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-orion.c:837:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     837 |         SET_RUNTIME_PM_OPS(orion_spi_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-orion.c:838:28: error: 'orion_spi_runtime_resume' undeclared here (not in a function); did you mean 'pm_runtime_resume'?
     838 |                            orion_spi_runtime_resume,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-orion.c:837:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     837 |         SET_RUNTIME_PM_OPS(orion_spi_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/clk.h:13,
                    from drivers/spi/spi-rockchip.c:7:
>> drivers/spi/spi-rockchip.c:1020:28: error: 'rockchip_spi_runtime_suspend' undeclared here (not in a function)
    1020 |         SET_RUNTIME_PM_OPS(rockchip_spi_runtime_suspend,
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:337:28: note: in expansion of macro 'pm_ptr'
     337 |         .runtime_suspend = pm_ptr(suspend_fn), \
         |                            ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-rockchip.c:1020:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1020 |         SET_RUNTIME_PM_OPS(rockchip_spi_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/spi/spi-rockchip.c:1021:28: error: 'rockchip_spi_runtime_resume' undeclared here (not in a function)
    1021 |                            rockchip_spi_runtime_resume, NULL)
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~~~
   include/linux/kernel.h:48:44: note: in definition of macro 'PTR_IF'
      48 | #define PTR_IF(cond, ptr)       ((cond) ? (ptr) : NULL)
         |                                            ^~~
   include/linux/pm.h:338:27: note: in expansion of macro 'pm_ptr'
     338 |         .runtime_resume = pm_ptr(resume_fn), \
         |                           ^~~~~~
   include/linux/pm.h:363:9: note: in expansion of macro 'RUNTIME_PM_OPS'
     363 |         RUNTIME_PM_OPS(suspend_fn, resume_fn, idle_fn)
         |         ^~~~~~~~~~~~~~
   drivers/spi/spi-rockchip.c:1020:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1020 |         SET_RUNTIME_PM_OPS(rockchip_spi_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
..


vim +711 drivers/slimbus/qcom-ctrl.c

ad7fcbc308b050 Sagar Dharia 2017-12-11  707  
ad7fcbc308b050 Sagar Dharia 2017-12-11  708  static const struct dev_pm_ops qcom_slim_dev_pm_ops = {
ad7fcbc308b050 Sagar Dharia 2017-12-11  709  	SET_SYSTEM_SLEEP_PM_OPS(qcom_slim_suspend, qcom_slim_resume)
ad7fcbc308b050 Sagar Dharia 2017-12-11  710  	SET_RUNTIME_PM_OPS(
ad7fcbc308b050 Sagar Dharia 2017-12-11 @711  			   qcom_slim_runtime_suspend,
ad7fcbc308b050 Sagar Dharia 2017-12-11 @712  			   qcom_slim_runtime_resume,
ad7fcbc308b050 Sagar Dharia 2017-12-11  713  			   NULL
ad7fcbc308b050 Sagar Dharia 2017-12-11  714  	)
ad7fcbc308b050 Sagar Dharia 2017-12-11  715  };
ad7fcbc308b050 Sagar Dharia 2017-12-11  716  

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

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ