浏览代码

uml: after_sleep_interval should return something

I forgot to have an int-returning function actually return something.

Signed-off-by: Jeff Dike <jdike@linux.intel.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Jeff Dike 17 年之前
父节点
当前提交
0a765329ed
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      arch/um/os-Linux/time.c

+ 1 - 0
arch/um/os-Linux/time.c

@@ -77,6 +77,7 @@ long long os_nsecs(void)
 #ifdef UML_CONFIG_NO_HZ
 #ifdef UML_CONFIG_NO_HZ
 static int after_sleep_interval(struct timespec *ts)
 static int after_sleep_interval(struct timespec *ts)
 {
 {
+	return 0;
 }
 }
 #else
 #else
 static inline long long timespec_to_us(const struct timespec *ts)
 static inline long long timespec_to_us(const struct timespec *ts)