Re: [U-Boot] [PATCH 1/1] lib: uuid: alignment error in gen_rand_uuid()

2019-07-29 Thread Tom Rini
On Sun, Jul 14, 2019 at 11:31:50PM +0200, Heinrich Schuchardt wrote: > Packed structures like struct uuid are not aligned. GCC 9.1 therefore > throws an error when trying to compile gen_rand_uuid(). > > lib/uuid.c: In function ‘gen_rand_uuid’: > lib/uuid.c:244:2: error: converting a packed ‘struc

Re: [U-Boot] [PATCH 1/1] lib: uuid: alignment error in gen_rand_uuid()

2019-07-15 Thread Heinrich Schuchardt
On 7/15/19 10:42 AM, Eugeniu Rosca wrote: Hi Heinrich, On Sun, Jul 14, 2019 at 11:31:50PM +0200, Heinrich Schuchardt wrote: Packed structures like struct uuid are not aligned. GCC 9.1 therefore throws an error when trying to compile gen_rand_uuid(). lib/uuid.c: In function ‘gen_rand_uuid’: lib

Re: [U-Boot] [PATCH 1/1] lib: uuid: alignment error in gen_rand_uuid()

2019-07-15 Thread Eugeniu Rosca
Hi Heinrich, On Sun, Jul 14, 2019 at 11:31:50PM +0200, Heinrich Schuchardt wrote: > Packed structures like struct uuid are not aligned. GCC 9.1 therefore > throws an error when trying to compile gen_rand_uuid(). > > lib/uuid.c: In function ‘gen_rand_uuid’: > lib/uuid.c:244:2: error: converting a

[U-Boot] [PATCH 1/1] lib: uuid: alignment error in gen_rand_uuid()

2019-07-14 Thread Heinrich Schuchardt
Packed structures like struct uuid are not aligned. GCC 9.1 therefore throws an error when trying to compile gen_rand_uuid(). lib/uuid.c: In function ‘gen_rand_uuid’: lib/uuid.c:244:2: error: converting a packed ‘struct uuid’ pointer (alignment 1) to a ‘unsigned int’ pointer (alignment 4) may resu