aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorMichal Suchanek <msuchanek@suse.de>2019-07-23 11:46:15 +0200
committerOliver O'Halloran <oohall@gmail.com>2019-08-02 15:23:47 +1000
commit6080c106e797ea8375ac164e8f53de3308d42abb (patch)
tree6afdcc7eabfa57e3df96293027d3d4bbbfb939c0 /include
parente9a30df78f88085fdaaad96167af5eb21803c222 (diff)
downloadskiboot-6080c106e797ea8375ac164e8f53de3308d42abb.zip
skiboot-6080c106e797ea8375ac164e8f53de3308d42abb.tar.gz
skiboot-6080c106e797ea8375ac164e8f53de3308d42abb.tar.bz2
errorlog: Prevent alignment error building with gcc9.
Fixes this build error: [ 52s] hw/fsp/fsp-elog-write.c: In function 'opal_elog_read': [ 52s] hw/fsp/fsp-elog-write.c:213:12: error: taking address of packed member of 'struct errorlog' may result in an unaligned pointer value [-Werror=address-of-packed-member] [ 52s] 213 | list_del(&log_data->link); [ 52s] | ^~~~~~~~~~~~~~~ Fixes: https://github.com/open-power/skiboot/issues/247 Signed-off-by: Michal Suchanek <msuchanek@suse.de> Signed-off-by: Oliver O'Halloran <oohall@gmail.com>
Diffstat (limited to 'include')
-rw-r--r--include/errorlog.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/errorlog.h b/include/errorlog.h
index 2d93bf7..3fd475c 100644
--- a/include/errorlog.h
+++ b/include/errorlog.h
@@ -106,7 +106,7 @@ struct __attribute__((__packed__))elog_user_data_section {
* needs to populate this structure using pre-defined interfaces
* only
*/
-struct __attribute__((__packed__)) errorlog {
+struct __attribute__((__packed__)) __attribute__ ((aligned (8))) errorlog {
uint16_t component_id;
uint8_t error_event_type;