]> granicus.if.org Git - strace/commitdiff
maint: add more workarounds for alpha and powerpc
authorDmitry V. Levin <ldv@altlinux.org>
Tue, 22 Nov 2016 00:20:49 +0000 (00:20 +0000)
committerDmitry V. Levin <ldv@altlinux.org>
Tue, 22 Nov 2016 00:21:01 +0000 (00:21 +0000)
* maint/ioctls_sym.sh: Skip asm/core_*.h.  Filter out from
asm-generic/ioctls.h those macros that are defined using unavailable
struct termios2 on alpha and powerpc.

maint/ioctls_sym.sh

index bede01959cd51425d7944888a8ca69b8dafd5f35..bb0a682f1defeaa2ebf7659186eb2ce130a1469e 100755 (executable)
@@ -172,6 +172,9 @@ __EOF__
                *asm/cmb.h)
                        echo '#include <asm/dasd.h>'
                        ;;
+               *asm/core_*.h)
+                       return 0 # false positives
+                       ;;
                *asm/ioctls.h)
                        cat <<'__EOF__'
 #include <asm/termios.h>
@@ -318,6 +321,14 @@ __EOF__
                mkdir -p "$tmpdir/${f%/*}"
        # Hard workarounds for some processed files.  Very fragile.
        case "$f" in
+               *asm-generic/ioctls.h)
+                       # Filter out macros defined using unavailable types.
+                       case "$uname_m" in
+                               alpha*|ppc*)
+                                       grep -Fv 'struct termios2' < "$s" > "$tmpdir/$f"
+                                       ;;
+                       esac
+                       ;;
                *acpi/*|*linux/i2o.h|*media*/exynos-fimc.h|*media/v4l2-subdev.h|*net/bluetooth/*|net/nfc/nci_core.h)
                        # Fetch macros only.
                        grep "${r_define}${r_cmd_name}" < "$s" > "$tmpdir/$f"