Message ID | 20230505080207.11902-2-ben.dooks@sifive.com |
---|---|
State | Accepted |
Commit | 3c874711ba2d66361b6040df48814be666aa6b1d |
Delegated to: | Andes |
Headers | show |
Series | [1/3] riscv: add generic link for <asm/atomic.h> | expand |
On Fri, May 05, 2023 at 09:02:05AM +0100, Ben Dooks wrote: > Add a link from <asm/atomic.h> to the generic one to allow > things like ubifs to be built. This can be extended with > riscv AMO ops at a later date. > > Signed-off-by: Ben Dooks <ben.dooks@sifive.com> > --- > arch/riscv/include/asm/atomic.h | 14 ++++++++++++++ > 1 file changed, 14 insertions(+) > create mode 100644 arch/riscv/include/asm/atomic.h > Reviewed-by: Leo Yu-Chi Liang <ycliang@andestech.com>
diff --git a/arch/riscv/include/asm/atomic.h b/arch/riscv/include/asm/atomic.h new file mode 100644 index 0000000000..f541fb4daa --- /dev/null +++ b/arch/riscv/include/asm/atomic.h @@ -0,0 +1,14 @@ +/* SPDX-License-Identifier: GPL-2.0+ */ +/* + * Copyright 2023 SiFive, Inc. + */ + +#ifndef __RISCV_ATOMIC_H +#define __RISCV_ATOMIC_H + +/* use the generic asm/atomic.h until we define a better one */ + +#include <asm/system.h> +#include <asm-generic/atomic.h> + +#endif
Add a link from <asm/atomic.h> to the generic one to allow things like ubifs to be built. This can be extended with riscv AMO ops at a later date. Signed-off-by: Ben Dooks <ben.dooks@sifive.com> --- arch/riscv/include/asm/atomic.h | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 arch/riscv/include/asm/atomic.h