Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

selftests/powerpc: Include asm/cputable.h from utils.h

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

+3 -8
-2
tools/testing/selftests/powerpc/alignment/alignment_handler.c
··· 55 55 #include <setjmp.h> 56 56 #include <signal.h> 57 57 58 - #include <asm/cputable.h> 59 - 60 58 #include "utils.h" 61 59 #include "instructions.h" 62 60
+1
tools/testing/selftests/powerpc/include/utils.h
··· 12 12 #include <stdbool.h> 13 13 #include <linux/auxvec.h> 14 14 #include <linux/perf_event.h> 15 + #include <asm/cputable.h> 15 16 #include "reg.h" 16 17 17 18 /* Avoid headaches with PRI?64 - just use %ll? always */
-1
tools/testing/selftests/powerpc/pmu/count_stcx_fail.c
··· 9 9 #include <stdbool.h> 10 10 #include <string.h> 11 11 #include <sys/prctl.h> 12 - #include <asm/cputable.h> 13 12 14 13 #include "event.h" 15 14 #include "utils.h"
-2
tools/testing/selftests/powerpc/pmu/per_event_excludes.c
··· 12 12 #include <string.h> 13 13 #include <sys/prctl.h> 14 14 15 - #include <asm/cputable.h> 16 - 17 15 #include "event.h" 18 16 #include "lib.h" 19 17 #include "utils.h"
+1 -1
tools/testing/selftests/powerpc/stringloops/memcmp.c
··· 4 4 #include <string.h> 5 5 #include <sys/mman.h> 6 6 #include <time.h> 7 - #include <asm/cputable.h> 7 + 8 8 #include "utils.h" 9 9 10 10 #define SIZE 256
+1 -2
tools/testing/selftests/powerpc/tm/tm.h
··· 6 6 #ifndef _SELFTESTS_POWERPC_TM_TM_H 7 7 #define _SELFTESTS_POWERPC_TM_TM_H 8 8 9 - #include <asm/tm.h> 10 - #include <asm/cputable.h> 11 9 #include <stdbool.h> 10 + #include <asm/tm.h> 12 11 13 12 #include "utils.h" 14 13