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: <202502201807.2UYZnMAp-lkp@intel.com>
Date: Thu, 20 Feb 2025 18:35:09 +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: s390-randconfig-002-20250220 (https://download.01.org/0day-ci/archive/20250220/202502201807.2UYZnMAp-lkp@intel.com/config)
compiler: s390-linux-gcc (GCC) 14.2.0
reproduce (this is a W=1 build): (https://download.01.org/0day-ci/archive/20250220/202502201807.2UYZnMAp-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/202502201807.2UYZnMAp-lkp@intel.com/

All errors (new ones prefixed by >>):

   In file included from include/linux/cpumask.h:11,
                    from arch/s390/include/asm/processor.h:31,
                    from include/linux/sched.h:13,
                    from include/linux/delay.h:13,
                    from drivers/greybus/interface.c:9:
>> drivers/greybus/interface.c:764:28: error: 'gb_interface_suspend' undeclared here (not in a function); did you mean 'gb_interface_type'?
     764 |         SET_RUNTIME_PM_OPS(gb_interface_suspend, gb_interface_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/greybus/interface.c:764:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     764 |         SET_RUNTIME_PM_OPS(gb_interface_suspend, gb_interface_resume,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/greybus/interface.c:764:50: error: 'gb_interface_resume' undeclared here (not in a function); did you mean 'gb_interface_release'?
     764 |         SET_RUNTIME_PM_OPS(gb_interface_suspend, gb_interface_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/greybus/interface.c:764:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     764 |         SET_RUNTIME_PM_OPS(gb_interface_suspend, gb_interface_resume,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/greybus/interface.c:765:28: error: 'gb_interface_runtime_idle' undeclared here (not in a function); did you mean 'gb_interface_read_dme'?
     765 |                            gb_interface_runtime_idle)
         |                            ^~~~~~~~~~~~~~~~~~~~~~~~~
   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:339:25: note: in expansion of macro 'pm_ptr'
     339 |         .runtime_idle = pm_ptr(idle_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/greybus/interface.c:764:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     764 |         SET_RUNTIME_PM_OPS(gb_interface_suspend, gb_interface_resume,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/greybus.h:14,
                    from drivers/greybus/bundle.c:9:
>> drivers/greybus/bundle.c:166:28: error: 'gb_bundle_suspend' undeclared here (not in a function); did you mean 'gb_bundle_find'?
     166 |         SET_RUNTIME_PM_OPS(gb_bundle_suspend, gb_bundle_resume, gb_bundle_idle)
         |                            ^~~~~~~~~~~~~~~~~
   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/greybus/bundle.c:166:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     166 |         SET_RUNTIME_PM_OPS(gb_bundle_suspend, gb_bundle_resume, gb_bundle_idle)
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/greybus/bundle.c:166:47: error: 'gb_bundle_resume' undeclared here (not in a function); did you mean 'gb_bundle_release'?
     166 |         SET_RUNTIME_PM_OPS(gb_bundle_suspend, gb_bundle_resume, gb_bundle_idle)
         |                                               ^~~~~~~~~~~~~~~~
   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/greybus/bundle.c:166:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     166 |         SET_RUNTIME_PM_OPS(gb_bundle_suspend, gb_bundle_resume, gb_bundle_idle)
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/greybus/bundle.c:166:65: error: 'gb_bundle_idle' undeclared here (not in a function); did you mean 'gb_bundle_add'?
     166 |         SET_RUNTIME_PM_OPS(gb_bundle_suspend, gb_bundle_resume, gb_bundle_idle)
         |                                                                 ^~~~~~~~~~~~~~
   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:339:25: note: in expansion of macro 'pm_ptr'
     339 |         .runtime_idle = pm_ptr(idle_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/greybus/bundle.c:166:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     166 |         SET_RUNTIME_PM_OPS(gb_bundle_suspend, gb_bundle_resume, gb_bundle_idle)
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/cpumask.h:11,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/mutex.h:17,
                    from include/linux/kernfs.h:11,
                    from include/linux/sysfs.h:16,
                    from include/linux/kobject.h:20,
                    from include/linux/cdev.h:5,
                    from include/linux/gnss.h:11,
                    from drivers/gnss/serial.c:9:
>> drivers/gnss/serial.c:270:28: error: 'gnss_serial_runtime_suspend' undeclared here (not in a function); did you mean 'pm_generic_runtime_suspend'?
     270 |         SET_RUNTIME_PM_OPS(gnss_serial_runtime_suspend, gnss_serial_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: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/gnss/serial.c:270:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     270 |         SET_RUNTIME_PM_OPS(gnss_serial_runtime_suspend, gnss_serial_runtime_resume, NULL)
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/gnss/serial.c:270:57: error: 'gnss_serial_runtime_resume' undeclared here (not in a function); did you mean 'pm_generic_runtime_resume'?
     270 |         SET_RUNTIME_PM_OPS(gnss_serial_runtime_suspend, gnss_serial_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/gnss/serial.c:270:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
     270 |         SET_RUNTIME_PM_OPS(gnss_serial_runtime_suspend, gnss_serial_runtime_resume, NULL)
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from drivers/misc/apds990x.c:11:
>> drivers/misc/apds990x.c:1266:28: error: 'apds990x_runtime_suspend' undeclared here (not in a function); did you mean 'pm_runtime_suspend'?
    1266 |         SET_RUNTIME_PM_OPS(apds990x_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/misc/apds990x.c:1266:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1266 |         SET_RUNTIME_PM_OPS(apds990x_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/misc/apds990x.c:1267:25: error: 'apds990x_runtime_resume' undeclared here (not in a function); did you mean 'pm_runtime_resume'?
    1267 |                         apds990x_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/misc/apds990x.c:1266:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1266 |         SET_RUNTIME_PM_OPS(apds990x_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from drivers/misc/bh1770glc.c:11:
>> drivers/misc/bh1770glc.c:1373:28: error: 'bh1770_runtime_suspend' undeclared here (not in a function); did you mean 'pm_runtime_suspend'?
    1373 |         SET_RUNTIME_PM_OPS(bh1770_runtime_suspend, bh1770_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: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/misc/bh1770glc.c:1373:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1373 |         SET_RUNTIME_PM_OPS(bh1770_runtime_suspend, bh1770_runtime_resume, NULL)
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/misc/bh1770glc.c:1373:52: error: 'bh1770_runtime_resume' undeclared here (not in a function); did you mean 'pm_runtime_resume'?
    1373 |         SET_RUNTIME_PM_OPS(bh1770_runtime_suspend, bh1770_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/misc/bh1770glc.c:1373:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1373 |         SET_RUNTIME_PM_OPS(bh1770_runtime_suspend, bh1770_runtime_resume, NULL)
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/cpumask.h:11,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:63,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from drivers/iio/accel/bmc150-accel-core.c:7:
>> drivers/iio/accel/bmc150-accel-core.c:1858:28: error: 'bmc150_accel_runtime_suspend' undeclared here (not in a function); did you mean 'bmc150_accel_update_slope'?
    1858 |         SET_RUNTIME_PM_OPS(bmc150_accel_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/iio/accel/bmc150-accel-core.c:1858:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1858 |         SET_RUNTIME_PM_OPS(bmc150_accel_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/iio/accel/bmc150-accel-core.c:1859:28: error: 'bmc150_accel_runtime_resume' undeclared here (not in a function); did you mean 'bmc150_accel_core_remove'?
    1859 |                            bmc150_accel_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/iio/accel/bmc150-accel-core.c:1858:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1858 |         SET_RUNTIME_PM_OPS(bmc150_accel_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/cpumask.h:11,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:63,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from drivers/iio/accel/mma8452.c:21:
>> drivers/iio/accel/mma8452.c:1823:28: error: 'mma8452_runtime_suspend' undeclared here (not in a function); did you mean 'pm_runtime_suspend'?
    1823 |         SET_RUNTIME_PM_OPS(mma8452_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/iio/accel/mma8452.c:1823:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1823 |         SET_RUNTIME_PM_OPS(mma8452_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/iio/accel/mma8452.c:1824:28: error: 'mma8452_runtime_resume' undeclared here (not in a function); did you mean 'pm_runtime_resume'?
    1824 |                            mma8452_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/iio/accel/mma8452.c:1823:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1823 |         SET_RUNTIME_PM_OPS(mma8452_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
--
   In file included from include/linux/cpumask.h:11,
                    from include/linux/smp.h:13,
                    from include/linux/lockdep.h:14,
                    from include/linux/spinlock.h:63,
                    from include/linux/mmzone.h:8,
                    from include/linux/gfp.h:7,
                    from include/linux/umh.h:4,
                    from include/linux/kmod.h:9,
                    from include/linux/module.h:17,
                    from drivers/iio/magnetometer/bmc150_magn.c:12:
>> drivers/iio/magnetometer/bmc150_magn.c:1062:28: error: 'bmc150_magn_runtime_suspend' undeclared here (not in a function)
    1062 |         SET_RUNTIME_PM_OPS(bmc150_magn_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/iio/magnetometer/bmc150_magn.c:1062:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1062 |         SET_RUNTIME_PM_OPS(bmc150_magn_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
>> drivers/iio/magnetometer/bmc150_magn.c:1063:28: error: 'bmc150_magn_runtime_resume' undeclared here (not in a function); did you mean 'bmc150_magn_trim_regs'?
    1063 |                            bmc150_magn_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/iio/magnetometer/bmc150_magn.c:1062:9: note: in expansion of macro 'SET_RUNTIME_PM_OPS'
    1062 |         SET_RUNTIME_PM_OPS(bmc150_magn_runtime_suspend,
         |         ^~~~~~~~~~~~~~~~~~
..


vim +764 drivers/greybus/interface.c

30a3bf7b30d86b drivers/staging/greybus/interface.c David Lin 2016-07-14  762  
30a3bf7b30d86b drivers/staging/greybus/interface.c David Lin 2016-07-14  763  static const struct dev_pm_ops gb_interface_pm_ops = {
30a3bf7b30d86b drivers/staging/greybus/interface.c David Lin 2016-07-14 @764  	SET_RUNTIME_PM_OPS(gb_interface_suspend, gb_interface_resume,
30a3bf7b30d86b drivers/staging/greybus/interface.c David Lin 2016-07-14 @765  			   gb_interface_runtime_idle)
30a3bf7b30d86b drivers/staging/greybus/interface.c David Lin 2016-07-14  766  };
30a3bf7b30d86b drivers/staging/greybus/interface.c David Lin 2016-07-14  767  

-- 
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