From: Vladimir Sokolovsky Date: Wed, 15 Apr 2015 05:52:53 +0000 (+0300) Subject: compat-3.16: Mask cpumask_set_cpu_local_first as RHEL7.1 backports this symbol X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=b5afa8ee891ea1320144320763030ec368756126;p=~aditr%2Fcompat.git 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 --- 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) {