From b5afa8ee891ea1320144320763030ec368756126 Mon Sep 17 00:00:00 2001 From: Vladimir Sokolovsky Date: Wed, 15 Apr 2015 08:52:53 +0300 Subject: [PATCH] compat-3.16: Mask cpumask_set_cpu_local_first as RHEL7.1 backports this symbol issue: http://bugs.openfabrics.org/bugzilla/show_bug.cgi?id=2531 Signed-off-by: Vladimir Sokolovsky --- compat/compat-3.16.c | 1 + include/linux/compat-3.16.h | 2 ++ 2 files changed, 3 insertions(+) diff --git a/compat/compat-3.16.c b/compat/compat-3.16.c index 6c840f7..b57c041 100644 --- a/compat/compat-3.16.c +++ b/compat/compat-3.16.c @@ -20,6 +20,7 @@ * Returns 0 on success, -ENOMEM for no memory, and -EAGAIN when failed to set * the cpu bit and need to re-call the function. */ +#define cpumask_set_cpu_local_first LINUX_BACKPORT(cpumask_set_cpu_local_first) int cpumask_set_cpu_local_first(int i, int numa_node, cpumask_t *dstp) { cpumask_var_t mask; diff --git a/include/linux/compat-3.16.h b/include/linux/compat-3.16.h index cff1f5b..db79f32 100644 --- a/include/linux/compat-3.16.h +++ b/include/linux/compat-3.16.h @@ -7,6 +7,8 @@ #include +#define cpumask_set_cpu_local_first LINUX_BACKPORT(cpumask_set_cpu_local_first) + #if NR_CPUS == 1 static inline int cpumask_set_cpu_local_first(int i, int numa_node, cpumask_t *dstp) { -- 2.41.0