Skip to content

Commit

Permalink
core: Restrict asm/ivshmem.h to inclusion by jailhouse/ivshmem.h
Browse files Browse the repository at this point in the history
The asm header will gain a dependency on the generic one and, thus,
should no longer be considered for direct inclusion. Adjust the header
check accordingly.

Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com>
  • Loading branch information
jan-kiszka committed Jan 14, 2017
1 parent 02a1acb commit c219a31
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 10 deletions.
5 changes: 0 additions & 5 deletions hypervisor/arch/arm-common/include/asm/ivshmem.h
Expand Up @@ -10,11 +10,6 @@
* the COPYING file in the top-level directory.
*/

#ifndef _JAILHOUSE_ASM_IVSHMEM_H
#define _JAILHOUSE_ASM_IVSHMEM_H

struct arch_pci_ivshmem {
u16 irq_id;
};

#endif /* !_JAILHOUSE_ASM_IVSHMEM_H */
5 changes: 0 additions & 5 deletions hypervisor/arch/x86/include/asm/ivshmem.h
Expand Up @@ -10,13 +10,8 @@
* the COPYING file in the top-level directory.
*/

#ifndef _JAILHOUSE_ASM_IVSHMEM_H
#define _JAILHOUSE_ASM_IVSHMEM_H

#include <asm/apic.h>

struct arch_pci_ivshmem {
struct apic_irq_message irq_msg;
};

#endif /* !_JAILHOUSE_ASM_IVSHMEM_H */
5 changes: 5 additions & 0 deletions scripts/header_check
Expand Up @@ -38,6 +38,11 @@ test_compile()
prepend="#define __ASSEMBLY__
#include <jailhouse/types.h>"
;;
ivshmem.h)
if [ "$1" == "asm" ]; then
# must be included by jailhouse/ivshmem.h only
return
fi
esac

echo "$prepend" > .header_check.tmp.c
Expand Down

0 comments on commit c219a31

Please sign in to comment.