Mark Rutland | 8d32588 | 2018-09-04 11:48:29 +0100 | [diff] [blame] | 1 | #!/bin/sh |
| 2 | # SPDX-License-Identifier: GPL-2.0 |
| 3 | # |
| 4 | # Check if atomic headers are up-to-date |
| 5 | |
| 6 | ATOMICDIR=$(dirname $0) |
| 7 | ATOMICTBL=${ATOMICDIR}/atomics.tbl |
| 8 | LINUXDIR=${ATOMICDIR}/../.. |
| 9 | |
| 10 | cat <<EOF | |
| 11 | gen-atomic-instrumented.sh asm-generic/atomic-instrumented.h |
| 12 | gen-atomic-long.sh asm-generic/atomic-long.h |
| 13 | gen-atomic-fallback.sh linux/atomic-fallback.h |
| 14 | EOF |
| 15 | while read script header; do |
| 16 | if ! (${ATOMICDIR}/${script} ${ATOMICTBL} | diff - ${LINUXDIR}/include/${header} > /dev/null); then |
| 17 | printf "warning: include/${header} is out-of-date.\n" |
| 18 | fi |
| 19 | done |