Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

Docs: this_cpu_ops: remove redundant add forms

Commit ac490f4dca94 (Documentation: this_cpu_ops.txt: Update description
of this_cpu_ops) added lists of {__,}this_cpu operations, but these have
duplicate, parameter-less entries for {__,}this_cpu_add which don't
correspond to any implementation. No other operations have such
duplicate entries.

Given both are also listed with their full complement of arguments, the
empty forms are redundant and can be removed. This patch performs said
removal.

Signed-off-by: Mark Rutland <mark.rutland@arm.com>
Reviewed-by: Pranith Kumar <bobby.prani@gmail.com>
Acked-by: Christoph Lameter <cl@linux.com>
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>

authored by

Mark Rutland and committed by
Jiri Kosina
dd42a088 25b91ac2

-2
-2
Documentation/this_cpu_ops.txt
··· 41 41 are defined. These operations can be used without worrying about 42 42 preemption and interrupts. 43 43 44 - this_cpu_add() 45 44 this_cpu_read(pcp) 46 45 this_cpu_write(pcp, val) 47 46 this_cpu_add(pcp, val) ··· 224 225 modifies the variable, then RMW actions can not be guaranteed to be 225 226 safe. 226 227 227 - __this_cpu_add() 228 228 __this_cpu_read(pcp) 229 229 __this_cpu_write(pcp, val) 230 230 __this_cpu_add(pcp, val)