diff options
author | Sander Vanheule <sander@svanheule.net> | 2022-08-09 19:36:33 +0200 |
---|---|---|
committer | Yury Norov <yury.norov@gmail.com> | 2022-08-15 11:00:44 -0700 |
commit | be599244865cb788abe2c6f59ccb05d7240448e4 (patch) | |
tree | b064910c767c69d96e8bfeeea2927af7ccee4f98 /include | |
parent | 568035b01cfb107af8d2e4bd2fb9aea22cf5b868 (diff) | |
download | linux-stable-be599244865cb788abe2c6f59ccb05d7240448e4.tar.gz linux-stable-be599244865cb788abe2c6f59ccb05d7240448e4.tar.bz2 linux-stable-be599244865cb788abe2c6f59ccb05d7240448e4.zip |
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: Yury Norov <yury.norov@gmail.com>
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Yury Norov <yury.norov@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/cpumask.h | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/include/linux/cpumask.h b/include/linux/cpumask.h index 0d435d0edbcb..d8c2a40f8beb 100644 --- a/include/linux/cpumask.h +++ b/include/linux/cpumask.h @@ -202,12 +202,13 @@ static inline unsigned int cpumask_local_spread(unsigned int i, int node) return 0; } -static inline int cpumask_any_and_distribute(const struct cpumask *src1p, - const struct cpumask *src2p) { +static inline unsigned int cpumask_any_and_distribute(const struct cpumask *src1p, + const struct cpumask *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); } |