[pm:bleeding-edge 36/45] drivers/base/power/runtime.c:948:65: error: expected ';' before ')' token

[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 bleeding-edge
head:   ee95a2d57cae6a140ae4c4cafc5fe6fe4b303f0e
commit: 048921f715a76e66b5e39e53b59233cd1c8e896a [36/45] PM-runtime: fix deadlock with ktime_get()
config: ia64-allmodconfig (attached as .config)
compiler: ia64-linux-gcc (GCC) 8.2.0
reproduce:
        wget https://raw.githubusercontent.com/intel/lkp-tests/master/sbin/make.cross -O ~/bin/make.cross
        chmod +x ~/bin/make.cross
        git checkout 048921f715a76e66b5e39e53b59233cd1c8e896a
        # save the attached .config to linux build tree
        GCC_VERSION=8.2.0 make.cross ARCH=ia64 

All errors (new ones prefixed by >>):

   drivers/base/power/runtime.c: In function 'pm_schedule_suspend':
>> drivers/base/power/runtime.c:948:65: error: expected ';' before ')' token
     expires = ktime_get_mono_fast_ns() + (u64)delay * NSEC_PER_MSEC);
                                                                    ^
>> drivers/base/power/runtime.c:948:65: error: expected statement before ')' token

vim +948 drivers/base/power/runtime.c

   922	
   923	/**
   924	 * pm_schedule_suspend - Set up a timer to submit a suspend request in future.
   925	 * @dev: Device to suspend.
   926	 * @delay: Time to wait before submitting a suspend request, in milliseconds.
   927	 */
   928	int pm_schedule_suspend(struct device *dev, unsigned int delay)
   929	{
   930		unsigned long flags;
   931		u64 expires;
   932		int retval;
   933	
   934		spin_lock_irqsave(&dev->power.lock, flags);
   935	
   936		if (!delay) {
   937			retval = rpm_suspend(dev, RPM_ASYNC);
   938			goto out;
   939		}
   940	
   941		retval = rpm_check_suspend_allowed(dev);
   942		if (retval)
   943			goto out;
   944	
   945		/* Other scheduled or pending requests need to be canceled. */
   946		pm_runtime_cancel_pending(dev);
   947	
 > 948		expires = ktime_get_mono_fast_ns() + (u64)delay * NSEC_PER_MSEC);
   949		dev->power.timer_expires = expires;
   950		dev->power.timer_autosuspends = 0;
   951		hrtimer_start(&dev->power.suspend_timer, expires, HRTIMER_MODE_ABS);
   952	
   953	 out:
   954		spin_unlock_irqrestore(&dev->power.lock, flags);
   955	
   956		return retval;
   957	}
   958	EXPORT_SYMBOL_GPL(pm_schedule_suspend);
   959	

---
0-DAY kernel test infrastructure                Open Source Technology Center
https://lists.01.org/pipermail/kbuild-all                   Intel Corporation

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