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 55ef15184057d337ad589bf11477fa364fcaef0e..e4063eba4a5bc2cd986cfe2f25be35075b8c401a 100644 (file)
@@ -55,8 +55,6 @@
 #include <setjmp.h>
 #include <signal.h>
 
-#include <asm/cputable.h>
-
 #include "utils.h"
 #include "instructions.h"
 
index bba400d1bb90d5f7e2bb97f2af578dc01c7c3aa7..052b5a775dc2609e13c149c43002ed7e48e6b8a7 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 2980abca31e0dc5d3eee789def5b6d4170a99439..2070a1e2b3a57521edf2c9856667e9d2480ffacf 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 2d37942bf72b4ea52f515a2e52ac179934e61e28..ad32a09a65400aed45aaa69b30a4842c394efa95 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 979df3d9836854ec15adc79ce6ded9cee13a6e82..cb2f18855c8d87713790c041c4fbcf03a8a82591 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 c402464b038fc8ce62aeaddc3cac896cdd2cdaa7..c5a1e5c163fcdf79b9568f13d3c60bd3b7f5e6b3 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"