Change in ...osmo-bts[master]: struct gsm_bts: Add model_priv pointer handing bts_model specific data

This is merely a historical archive of years 2008-2021, before the migration to mailman3.

A maintained and still updated list archive can be found at https://lists.osmocom.org/hyperkitty/list/gerrit-log@lists.osmocom.org/.

fixeria gerrit-no-reply at lists.osmocom.org
Sat Sep 28 16:39:47 UTC 2019


fixeria has posted comments on this change. ( https://gerrit.osmocom.org/c/osmo-bts/+/15613 )

Change subject: struct gsm_bts: Add model_priv pointer handing bts_model specific data
......................................................................


Patch Set 3:

(4 comments)

Agree with Harald: what do we benefit from this change?
The current approach with union looks good to me, what's wrong with it?

https://gerrit.osmocom.org/#/c/15613/3/src/osmo-bts-oc2g/l1_if.h 
File src/osmo-bts-oc2g/l1_if.h:

https://gerrit.osmocom.org/#/c/15613/3/src/osmo-bts-oc2g/l1_if.h@37 
PS3, Line 37:                 
Could you please use tabs for alignment? I know, you're just moving this definition 'as-is', but other blocks in this file already using tabs, so this one would also be consistent.


https://gerrit.osmocom.org/#/c/15613/3/src/osmo-bts-virtual/l1_if.h 
File src/osmo-bts-virtual/l1_if.h:

https://gerrit.osmocom.org/#/c/15613/3/src/osmo-bts-virtual/l1_if.h@8 
PS3, Line 8: specific to osmo-bts-virtual
Actually, no. It's specific to both osmo-bts-trx and osmo-bts-virtual as the last one reuses some parts of the TDMA scheduler.


https://gerrit.osmocom.org/#/c/15613/3/src/osmo-bts-virtual/main.c 
File src/osmo-bts-virtual/main.c:

https://gerrit.osmocom.org/#/c/15613/3/src/osmo-bts-virtual/main.c@60 
PS3, Line 60: zero
I would avoid using zero-initialization here. This structure is getting initialized in vbts_sched_start() anyway, and moreover it makes harder to catch uninitialized memory access.


https://gerrit.osmocom.org/#/c/15613/3/src/osmo-bts-virtual/scheduler_virtbts.c 
File src/osmo-bts-virtual/scheduler_virtbts.c:

https://gerrit.osmocom.org/#/c/15613/3/src/osmo-bts-virtual/scheduler_virtbts.c@604 
PS3, Line 604: 	
Alignment.



-- 
To view, visit https://gerrit.osmocom.org/c/osmo-bts/+/15613
To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings

Gerrit-Project: osmo-bts
Gerrit-Branch: master
Gerrit-Change-Id: Ib17a752cdbaa7d5eb8c5dfa0b197f80a4f38b38e
Gerrit-Change-Number: 15613
Gerrit-PatchSet: 3
Gerrit-Owner: pespin <pespin at sysmocom.de>
Gerrit-Reviewer: Jenkins Builder
Gerrit-CC: fixeria <axilirator at gmail.com>
Gerrit-CC: laforge <laforge at osmocom.org>
Gerrit-Comment-Date: Sat, 28 Sep 2019 16:39:47 +0000
Gerrit-HasComments: Yes
Gerrit-Has-Labels: No
Gerrit-MessageType: comment
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20190928/e465a747/attachment.htm>


More information about the gerrit-log mailing list