提交 be599244 编写于 作者: S Sander Vanheule 提交者: Yury Norov

cpumask: align signatures of UP implementations

Between the generic version, and their uniprocessor optimised
implementations, the return types of cpumask_any_and_distribute() and
cpumask_any_distribute() are not identical.  Change the UP versions to
'unsigned int', to match the generic versions.
Suggested-by: NYury Norov <yury.norov@gmail.com>
Signed-off-by: NSander Vanheule <sander@svanheule.net>
Signed-off-by: NYury Norov <yury.norov@gmail.com>
上级 568035b0
...@@ -202,12 +202,13 @@ static inline unsigned int cpumask_local_spread(unsigned int i, int node) ...@@ -202,12 +202,13 @@ static inline unsigned int cpumask_local_spread(unsigned int i, int node)
return 0; return 0;
} }
static inline int cpumask_any_and_distribute(const struct cpumask *src1p, static inline unsigned int cpumask_any_and_distribute(const struct cpumask *src1p,
const struct cpumask *src2p) { const struct cpumask *src2p)
{
return cpumask_first_and(src1p, src2p); return cpumask_first_and(src1p, src2p);
} }
static inline int cpumask_any_distribute(const struct cpumask *srcp) static inline unsigned int cpumask_any_distribute(const struct cpumask *srcp)
{ {
return cpumask_first(srcp); return cpumask_first(srcp);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册