Commit 68fe887
committed
security/intel/cbnt/measurement: fix GCC 13 flex-array build failure
GCC 13 promotes -Wflex-array-member-not-at-end to an error. The
bpm_ibbs and bpm_ibbs_bottom structs contain hash_struct members with
flexible arrays that are not at the end of their containing struct.
Their layout is fixed by the CBnT hardware specification and cannot
be reordered.
Suppress the diagnostic with a pragma guard around the affected struct
definitions. These hash_struct fields are deprecated since CBnT BWG
v1.2.0 and are always written with size=0 (no payload bytes).
Upstream-Status: Pending
Signed-off-by: Filip Lewiński <filip.lewinski@3mdeb.com>1 parent 80d5d6c commit 68fe887
1 file changed
Lines changed: 11 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
86 | 86 | | |
87 | 87 | | |
88 | 88 | | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
89 | 98 | | |
90 | 99 | | |
91 | 100 | | |
| |||
117 | 126 | | |
118 | 127 | | |
119 | 128 | | |
| 129 | + | |
| 130 | + | |
120 | 131 | | |
121 | 132 | | |
122 | 133 | | |
| |||
0 commit comments