[pm:pm-sleep-core 3/3] drivers/base/power/main.c:582:3: error: 'state' undeclared; did you mean 'statx'?

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



tree:   https://git.kernel.org/pub/scm/linux/kernel/git/rafael/linux-pm.git pm-sleep-core
head:   3aa654e1e731ad8f8aff1a937e09fae14380b6e5
commit: 3aa654e1e731ad8f8aff1a937e09fae14380b6e5 [3/3] PM: sleep: core: Do not skip callbacks in the resume phase
config: x86_64-defconfig (attached as .config)
compiler: gcc-7 (Ubuntu 7.5.0-6ubuntu2) 7.5.0
reproduce:
        git checkout 3aa654e1e731ad8f8aff1a937e09fae14380b6e5
        # save the attached .config to linux build tree
        make ARCH=x86_64 

If you fix the issue, kindly add following tag as appropriate
Reported-by: kbuild test robot <lkp@xxxxxxxxx>

All error/warnings (new ones prefixed by >>):

   drivers/base/power/main.c: In function 'dev_pm_may_skip_resume':
>> drivers/base/power/main.c:582:3: error: 'state' undeclared (first use in this function); did you mean 'statx'?
      state.event == PM_EVENT_THAW);
      ^~~~~
      statx
   drivers/base/power/main.c:582:3: note: each undeclared identifier is reported only once for each function it appears in
   In file included from include/linux/compiler_types.h:68:0,
                    from <command-line>:0:
   drivers/base/power/main.c: In function 'device_resume_noirq':
   drivers/base/power/main.c:597:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const char uninitialized_var(*info);
                                  ^
   include/linux/compiler-gcc.h:65:34: note: in definition of macro 'uninitialized_var'
    #define uninitialized_var(x) x = x
                                     ^
   drivers/base/power/main.c: In function 'device_resume_early':
   drivers/base/power/main.c:765:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const char uninitialized_var(*info);
                                  ^
   include/linux/compiler-gcc.h:65:34: note: in definition of macro 'uninitialized_var'
    #define uninitialized_var(x) x = x
                                     ^
   drivers/base/power/main.c: In function '__device_suspend_noirq':
   drivers/base/power/main.c:1192:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const char uninitialized_var(*info);
                                  ^
   include/linux/compiler-gcc.h:65:34: note: in definition of macro 'uninitialized_var'
    #define uninitialized_var(x) x = x
                                     ^
   drivers/base/power/main.c: In function '__device_suspend_late':
   drivers/base/power/main.c:1377:31: warning: initialization makes pointer from integer without a cast [-Wint-conversion]
     const char uninitialized_var(*info);
                                  ^
   include/linux/compiler-gcc.h:65:34: note: in definition of macro 'uninitialized_var'
    #define uninitialized_var(x) x = x
                                     ^
   drivers/base/power/main.c: In function 'dev_pm_may_skip_resume':
>> drivers/base/power/main.c:583:1: warning: control reaches end of non-void function [-Wreturn-type]
    }
    ^

vim +582 drivers/base/power/main.c

   563	
   564	/**
   565	 * dev_pm_may_skip_resume - System-wide device resume optimization check.
   566	 * @dev: Target device.
   567	 *
   568	 * Driver-level resume callbacks can be skipped for @dev if its configuration is
   569	 * suitable for that (power.must_resume is not set) and the current transition
   570	 * is not the hibernation-related "restore" one (in which case all devices must
   571	 * be resumed) or the current transition is hibernation-related "thaw" one and
   572	 * the driver-level callbacks were skipped for @dev during the corresponding
   573	 * "freeze" transition (which happens when DPM_FLAG_SMART_SUSPEND is set and the
   574	 * device remains in runtime suspend), so running the "thaw" callbacks for it
   575	 * may be invalid.
   576	 */
   577	bool dev_pm_may_skip_resume(struct device *dev)
   578	{
   579		return (!dev->power.must_resume &&
   580			pm_transition.event != PM_EVENT_RESTORE) ||
   581		       (dev_pm_smart_suspend_and_suspended(dev) &&
 > 582			state.event == PM_EVENT_THAW);
 > 583	}
   584	

---
0-DAY CI Kernel Test Service, Intel Corporation
https://lists.01.org/hyperkitty/list/kbuild-all@xxxxxxxxxxxx

Attachment: .config.gz
Description: application/gzip


[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux