selftests/powerpc: Include asm/cputable.h from utils.h
authorMichael Ellerman <mpe@ellerman.id.au>
Wed, 19 Aug 2020 01:57:22 +0000 (11:57 +1000)
committerMichael Ellerman <mpe@ellerman.id.au>
Tue, 8 Sep 2020 12:23:59 +0000 (22:23 +1000)
utils.h provides have_hwcap() and have_hwcap2() which check for a
feature bit. Those bits are defined in asm/cputable.h, so include it
in utils.h so users of utils.h don't have to do it manually.

Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
Link: https://lore.kernel.org/r/20200819015727.1977134-4-mpe@ellerman.id.au
tools/testing/selftests/powerpc/alignment/alignment_handler.c
tools/testing/selftests/powerpc/include/utils.h
tools/testing/selftests/powerpc/pmu/count_stcx_fail.c
tools/testing/selftests/powerpc/pmu/per_event_excludes.c
tools/testing/selftests/powerpc/stringloops/memcmp.c
tools/testing/selftests/powerpc/tm/tm.h

index 55ef151..e4063eb 100644 (file)
@@ -55,8 +55,6 @@
 #include <setjmp.h>
 #include <signal.h>
 
-#include <asm/cputable.h>
-
 #include "utils.h"
 #include "instructions.h"
 
index bba400d..052b5a7 100644 (file)
@@ -12,6 +12,7 @@
 #include <stdbool.h>
 #include <linux/auxvec.h>
 #include <linux/perf_event.h>
+#include <asm/cputable.h>
 #include "reg.h"
 
 /* Avoid headaches with PRI?64 - just use %ll? always */
index 2980abc..2070a1e 100644 (file)
@@ -9,7 +9,6 @@
 #include <stdbool.h>
 #include <string.h>
 #include <sys/prctl.h>
-#include <asm/cputable.h>
 
 #include "event.h"
 #include "utils.h"
index 2d37942..ad32a09 100644 (file)
@@ -12,8 +12,6 @@
 #include <string.h>
 #include <sys/prctl.h>
 
-#include <asm/cputable.h>
-
 #include "event.h"
 #include "lib.h"
 #include "utils.h"
index 979df3d..cb2f188 100644 (file)
@@ -4,7 +4,7 @@
 #include <string.h>
 #include <sys/mman.h>
 #include <time.h>
-#include <asm/cputable.h>
+
 #include "utils.h"
 
 #define SIZE 256
index c402464..c5a1e5c 100644 (file)
@@ -6,9 +6,8 @@
 #ifndef _SELFTESTS_POWERPC_TM_TM_H
 #define _SELFTESTS_POWERPC_TM_TM_H
 
-#include <asm/tm.h>
-#include <asm/cputable.h>
 #include <stdbool.h>
+#include <asm/tm.h>
 
 #include "utils.h"