summaryrefslogtreecommitdiff
path: root/Documentation
diff options
context:
space:
mode:
authorStefan Reinauer <stefan.reinauer@coreboot.org>2017-07-13 02:20:27 +0200
committerStefan Reinauer <stefan.reinauer@coreboot.org>2017-07-13 19:45:59 +0000
commit6a00113de8b9060a7227bcfa79b3786e3e592a33 (patch)
tree467f5653272ed2d16f6d8033ed8cd0e7391fb426 /Documentation
parent9f244a5494192707bfbb72e60f17411e9a35434a (diff)
Rename __attribute__((packed)) --> __packed
Also unify __attribute__ ((..)) to __attribute__((..)) and handle ((__packed__)) like ((packed)) Change-Id: Ie60a51c3fa92b5009724a5b7c2932e361bf3490c Signed-off-by: Stefan Reinauer <stefan.reinauer@coreboot.org> Reviewed-on: https://review.coreboot.org/15921 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/cbfs.txt2
-rw-r--r--Documentation/timestamp.md6
2 files changed, 4 insertions, 4 deletions
diff --git a/Documentation/cbfs.txt b/Documentation/cbfs.txt
index a190da1ff1..6c5c228e28 100644
--- a/Documentation/cbfs.txt
+++ b/Documentation/cbfs.txt
@@ -152,7 +152,7 @@ struct cbfs_header {
u32 offset;
u32 architecture;
u32 pad[1];
-} __attribute__((packed));
+} __packed;
The meaning of each member is as follows:
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.