diff options
| -rw-r--r-- | tools/testing/selftests/x86/mpx-hw.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/testing/selftests/x86/mpx-hw.h b/tools/testing/selftests/x86/mpx-hw.h index 3f0093911f03..d1b61ab870f8 100644 --- a/tools/testing/selftests/x86/mpx-hw.h +++ b/tools/testing/selftests/x86/mpx-hw.h | |||
| @@ -52,14 +52,14 @@ | |||
| 52 | struct mpx_bd_entry { | 52 | struct mpx_bd_entry { |
| 53 | union { | 53 | union { |
| 54 | char x[MPX_BOUNDS_DIR_ENTRY_SIZE_BYTES]; | 54 | char x[MPX_BOUNDS_DIR_ENTRY_SIZE_BYTES]; |
| 55 | void *contents[1]; | 55 | void *contents[0]; |
| 56 | }; | 56 | }; |
| 57 | } __attribute__((packed)); | 57 | } __attribute__((packed)); |
| 58 | 58 | ||
| 59 | struct mpx_bt_entry { | 59 | struct mpx_bt_entry { |
| 60 | union { | 60 | union { |
| 61 | char x[MPX_BOUNDS_TABLE_ENTRY_SIZE_BYTES]; | 61 | char x[MPX_BOUNDS_TABLE_ENTRY_SIZE_BYTES]; |
| 62 | unsigned long contents[1]; | 62 | unsigned long contents[0]; |
| 63 | }; | 63 | }; |
| 64 | } __attribute__((packed)); | 64 | } __attribute__((packed)); |
| 65 | 65 | ||
