cpumask: don't define set_cpus_allowed() if CONFIG_CPUMASK_OFFSTACK=y

Impact: remove obsolete API

Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
---
 include/linux/sched.h |    3 +++
 1 file changed, 3 insertions(+)

diff --git a/include/linux/sched.h b/include/linux/sched.h
--- a/include/linux/sched.h
+++ b/include/linux/sched.h
@@ -1671,10 +1671,13 @@ static inline int set_cpus_allowed_ptr(s
 	return 0;
 }
 #endif
+
+#ifndef CONFIG_CPUMASK_OFFSTACK
 static inline int set_cpus_allowed(struct task_struct *p, cpumask_t new_mask)
 {
 	return set_cpus_allowed_ptr(p, &new_mask);
 }
+#endif
 
 extern unsigned long long sched_clock(void);
 
