diff options
| author | Heiko Carstens <heiko.carstens@de.ibm.com> | 2013-10-21 07:25:36 -0400 |
|---|---|---|
| committer | Tejun Heo <tj@kernel.org> | 2013-10-27 09:03:46 -0400 |
| commit | 84292b29475bc7bb6b04ae5360595bd816ca4efb (patch) | |
| tree | 0fe3918a7797f77021c5be244bbf2e946a9dbd41 /include/linux | |
| parent | f851c8d8583891a6e0a447b539db3c39a4f5d43d (diff) | |
percpu: remove this_cpu_xor() implementation
There is not a single user in the whole kernel.
Besides that this_cpu_xor() is broken anyway since it gets
translated to this_cpu_or() (see __pcpu_size_call() line).
So instead of fixing an unused definition just remove it.
Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Acked-by: Ingo Molnar <mingo@kernel.org>
Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/percpu.h | 32 |
1 files changed, 0 insertions, 32 deletions
diff --git a/include/linux/percpu.h b/include/linux/percpu.h index cc88172c7d9a..fd6ffe459aae 100644 --- a/include/linux/percpu.h +++ b/include/linux/percpu.h | |||
| @@ -375,22 +375,6 @@ do { \ | |||
| 375 | # define this_cpu_or(pcp, val) __pcpu_size_call(this_cpu_or_, (pcp), (val)) | 375 | # define this_cpu_or(pcp, val) __pcpu_size_call(this_cpu_or_, (pcp), (val)) |
| 376 | #endif | 376 | #endif |
| 377 | 377 | ||
| 378 | #ifndef this_cpu_xor | ||
| 379 | # ifndef this_cpu_xor_1 | ||
| 380 | # define this_cpu_xor_1(pcp, val) _this_cpu_generic_to_op((pcp), (val), ^=) | ||
| 381 | # endif | ||
| 382 | # ifndef this_cpu_xor_2 | ||
| 383 | # define this_cpu_xor_2(pcp, val) _this_cpu_generic_to_op((pcp), (val), ^=) | ||
| 384 | # endif | ||
| 385 | # ifndef this_cpu_xor_4 | ||
| 386 | # define this_cpu_xor_4(pcp, val) _this_cpu_generic_to_op((pcp), (val), ^=) | ||
| 387 | # endif | ||
| 388 | # ifndef this_cpu_xor_8 | ||
| 389 | # define this_cpu_xor_8(pcp, val) _this_cpu_generic_to_op((pcp), (val), ^=) | ||
| 390 | # endif | ||
| 391 | # define this_cpu_xor(pcp, val) __pcpu_size_call(this_cpu_or_, (pcp), (val)) | ||
| 392 | #endif | ||
| 393 | |||
| 394 | #define _this_cpu_generic_add_return(pcp, val) \ | 378 | #define _this_cpu_generic_add_return(pcp, val) \ |
| 395 | ({ \ | 379 | ({ \ |
| 396 | typeof(pcp) ret__; \ | 380 | typeof(pcp) ret__; \ |
| @@ -629,22 +613,6 @@ do { \ | |||
| 629 | # define __this_cpu_or(pcp, val) __pcpu_size_call(__this_cpu_or_, (pcp), (val)) | 613 | # define __this_cpu_or(pcp, val) __pcpu_size_call(__this_cpu_or_, (pcp), (val)) |
| 630 | #endif | 614 | #endif |
| 631 | 615 | ||
| 632 | #ifndef __this_cpu_xor | ||
| 633 | # ifndef __this_cpu_xor_1 | ||
| 634 | # define __this_cpu_xor_1(pcp, val) __this_cpu_generic_to_op((pcp), (val), ^=) | ||
| 635 | # endif | ||
| 636 | # ifndef __this_cpu_xor_2 | ||
| 637 | # define __this_cpu_xor_2(pcp, val) __this_cpu_generic_to_op((pcp), (val), ^=) | ||
| 638 | # endif | ||
| 639 | # ifndef __this_cpu_xor_4 | ||
| 640 | # define __this_cpu_xor_4(pcp, val) __this_cpu_generic_to_op((pcp), (val), ^=) | ||
| 641 | # endif | ||
| 642 | # ifndef __this_cpu_xor_8 | ||
| 643 | # define __this_cpu_xor_8(pcp, val) __this_cpu_generic_to_op((pcp), (val), ^=) | ||
| 644 | # endif | ||
| 645 | # define __this_cpu_xor(pcp, val) __pcpu_size_call(__this_cpu_xor_, (pcp), (val)) | ||
| 646 | #endif | ||
| 647 | |||
| 648 | #define __this_cpu_generic_add_return(pcp, val) \ | 616 | #define __this_cpu_generic_add_return(pcp, val) \ |
| 649 | ({ \ | 617 | ({ \ |
| 650 | __this_cpu_add(pcp, val); \ | 618 | __this_cpu_add(pcp, val); \ |
