From 6a00113de8b9060a7227bcfa79b3786e3e592a33 Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Thu, 13 Jul 2017 02:20:27 +0200 Subject: Rename __attribute__((packed)) --> __packed Also unify __attribute__ ((..)) to __attribute__((..)) and handle ((__packed__)) like ((packed)) Change-Id: Ie60a51c3fa92b5009724a5b7c2932e361bf3490c Signed-off-by: Stefan Reinauer Reviewed-on: https://review.coreboot.org/15921 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin --- Documentation/timestamp.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Documentation/timestamp.md') diff --git a/Documentation/timestamp.md b/Documentation/timestamp.md index 3a4c73b990..821d46201b 100644 --- a/Documentation/timestamp.md +++ b/Documentation/timestamp.md @@ -65,7 +65,7 @@ After such a transition, timestamp_init() must not be run again. Data structures used ==================== The main structure that maintains information about the timestamp cache is: -struct __attribute__((__packed__)) timestamp_cache { +struct __packed timestamp_cache { uint16_t cache_state; struct timestamp_table table; struct timestamp_entry entries[MAX_TIMESTAMP_CACHE]; @@ -109,7 +109,7 @@ struct timestamp_table { uint32_t max_entries; uint32_t num_entries; struct timestamp_entry entries[0]; /* Variable number of entries */ -} __attribute__((packed)); +} __packed; It indicates the base time for all timestamp entries, maximum number of entries that can be stored, total number of entries that currently @@ -125,7 +125,7 @@ defined by: struct timestamp_entry { uint32_t entry_id; uint64_t entry_stamp; -} __attribute__((packed)); +} __packed; entry_id holds the timestamp id corresponding to this entry and entry_stamp holds the actual timestamp. -- cgit v1.2.3