For simplicity, tests should just include <xtf/lib.h> and get all the common
infrastructure for free. All type definitions should come from <xtf/types.h>.
Fix one declaration vs definition mismatch uncovered.
Signed-off-by: Andrew Cooper <andrew.cooper3@citrix.com>
#ifndef XTF_X86_DIV_H
#define XTF_X86_DIV_H
-#include <stdint.h>
+#include <xtf/types.h>
/*
* Divide a 64bit number by 32bit divisor without software support.
#ifndef XTF_X86_LIB_H
#define XTF_X86_LIB_H
-#include <stdint.h>
+#include <xtf/types.h>
static inline uint64_t rdmsr(uint32_t idx)
{
#ifndef XTF_X86_MM_H
#define XTF_X86_MM_H
-#include <stdint.h>
+#include <xtf/types.h>
#include <arch/x86/page.h>
#include <xtf/types.h>
#include <xtf/compiler.h>
#include <xtf/console.h>
+#include <xtf/exlog.h>
+#include <xtf/libc.h>
#include <xtf/numbers.h>
+#include <xtf/report.h>
+#include <xtf/test.h>
+#include <xtf/traps.h>
#include <arch/x86/lib.h>
* Boolean indicating whether generic Force Emulation Prefix support is
* available for the test to use.
*/
-extern const bool xtf_has_fep;
+extern bool xtf_has_fep;
#endif /* XTF_TEST_H */
-#include <xtf/test.h>
-#include <xtf/report.h>
-#include <xtf/console.h>
+#include <xtf/lib.h>
void test_main(void)
{
-#include <xtf/test.h>
-#include <xtf/report.h>
-#include <xtf/console.h>
-
#include <xtf/lib.h>
-#include <xtf/traps.h>
-#include <xtf/exlog.h>
#include <arch/x86/processor.h>
#include <arch/x86/segment.h>