[Skiboot] [PATCH] MPIPL: struct opal_mpipl_fadump doesn't needs to be packed

Vasant Hegde hegdevasant at linux.vnet.ibm.com
Wed Aug 28 22:20:23 AEST 2019


[CC]  core/opal-dump.o
core/opal-dump.c: In function ‘post_mpipl_get_opal_data’:
core/opal-dump.c:471:11: warning: taking address of packed member of ‘struct opal_mpipl_fadump’ may result in an unaligned pointer value [-Waddress-of-packed-member]
  471 |  region = opal_mpipl_data->region;
      |           ^~~~~~~~~~~~~~~


Signed-off-by: Vasant Hegde <hegdevasant at linux.vnet.ibm.com>
---
 include/opal-api.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/include/opal-api.h b/include/opal-api.h
index ee66bbbb0..ad913bfa3 100644
--- a/include/opal-api.h
+++ b/include/opal-api.h
@@ -1242,7 +1242,7 @@ struct opal_mpipl_fadump {
 	u32	cpu_data_size;
 	u32	region_cnt;
 	struct	opal_mpipl_region region[];
-} __packed;
+};
 
 #endif /* __ASSEMBLY__ */
 
-- 
2.21.0



More information about the Skiboot mailing list