Attention is currently required from: laforge, neels, pespin.

dexter has posted comments on this change. ( 
https://gerrit.osmocom.org/c/libosmocore/+/35212?usp=email )

Change subject: ecu: force alignment of member data in struct osmo_ecu_state
......................................................................


Patch Set 2:

(2 comments)

Commit Message:

https://gerrit.osmocom.org/c/libosmocore/+/35212/comment/c30385d6_7a242485
PS1, Line 15: thsi
> this
Done


Patchset:

PS1:
> I'm not sure this is entirely fixing the issue. […]
As far as I understand the line struct {} __attribute__ ((aligned)); will force 
data[0] into an aligned position, relative to the beginning of the address 
where struct osmo_ecu_state is stored. This will be an aligned address since 
the compiler has knowledge about what is stored, but it can not know what we 
store in the memory beginning from data[0]. However since data[0] is now at an 
aligned position this is not a problem anymore. To make it look less ugly we 
can also just define a an uint8_t *data pointer followed by an uint8_t _data[0] 
array. The pointer member will automatically be in an aligned position and so 
_data[0] will also be aligned. (see also @lafo...@gnumonks.org comments in the 
referenced ticket.)



--
To view, visit https://gerrit.osmocom.org/c/libosmocore/+/35212?usp=email
To unsubscribe, or for help writing mail filters, visit 
https://gerrit.osmocom.org/settings

Gerrit-Project: libosmocore
Gerrit-Branch: master
Gerrit-Change-Id: I28672856e8e8f47e04ffe09ee3e07b577108cdc7
Gerrit-Change-Number: 35212
Gerrit-PatchSet: 2
Gerrit-Owner: dexter <pma...@sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-Reviewer: laforge <lafo...@osmocom.org>
Gerrit-Reviewer: neels <nhofm...@sysmocom.de>
Gerrit-CC: pespin <pes...@sysmocom.de>
Gerrit-Attention: neels <nhofm...@sysmocom.de>
Gerrit-Attention: laforge <lafo...@osmocom.org>
Gerrit-Attention: pespin <pes...@sysmocom.de>
Gerrit-Comment-Date: Mon, 11 Dec 2023 14:40:10 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Comment-In-Reply-To: laforge <lafo...@osmocom.org>
Comment-In-Reply-To: pespin <pes...@sysmocom.de>
Gerrit-MessageType: comment

Reply via email to