mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
selftests/powerpc: Add more utility macros
Adds _MSG assertion variants to provide more context behind why a failure occurred. Also include unistd.h for _exit() and stdio.h for fprintf(), and move ARRAY_SIZE macro to utils.h. The _MSG variants and ARRAY_SIZE will be used by the following DEXCR selftests. Signed-off-by: Benjamin Gray <bgray@linux.ibm.com> Reviewed-by: Russell Currey <ruscur@russell.cc> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au> Link: https://msgid.link/20230616034846.311705-10-bgray@linux.ibm.com
This commit is contained in:
committed by
Michael Ellerman
parent
65d6c884bf
commit
b9125c9aa0
@@ -18,8 +18,6 @@
|
||||
#define MMCR1_RSQ 0x200000000000ULL /* radix scope qual field */
|
||||
#define BHRB_DISABLE 0x2000000000ULL /* MMCRA BHRB DISABLE bit */
|
||||
|
||||
#define ARRAY_SIZE(x) (sizeof(x) / sizeof((x)[0]))
|
||||
|
||||
extern int ev_mask_pmcxsel, ev_shift_pmcxsel;
|
||||
extern int ev_mask_marked, ev_shift_marked;
|
||||
extern int ev_mask_comb, ev_shift_comb;
|
||||
|
||||
Reference in New Issue
Block a user