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>] [thread-next>] [day] [month] [year] [list]
Message-Id: <1224614719-14452-1-git-send-email-henrik@austad.us>
Date:	Tue, 21 Oct 2008 20:45:19 +0200
From:	henrik@...tad.us
To:	mingo@...e.hu
Cc:	linux-kernel@...r.kernel.org,
	Henrik Austad <henrik.austad@...il.com>
Subject: sched: add CONFIG_SMP consistency

From: Henrik Austad <henrik.austad@...il.com>

Do not declare select_task_rq as part of sched_class when CONFIG_SMP is
not set.

Signed-off-by: Henrik Austad <henrik.austad@...il.com>
---
 include/linux/sched.h |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/include/linux/sched.h b/include/linux/sched.h
index c226c7b..9e0e33c 100644
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -898,8 +898,9 @@ struct sched_class {
 	void (*enqueue_task) (struct rq *rq, struct task_struct *p, int wakeup);
 	void (*dequeue_task) (struct rq *rq, struct task_struct *p, int sleep);
 	void (*yield_task) (struct rq *rq);
+#ifdef CONFIG_SMP
 	int  (*select_task_rq)(struct task_struct *p, int sync);
-
+#endif
 	void (*check_preempt_curr) (struct rq *rq, struct task_struct *p, int sync);
 
 	struct task_struct * (*pick_next_task) (struct rq *rq);
-- 
1.6.0.1

--
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