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>] [day] [month] [year] [list]
Message-Id: <280c83a7cd3da0d2a822f27dd9739253cccc4330.1264605513.git.wuzhangjin@gmail.com>
Date:	Wed, 27 Jan 2010 23:20:08 +0800
From:	Wu Zhangjin <wuzhangjin@...il.com>
To:	Thomas Gleixner <tglx@...utronix.de>
Cc:	LKML <linux-kernel@...r.kernel.org>,
	Wu Zhangjin <wuzhangjin@...il.com>
Subject: [PATCH rt/2.6.31 v1] [RT] kernel/sched.c: Fixup of "implicit declaration of function '_finish_arch_switch'"

From: Wu Zhangjin <wuzhangjin@...il.com>

(This v1 revision add the missing "h" of _finish_arch_switch)

This patch fixes the following error:

kernel/sched.c: In function 'finish_task_switch':
kernel/sched.c:2979: error: implicit declaration of function
'_finish_arch_switch'

The following archs have defined their finish_arch_switch:

$ grep finish_arch_switch -ur arch/
arch/s390/include/asm/system.h:#define finish_arch_switch(prev)
arch/sh/include/asm/system_32.h:#define finish_arch_switch(prev
arch/avr32/include/asm/system.h:#define finish_arch_switch(prev)
arch/mips/include/asm/system.h:#define finish_arch_switch(prev)

Signed-off-by: Wu Zhangjin <wuzhangjin@...il.com>
---
 kernel/sched.c |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/kernel/sched.c b/kernel/sched.c
index 590b9bb..230a7de 100644
--- a/kernel/sched.c
+++ b/kernel/sched.c
@@ -959,6 +959,8 @@ static inline u64 global_rt_runtime(void)
 #endif
 #ifndef finish_arch_switch
 # define _finish_arch_switch(prev)	do { } while (0)
+#else
+# define _finish_arch_switch		finish_arch_switch
 #endif
 
 static inline int task_current(struct rq *rq, struct task_struct *p)
-- 
1.6.6

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ