Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
SUSE:SLE-15-SP7:GA
qemu-testsuite.18974
4000-hdata-i2c.c-fix-building-with-gcc8.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 4000-hdata-i2c.c-fix-building-with-gcc8.patch of Package qemu-testsuite.18974
From: Stewart Smith <stewart@linux.ibm.com> Date: Tue, 29 May 2018 14:54:10 +1000 Subject: hdata/i2c.c: fix building with gcc8 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit hdata/test/../i2c.c:200:1: error: alignment 1 of ‘struct host_i2c_hdr’ is less than 4 [-Werror=packed-not-aligned] } __packed; ^ Fixes: https://github.com/open-power/skiboot/issues/160 Signed-off-by: Stewart Smith <stewart@linux.ibm.com> Signed-off-by: Bruce Rogers <brogers@suse.com> --- hdata/i2c.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/roms/skiboot/hdata/i2c.c b/roms/skiboot/hdata/i2c.c index 2070115abaf3e0125e227cd07298..ad7cfff4fb55aa0e7358b9aacd68 100644 --- a/roms/skiboot/hdata/i2c.c +++ b/roms/skiboot/hdata/i2c.c @@ -181,7 +181,7 @@ static bool is_zeros(const void *p, size_t size) struct host_i2c_hdr { const struct HDIF_array_hdr hdr; __be32 version; -} __packed; +} __packed __align(0x4); int parse_i2c_devs(const struct HDIF_common_hdr *hdr, int idata_index, struct dt_node *xscom)
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor