diff options
author | Heiko Carstens <hca@linux.ibm.com> | 2021-07-21 11:39:25 +0200 |
---|---|---|
committer | Heiko Carstens <hca@linux.ibm.com> | 2021-07-27 09:39:20 +0200 |
commit | c68d463286cd481cfbc4b0207fafef1ef5506d3b (patch) | |
tree | 219bb31ff7e93948d44e90ab28db0a2ec498918f /arch/s390/include/asm/elf.h | |
parent | s390/hwcaps: use named initializers for hwcap string arrays (diff) | |
download | linux-c68d463286cd481cfbc4b0207fafef1ef5506d3b.tar.xz linux-c68d463286cd481cfbc4b0207fafef1ef5506d3b.zip |
s390/hwcaps: add sanity checks
Add BUILD_BUG_ON() sanity checks to make sure the hwcap string array
contains a string for each hwcap.
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
Diffstat (limited to 'arch/s390/include/asm/elf.h')
-rw-r--r-- | arch/s390/include/asm/elf.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/s390/include/asm/elf.h b/arch/s390/include/asm/elf.h index 88f7b7e7c08a..f02273831473 100644 --- a/arch/s390/include/asm/elf.h +++ b/arch/s390/include/asm/elf.h @@ -114,6 +114,7 @@ enum { HWCAP_NR_VXRS_PDE2 = 19, HWCAP_NR_NNPA = 20, HWCAP_NR_PCI_MIO = 21, + HWCAP_NR_MAX }; /* Bits present in AT_HWCAP. */ @@ -142,6 +143,7 @@ enum { enum { HWCAP_INT_NR_SIE = 0, + HWCAP_INT_NR_MAX }; /* Internal bits, not exposed via elf */ |