From: Jan Kiszka <[email protected]>

We had a blind spot here. Just make sure we do not test common traps.h
because that one is only supposed to be included via its arch-specific
companion.

Signed-off-by: Jan Kiszka <[email protected]>
---
 scripts/header_check | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/scripts/header_check b/scripts/header_check
index b51f7900..05e08fb3 100755
--- a/scripts/header_check
+++ b/scripts/header_check
@@ -42,6 +42,12 @@ test_compile()
                prepend="#define __ASSEMBLY__
                         #include <jailhouse/types.h>"
                ;;
+       traps.h)
+               if [ "$2" == "hypervisor/arch/arm-common/include/asm/traps.h" 
]; then
+                       # must be included by arm{,64}/include/asm/traps.h only
+                       return
+               fi
+               ;;
        esac

        echo "$prepend" > .header_check.tmp.c
@@ -61,6 +67,12 @@ for header in hypervisor/arch/$ARCH/include/asm/*.h; do
        test_compile asm $header
 done

+if [ "$ARCH" == "arm" -o "$ARCH" == "arm64" ]; then
+       for header in hypervisor/arch/arm-common/include/asm/*.h; do
+               test_compile asm $header
+       done
+fi
+
 for header in include/jailhouse/*.h; do
        test_compile jailhouse $header
 done
--
2.16.4

-- 
You received this message because you are subscribed to the Google Groups 
"Jailhouse" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/jailhouse-dev/b5ef548cec668376ca65492dbd2dc03d9e8cc489.1577125789.git.jan.kiszka%40web.de.

Reply via email to