Skip to content

Instantly share code, notes, and snippets.

@GustavoARSilva
Created April 29, 2020 21:50
Show Gist options
  • Select an option

  • Save GustavoARSilva/bfd54d91bed65aac0a1b2ea442cb93d7 to your computer and use it in GitHub Desktop.

Select an option

Save GustavoARSilva/bfd54d91bed65aac0a1b2ea442cb93d7 to your computer and use it in GitHub Desktop.
flexible-array member conversion
diff --git a/include/linux/tpm_eventlog.h b/include/linux/tpm_eventlog.h
index c253461b1c4e..4f8c90c93c29 100644
--- a/include/linux/tpm_eventlog.h
+++ b/include/linux/tpm_eventlog.h
@@ -97,7 +97,7 @@ struct tcg_pcr_event {
u32 event_type;
u8 digest[20];
u32 event_size;
- u8 event[0];
+ u8 event[];
} __packed;
struct tcg_event_field {
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment