s390: fix compile with VIRT_CPU_ACCOUNTING=n.
PATCH 2/2 s390: fix compile with VIRT_CPU_ACCOUNTING=n.
From: Jan Blunck <[email protected]>
[patch 2/2] s390: fix compile with VIRT_CPU_ACCOUNTING=n.
When CONFIG_VIRT_CPU_ACCOUNTING is not defined compiling fails with an undefined reference to account_vtime().
Signed-off-by Jan Blunck <[email protected]>
Signed-off-by Martin Schwidefsky <[email protected]>
---
include/asm-s390/system.h | 2 ++ 1 files changed, 2 insertions(+)
include/asm-s390/system.h +2 -0
@@ -118,6 +118,8 @@ static inline void sched_cacheflush(voidextern void account_vtime (struct task_struct *);extern void account_tick_vtime (struct task_struct *);extern void account_system_vtime (struct task_struct *); +#else +#define account_vtime(x) do { /* empty */ } while (0)#endif #define finish_arch_switch (prev) do { \