Skip to content

Commit 953257a

Browse files
svanheuleakpm00
authored andcommitted
cpumask: update cpumask_next_wrap() signature
The extern specifier is not needed for this declaration, so drop it. The function also depends only on the input parameters, and has no side effects, so it can be marked __pure like other functions in cpumask.h. Link: https://lkml.kernel.org/r/72ab755695b74bb5fbaa756ae4c0edd708d172f1.1656777646.git.sander@svanheule.net Signed-off-by: Sander Vanheule <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Cc: Borislav Petkov <[email protected]> Cc: Dave Hansen <[email protected]> Cc: Greg Kroah-Hartman <[email protected]> Cc: "H. Peter Anvin" <[email protected]> Cc: Ingo Molnar <[email protected]> Cc: Marco Elver <[email protected]> Cc: Peter Zijlstra <[email protected]> Cc: Thomas Gleixner <[email protected]> Cc: Valentin Schneider <[email protected]> Cc: Yury Norov <[email protected]> Signed-off-by: Andrew Morton <[email protected]>
1 parent c41e886 commit 953257a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/cpumask.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ int cpumask_any_distribute(const struct cpumask *srcp);
229229
(cpu) = cpumask_next_zero((cpu), (mask)), \
230230
(cpu) < nr_cpu_ids;)
231231

232-
extern int cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap);
232+
int __pure cpumask_next_wrap(int n, const struct cpumask *mask, int start, bool wrap);
233233

234234
/**
235235
* for_each_cpu_wrap - iterate over every cpu in a mask, starting at a specified location

0 commit comments

Comments
 (0)