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/.
pespin gerrit-no-reply at lists.osmocom.orgpespin has uploaded this change for review. ( https://gerrit.osmocom.org/c/osmo-bsc/+/25709 ) Change subject: Get rid of lots of stubs ...................................................................... Get rid of lots of stubs These are not needed anymore since we re-introduced libbsc, specially to avoid all this churn. Some specific methods are explicitly required to be overwritten by tests, so we specificially mark those with __attribute__((weak)) in order to be able to overwrite them. Change-Id: Ic7401b8a6eb903882e30fda1cf091ac99a254ef0 --- M src/ipaccess/ipaccess-config.c M src/ipaccess/ipaccess-proxy.c M src/ipaccess/stubs.c M src/osmo-bsc/abis_rsl.c M src/osmo-bsc/osmo_bsc_sigtran.c M src/osmo-bsc/pcu_sock.c M src/utils/bs11_config.c M src/utils/meas_json.c M tests/abis/abis_test.c M tests/acc/acc_test.c M tests/bsc/bsc_test.c M tests/gsm0408/gsm0408_test.c M tests/handover/handover_test.c M tests/nanobts_omlattr/nanobts_omlattr_test.c 14 files changed, 23 insertions(+), 284 deletions(-) git pull ssh://gerrit.osmocom.org:29418/osmo-bsc refs/changes/09/25709/1 diff --git a/src/ipaccess/ipaccess-config.c b/src/ipaccess/ipaccess-config.c index 741a97e..ada23ea 100644 --- a/src/ipaccess/ipaccess-config.c +++ b/src/ipaccess/ipaccess-config.c @@ -1129,15 +1129,3 @@ exit(0); } - -/* Stub */ -int osmo_bsc_sigtran_send(struct gsm_subscriber_connection *conn, struct msgb *msg) -{ return 0; } -int osmo_bsc_sigtran_open_conn(struct gsm_subscriber_connection *conn, struct msgb *msg) -{ return 0; } -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -void pcu_info_update(struct gsm_bts *bts) {}; -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) -{ return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } diff --git a/src/ipaccess/ipaccess-proxy.c b/src/ipaccess/ipaccess-proxy.c index d676038..7ede283 100644 --- a/src/ipaccess/ipaccess-proxy.c +++ b/src/ipaccess/ipaccess-proxy.c @@ -1253,11 +1253,3 @@ osmo_select_main(0); } } - -/* Stub */ -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -void pcu_info_update(struct gsm_bts *bts) {}; -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) -{ return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } diff --git a/src/ipaccess/stubs.c b/src/ipaccess/stubs.c index cb56105..60fa626 100644 --- a/src/ipaccess/stubs.c +++ b/src/ipaccess/stubs.c @@ -30,17 +30,3 @@ /* No TS init required here. */ return true; } - -int abis_rsl_rcvmsg(struct msgb *msg) -{ - /* No RSL handling here */ - return 0; -} - -void paging_flush_bts(struct gsm_bts *bts, struct bsc_msc_data *msc) -{ - /* No paging flushing */ -} - -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) -{} diff --git a/src/osmo-bsc/abis_rsl.c b/src/osmo-bsc/abis_rsl.c index a7b267d..46c4d4f 100644 --- a/src/osmo-bsc/abis_rsl.c +++ b/src/osmo-bsc/abis_rsl.c @@ -260,7 +260,9 @@ } /* Send a BCCH_INFO message as per Chapter 8.5.1 */ -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) +/* Allow test to overwrite it */ +__attribute__((weak)) int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, + const uint8_t *data, int len) { struct abis_rsl_dchan_hdr *dh; const struct gsm_bts *bts = trx->bts; @@ -294,7 +296,8 @@ return abis_rsl_sendmsg(msg); } -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, +/* Allow test to overwrite it */ +__attribute__((weak)) int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { struct abis_rsl_common_hdr *ch; diff --git a/src/osmo-bsc/osmo_bsc_sigtran.c b/src/osmo-bsc/osmo_bsc_sigtran.c index d3c636d..04c2e99 100644 --- a/src/osmo-bsc/osmo_bsc_sigtran.c +++ b/src/osmo-bsc/osmo_bsc_sigtran.c @@ -312,7 +312,8 @@ } /* Open a new connection oriented sigtran connection */ -int osmo_bsc_sigtran_open_conn(struct gsm_subscriber_connection *conn, struct msgb *msg) +/* Allow test to overwrite it */ +__attribute__((weak)) int osmo_bsc_sigtran_open_conn(struct gsm_subscriber_connection *conn, struct msgb *msg) { struct osmo_ss7_instance *ss7; struct bsc_msc_data *msc; diff --git a/src/osmo-bsc/pcu_sock.c b/src/osmo-bsc/pcu_sock.c index 329bab0..6f7ee77 100644 --- a/src/osmo-bsc/pcu_sock.c +++ b/src/osmo-bsc/pcu_sock.c @@ -263,7 +263,8 @@ return pcu_sock_send(bts, msg); } -void pcu_info_update(struct gsm_bts *bts) +/* Allow test to overwrite it */ +__attribute__((weak)) void pcu_info_update(struct gsm_bts *bts) { if (pcu_connected(bts)) pcu_tx_info_ind(bts); diff --git a/src/utils/bs11_config.c b/src/utils/bs11_config.c index c279179..e795076 100644 --- a/src/utils/bs11_config.c +++ b/src/utils/bs11_config.c @@ -974,24 +974,3 @@ exit(0); } - -/* Stub */ -int osmo_bsc_sigtran_send(struct gsm_subscriber_connection *conn, struct msgb *msg) -{ - return 0; -} - -/* Stub */ -int osmo_bsc_sigtran_open_conn(struct gsm_subscriber_connection *conn, struct msgb *msg) -{ - return 0; -} - -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) {} -int abis_rsl_rcvmsg(struct msgb *msg) { return 0; } -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -void pcu_info_update(struct gsm_bts *bts) {}; -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) -{ return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } diff --git a/src/utils/meas_json.c b/src/utils/meas_json.c index 82b1e57..00b90e8 100644 --- a/src/utils/meas_json.c +++ b/src/utils/meas_json.c @@ -201,12 +201,3 @@ exit(0); } - -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) {} -int abis_rsl_rcvmsg(struct msgb *msg) { return 0; } -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -void pcu_info_update(struct gsm_bts *bts) {}; -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) -{ return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } diff --git a/tests/abis/abis_test.c b/tests/abis/abis_test.c index 9d26edd..a48154b 100644 --- a/tests/abis/abis_test.c +++ b/tests/abis/abis_test.c @@ -183,16 +183,3 @@ return EXIT_SUCCESS; } - -struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_network *net) { - OSMO_ASSERT(0); -} - -bool on_gsm_ts_init(struct gsm_bts_trx_ts *ts) { return true; } -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) {} -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -void pcu_info_update(struct gsm_bts *bts) {}; -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) -{ return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } diff --git a/tests/acc/acc_test.c b/tests/acc/acc_test.c index 759ff13..6357d4b 100644 --- a/tests/acc/acc_test.c +++ b/tests/acc/acc_test.c @@ -524,8 +524,8 @@ return EXIT_SUCCESS; } -/* Whenever ACC code changes the set of barred ACCs, gsm_bts_set_system_infos() - * is called which ends up calling pcu_info_update */ +/* stub: Whenever ACC code changes the set of barred ACCs, gsm_bts_set_system_infos() + * is called which ends up calling pcu_info_update. */ void pcu_info_update(struct gsm_bts *bts) { struct gsm48_rach_control rach_control = {0}; @@ -545,15 +545,15 @@ ); } - -struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_network *net) { - OSMO_ASSERT(0); -} - -bool on_gsm_ts_init(struct gsm_bts_trx_ts *ts) { return true; } -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) {} -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } +/* stub: Whenever ACC code changes the set of barred ACCs, gsm_bts_set_system_infos() + * is called which ends up calling rsl_bcch_info. We need to return success to + * have pcu_info_update() called. */ int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) { return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } + +/* stub: Whenever ACC code changes the set of barred ACCs, gsm_bts_set_system_infos() + * is called which ends up calling rsl_sacch_filling. We need to return success to + * have pcu_info_update() called. */ +int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, + const uint8_t *data, int len) +{ return 0; } diff --git a/tests/bsc/bsc_test.c b/tests/bsc/bsc_test.c index 0cf0bc2..4a97b9f 100644 --- a/tests/bsc/bsc_test.c +++ b/tests/bsc/bsc_test.c @@ -221,30 +221,3 @@ talloc_free(ctx); return 0; } - -struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_network *net) { - OSMO_ASSERT(0); -} - -void bsc_sapi_n_reject(struct gsm_subscriber_connection *conn, uint8_t dlci, enum gsm0808_cause cause) {} -void bsc_cipher_mode_compl(struct gsm_subscriber_connection *conn, struct msgb *msg, uint8_t chosen_encr) {} -int bsc_compl_l3(struct gsm_lchan *lchan, struct msgb *msg, uint16_t chosen_channel) -{ return 0; } -void bsc_dtap(struct gsm_subscriber_connection *conn, uint8_t link_id, struct msgb *msg) {} -void bsc_assign_compl(struct gsm_subscriber_connection *conn, uint8_t rr_cause) {} -void bsc_assign_fail(struct gsm_subscriber_connection *conn, uint8_t cause, uint8_t *rr_cause) {} -void bsc_cm_update(struct gsm_subscriber_connection *conn, - const uint8_t *cm2, uint8_t cm2_len, - const uint8_t *cm3, uint8_t cm3_len) {} -void gscon_submit_rsl_dtap(struct gsm_subscriber_connection *conn, - struct msgb *msg, int link_id, int allow_sacch) {} -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) {} -void lchan_activate(struct gsm_lchan *lchan, void *info) {} -bool neighbor_ident_bts_entry_exists(uint8_t from_bts) { return false; } -const char *handover_status(struct gsm_subscriber_connection *conn) { return "x"; } -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -void pcu_info_update(struct gsm_bts *bts) {}; -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) -{ return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } diff --git a/tests/gsm0408/gsm0408_test.c b/tests/gsm0408/gsm0408_test.c index 4017293..90b294e 100644 --- a/tests/gsm0408/gsm0408_test.c +++ b/tests/gsm0408/gsm0408_test.c @@ -595,60 +595,3 @@ return EXIT_SUCCESS; } - -struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_network *net) { - OSMO_ASSERT(0); -} - -void gscon_release_lchans(struct gsm_subscriber_connection *conn, bool do_rr_release) { - OSMO_ASSERT(0); -} - -bool on_gsm_ts_init(struct gsm_bts_trx_ts *ts) -{ - return true; -} - -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) {} - -void bsc_cm_update(struct gsm_subscriber_connection *conn, - const uint8_t *cm2, uint8_t cm2_len, - const uint8_t *cm3, uint8_t cm3_len) {} - -int rsl_siemens_mrpci(struct gsm_lchan *lchan, struct rsl_mrpci *mrpci) -{ return 0; } - -int rsl_chan_mode_modify_req(struct gsm_lchan *ts) { return 0; } - -int rsl_tx_ipacc_crcx(const struct gsm_lchan *lchan) { return 0; } - -void gscon_submit_rsl_dtap(struct gsm_subscriber_connection *conn, - struct msgb *msg, int link_id, int allow_sacch) {} - -bool lchan_may_receive_data(struct gsm_lchan *lchan) { return true; } - -int bsc_compl_l3(struct gsm_lchan *lchan, struct msgb *msg, uint16_t chosen_channel) -{ return 0; } - -void bsc_dtap(struct gsm_subscriber_connection *conn, uint8_t link_id, - struct msgb *msg) {} - -void bsc_cipher_mode_compl(struct gsm_subscriber_connection *conn, - struct msgb *msg, uint8_t chosen_encr) {} - -const char *bsc_subscr_name(struct bsc_subscr *bsub) { return NULL; } - -void lchan_release(struct gsm_lchan *lchan, bool do_rr_release, - bool err, enum gsm48_rr_cause cause_rr) {} - -int rsl_data_request(struct msgb *msg, uint8_t link_id) { return 0; } - -int rsl_encryption_cmd(struct msgb *msg) { return 0; } - -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } - -void pcu_info_update(struct gsm_bts *bts) {}; -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) -{ return 0; } -struct e1inp_sign_link *rsl_chan_link(const struct gsm_lchan *lchan) { return NULL; } diff --git a/tests/handover/handover_test.c b/tests/handover/handover_test.c index 1dc7c1f..17bc048 100644 --- a/tests/handover/handover_test.c +++ b/tests/handover/handover_test.c @@ -1682,31 +1682,17 @@ void trau_mux_map_lchan() {} void trau_recv_lchan() {} void trau_send_frame() {} -int osmo_bsc_sigtran_send(struct gsm_subscriber_connection *conn, struct msgb *msg) { return 0; } +/* Stub */ int osmo_bsc_sigtran_open_conn(struct gsm_subscriber_connection *conn, struct msgb *msg) { return 0; } void bsc_sapi_n_reject(struct gsm_subscriber_connection *conn, uint8_t dlci, enum gsm0808_cause cause) {} void bsc_cipher_mode_compl(struct gsm_subscriber_connection *conn, struct msgb *msg, uint8_t chosen_encr) {} int bsc_compl_l3(struct gsm_lchan *lchan, struct msgb *msg, uint16_t chosen_channel) { return 0; } -int bsc_paging_start(struct bsc_paging_params *params) -{ return 0; } void bsc_dtap(struct gsm_subscriber_connection *conn, uint8_t link_id, struct msgb *msg) {} void bsc_assign_compl(struct gsm_subscriber_connection *conn, uint8_t rr_cause) {} void bsc_cm_update(struct gsm_subscriber_connection *conn, const uint8_t *cm2, uint8_t cm2_len, const uint8_t *cm3, uint8_t cm3_len) {} -struct gsm0808_handover_required; -int bsc_tx_bssmap_ho_required(struct gsm_lchan *lchan, const struct gsm0808_cell_id_list2 *target_cells) -{ return 0; } -int bsc_tx_bssmap_ho_request_ack(struct gsm_subscriber_connection *conn, struct msgb *rr_ho_command) -{ return 0; } -int bsc_tx_bssmap_ho_detect(struct gsm_subscriber_connection *conn) { return 0; } -enum handover_result bsc_tx_bssmap_ho_complete(struct gsm_subscriber_connection *conn, - struct gsm_lchan *lchan) { return HO_RESULT_OK; } -void bsc_tx_bssmap_ho_failure(struct gsm_subscriber_connection *conn) {} -void osmo_bsc_sigtran_tx_reset(void) {} -void osmo_bsc_sigtran_tx_reset_ack(void) {} -void osmo_bsc_sigtran_reset(void) {} const char *osmo_mgcpc_ep_name(const struct osmo_mgcpc_ep *ep) { return "fake-ep"; diff --git a/tests/nanobts_omlattr/nanobts_omlattr_test.c b/tests/nanobts_omlattr/nanobts_omlattr_test.c index 73ba869..0b9f6d9 100644 --- a/tests/nanobts_omlattr/nanobts_omlattr_test.c +++ b/tests/nanobts_omlattr/nanobts_omlattr_test.c @@ -32,76 +32,7 @@ #include <stdio.h> #include <string.h> -struct gsm_bts_model bts_model_nanobts = { - .type = GSM_BTS_TYPE_NANOBTS, - .name = "nanobts", - .start = NULL, - .oml_rcvmsg = NULL, - .e1line_bind_ops = NULL, - .nm_att_tlvdef = { - .def = { - /* ip.access specifics */ - [NM_ATT_IPACC_DST_IP] = {TLV_TYPE_FIXED, 4}, - [NM_ATT_IPACC_DST_IP_PORT] = - {TLV_TYPE_FIXED, 2}, - [NM_ATT_IPACC_STREAM_ID] = {TLV_TYPE_TV,}, - [NM_ATT_IPACC_SEC_OML_CFG] = - {TLV_TYPE_FIXED, 6}, - [NM_ATT_IPACC_IP_IF_CFG] = - {TLV_TYPE_FIXED, 8}, - [NM_ATT_IPACC_IP_GW_CFG] = - {TLV_TYPE_FIXED, 12}, - [NM_ATT_IPACC_IN_SERV_TIME] = - {TLV_TYPE_FIXED, 4}, - [NM_ATT_IPACC_LOCATION] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_PAGING_CFG] = - {TLV_TYPE_FIXED, 2}, - [NM_ATT_IPACC_UNIT_ID] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_UNIT_NAME] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_SNMP_CFG] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_PRIM_OML_CFG_LIST] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_NV_FLAGS] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_FREQ_CTRL] = - {TLV_TYPE_FIXED, 2}, - [NM_ATT_IPACC_PRIM_OML_FB_TOUT] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_CUR_SW_CFG] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_TIMING_BUS] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_CGI] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_RAC] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_OBJ_VERSION] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_GPRS_PAGING_CFG] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_NSEI] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_BVCI] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_NSVCI] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_NS_CFG] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_BSSGP_CFG] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_NS_LINK_CFG] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_RLC_CFG] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_ALM_THRESH_LIST] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_MONIT_VAL_LIST] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_TIB_CONTROL] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_SUPP_FEATURES] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_CODING_SCHEMES] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_RLC_CFG_2] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_HEARTB_TOUT] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_UPTIME] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_RLC_CFG_3] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_SSL_CFG] = {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_SEC_POSSIBLE] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_IML_SSL_STATE] = - {TLV_TYPE_TL16V}, - [NM_ATT_IPACC_REVOC_DATE] = {TLV_TYPE_TL16V}, - }, - }, -}; +extern struct gsm_bts_model bts_model_nanobts; static void test_nanobts_attr_bts_get(struct gsm_bts *bts, uint8_t *expected) { @@ -323,25 +254,3 @@ talloc_free(ctx); return 0; } - -/* stubs */ -struct osmo_prim_hdr; -int bssgp_prim_cb(struct osmo_prim_hdr *oph, void *ctx) -{ - abort(); -} - -struct gsm_subscriber_connection *bsc_subscr_con_allocate(struct gsm_network *net) { - OSMO_ASSERT(0); -} - -bool on_gsm_ts_init(struct gsm_bts_trx_ts *ts) -{ return true; } - -void ts_fsm_alloc(struct gsm_bts_trx_ts *ts) {} -int rsl_chan_ms_power_ctrl(struct gsm_lchan *lchan) { return 0; } -void pcu_info_update(struct gsm_bts *bts) {}; -int rsl_sacch_filling(struct gsm_bts_trx *trx, uint8_t type, const uint8_t *data, int len) { return 0; } -int rsl_bcch_info(const struct gsm_bts_trx *trx, enum osmo_sysinfo_type si_type, const uint8_t *data, int len) -{ return 0; } -int gsm_generate_si(struct gsm_bts *bts, enum osmo_sysinfo_type si_type) { return 0; } -- To view, visit https://gerrit.osmocom.org/c/osmo-bsc/+/25709 To unsubscribe, or for help writing mail filters, visit https://gerrit.osmocom.org/settings Gerrit-Project: osmo-bsc Gerrit-Branch: master Gerrit-Change-Id: Ic7401b8a6eb903882e30fda1cf091ac99a254ef0 Gerrit-Change-Number: 25709 Gerrit-PatchSet: 1 Gerrit-Owner: pespin <pespin at sysmocom.de> Gerrit-MessageType: newchange -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.osmocom.org/pipermail/gerrit-log/attachments/20211007/28d0506b/attachment.htm>