summaryrefslogtreecommitdiff
path: root/scripts/atomic/gen-atomics.sh
diff options
context:
space:
mode:
authorMark Rutland <mark.rutland@arm.com>2021-07-13 11:52:51 +0100
committerPeter Zijlstra <peterz@infradead.org>2021-07-16 18:46:45 +0200
commite3d18cee258b898017b298b5b93f8134dd62aee3 (patch)
tree020739670ea01731b8f5510ecf28de6cac183432 /scripts/atomic/gen-atomics.sh
parentf3e615b4db1fb7034f1d76dc307b77cc848f040e (diff)
locking/atomic: centralize generated headers
The generated atomic headers are only intended to be included directly by <linux/atomic.h>, but are spread across include/linux/ and include/asm-generic/, where people mnay be encouraged to include them. This patch centralizes them under include/linux/atomic/. Other than the header guards and hashes, there is no change to any of the generated headers as a result of this patch. Signed-off-by: Mark Rutland <mark.rutland@arm.com> Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org> Link: https://lore.kernel.org/r/20210713105253.7615-4-mark.rutland@arm.com
Diffstat (limited to 'scripts/atomic/gen-atomics.sh')
-rwxr-xr-xscripts/atomic/gen-atomics.sh6
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/atomic/gen-atomics.sh b/scripts/atomic/gen-atomics.sh
index 56b119f7d1c2..5b98a8307693 100755
--- a/scripts/atomic/gen-atomics.sh
+++ b/scripts/atomic/gen-atomics.sh
@@ -8,9 +8,9 @@ ATOMICTBL=${ATOMICDIR}/atomics.tbl
LINUXDIR=${ATOMICDIR}/../..
cat <<EOF |
-gen-atomic-instrumented.sh asm-generic/atomic-instrumented.h
-gen-atomic-long.sh asm-generic/atomic-long.h
-gen-atomic-fallback.sh linux/atomic-arch-fallback.h
+gen-atomic-instrumented.sh linux/atomic/atomic-instrumented.h
+gen-atomic-long.sh linux/atomic/atomic-long.h
+gen-atomic-fallback.sh linux/atomic/atomic-arch-fallback.h
EOF
while read script header args; do
/bin/sh ${ATOMICDIR}/${script} ${ATOMICTBL} ${args} > ${LINUXDIR}/include/${header}