utils.h (620a6473df36f8dc6f70bc85ff3465b2e21d1254) | utils.h (c405b738daf9d8e8a5aedfeb6be851681e65e54b) |
---|---|
1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright 2013, Michael Ellerman, IBM Corp. 4 */ 5 6#ifndef _SELFTESTS_POWERPC_UTILS_H 7#define _SELFTESTS_POWERPC_UTILS_H 8 --- 46 unchanged lines hidden (view full) --- 55#else 56static inline bool have_hwcap2(unsigned long ftr2) 57{ 58 return false; 59} 60#endif 61 62bool is_ppc64le(void); | 1/* SPDX-License-Identifier: GPL-2.0-only */ 2/* 3 * Copyright 2013, Michael Ellerman, IBM Corp. 4 */ 5 6#ifndef _SELFTESTS_POWERPC_UTILS_H 7#define _SELFTESTS_POWERPC_UTILS_H 8 --- 46 unchanged lines hidden (view full) --- 55#else 56static inline bool have_hwcap2(unsigned long ftr2) 57{ 58 return false; 59} 60#endif 61 62bool is_ppc64le(void); |
63int using_hash_mmu(bool *using_hash); |
|
63 64/* Yes, this is evil */ 65#define FAIL_IF(x) \ 66do { \ 67 if ((x)) { \ 68 fprintf(stderr, \ 69 "[FAIL] Test FAILED on line %d\n", __LINE__); \ 70 return 1; \ --- 49 unchanged lines hidden --- | 64 65/* Yes, this is evil */ 66#define FAIL_IF(x) \ 67do { \ 68 if ((x)) { \ 69 fprintf(stderr, \ 70 "[FAIL] Test FAILED on line %d\n", __LINE__); \ 71 return 1; \ --- 49 unchanged lines hidden --- |