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

xtensa: Remove 64 bits atomic builtins stubs

The stubs were provided by commit 725aea873261 ("xtensa: enable KCSAN")
to make linker happy allthought they are not meant to be used at all.

KCSAN core has been fixed to not require them anymore on
32 bits architectures.

Then they can be removed.

Signed-off-by: Christophe Leroy <christophe.leroy@csgroup.eu>
Acked-by: Max Filippov <jcmvbkbc@gmail.com>
Acked-by: Marco Elver <elver@google.com>
Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://msgid.link/a6834980e58c5e2cdf25b3db061f34975de46437.1683892665.git.christophe.leroy@csgroup.eu

authored by

Christophe Leroy and committed by
Michael Ellerman
bcea4f7a 95567f46

-56
-2
arch/xtensa/lib/Makefile
··· 8 8 divsi3.o udivsi3.o modsi3.o umodsi3.o mulsi3.o umulsidi3.o \ 9 9 usercopy.o strncpy_user.o strnlen_user.o 10 10 lib-$(CONFIG_PCI) += pci-auto.o 11 - lib-$(CONFIG_KCSAN) += kcsan-stubs.o 12 - KCSAN_SANITIZE_kcsan-stubs.o := n
-54
arch/xtensa/lib/kcsan-stubs.c
··· 1 - // SPDX-License-Identifier: GPL-2.0 2 - 3 - #include <linux/bug.h> 4 - #include <linux/types.h> 5 - 6 - void __atomic_store_8(volatile void *p, u64 v, int i) 7 - { 8 - BUG(); 9 - } 10 - 11 - u64 __atomic_load_8(const volatile void *p, int i) 12 - { 13 - BUG(); 14 - } 15 - 16 - u64 __atomic_exchange_8(volatile void *p, u64 v, int i) 17 - { 18 - BUG(); 19 - } 20 - 21 - bool __atomic_compare_exchange_8(volatile void *p1, void *p2, u64 v, bool b, int i1, int i2) 22 - { 23 - BUG(); 24 - } 25 - 26 - u64 __atomic_fetch_add_8(volatile void *p, u64 v, int i) 27 - { 28 - BUG(); 29 - } 30 - 31 - u64 __atomic_fetch_sub_8(volatile void *p, u64 v, int i) 32 - { 33 - BUG(); 34 - } 35 - 36 - u64 __atomic_fetch_and_8(volatile void *p, u64 v, int i) 37 - { 38 - BUG(); 39 - } 40 - 41 - u64 __atomic_fetch_or_8(volatile void *p, u64 v, int i) 42 - { 43 - BUG(); 44 - } 45 - 46 - u64 __atomic_fetch_xor_8(volatile void *p, u64 v, int i) 47 - { 48 - BUG(); 49 - } 50 - 51 - u64 __atomic_fetch_nand_8(volatile void *p, u64 v, int i) 52 - { 53 - BUG(); 54 - }