improve nr_unitary_common file to prevent unused parameter warnings
This commit is contained in:
@@ -20,61 +20,62 @@ void sigint_handler(int arg)
|
|||||||
{
|
{
|
||||||
static const char msg[] = "\nCaught SIGINT, shutting down\nPress again CTRL+C to force shutdown\n";
|
static const char msg[] = "\nCaught SIGINT, shutting down\nPress again CTRL+C to force shutdown\n";
|
||||||
__attribute__((unused)) int unused = write(STDOUT_FILENO, msg, sizeof(msg) - 1);
|
__attribute__((unused)) int unused = write(STDOUT_FILENO, msg, sizeof(msg) - 1);
|
||||||
|
UNUSED(arg);
|
||||||
stop = true;
|
stop = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
int oai_nfapi_dl_tti_req(nfapi_nr_dl_tti_request_t *dl_config_req)
|
|
||||||
{
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
int oai_nfapi_tx_data_req(nfapi_nr_tx_data_request_t *tx_data_req)
|
|
||||||
{
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
int oai_nfapi_ul_dci_req(nfapi_nr_ul_dci_request_t *ul_dci_req)
|
|
||||||
{
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
int oai_nfapi_ul_tti_req(nfapi_nr_ul_tti_request_t *ul_tti_req)
|
|
||||||
{
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
int oai_nfapi_nr_crc_indication(nfapi_nr_crc_indication_t *ind)
|
int oai_nfapi_nr_crc_indication(nfapi_nr_crc_indication_t *ind)
|
||||||
{
|
{
|
||||||
|
UNUSED(ind);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
int oai_nfapi_nr_srs_indication(nfapi_nr_srs_indication_t *ind)
|
int oai_nfapi_nr_srs_indication(nfapi_nr_srs_indication_t *ind)
|
||||||
{
|
{
|
||||||
|
UNUSED(ind);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
int oai_nfapi_nr_uci_indication(nfapi_nr_uci_indication_t *ind)
|
int oai_nfapi_nr_uci_indication(nfapi_nr_uci_indication_t *ind)
|
||||||
{
|
{
|
||||||
|
UNUSED(ind);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
int oai_nfapi_nr_rach_indication(nfapi_nr_rach_indication_t *ind)
|
int oai_nfapi_nr_rach_indication(nfapi_nr_rach_indication_t *ind)
|
||||||
{
|
{
|
||||||
|
UNUSED(ind);
|
||||||
return (0);
|
return (0);
|
||||||
}
|
}
|
||||||
int oai_nfapi_nr_rx_data_indication(nfapi_nr_rx_data_indication_t *ind)
|
int oai_nfapi_nr_rx_data_indication(nfapi_nr_rx_data_indication_t *ind)
|
||||||
{
|
{
|
||||||
|
UNUSED(ind);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void handle_nr_slot_ind(uint16_t sfn, uint16_t slot)
|
void handle_nr_slot_ind(uint16_t sfn, uint16_t slot)
|
||||||
{
|
{
|
||||||
|
UNUSED(sfn);
|
||||||
|
UNUSED(slot);
|
||||||
}
|
}
|
||||||
|
|
||||||
int pack_nr_srs_beamforming_report(void *pMessageBuf, void *pPackedBuf, uint32_t packedBufLen)
|
int pack_nr_srs_beamforming_report(void *pMessageBuf, void *pPackedBuf, uint32_t packedBufLen)
|
||||||
{
|
{
|
||||||
|
UNUSED(pMessageBuf);
|
||||||
|
UNUSED(pPackedBuf);
|
||||||
|
UNUSED(packedBufLen);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int unpack_nr_srs_beamforming_report(void *pMessageBuf, uint32_t messageBufLen, void *pUnpackedBuf, uint32_t unpackedBufLen)
|
int unpack_nr_srs_beamforming_report(void *pMessageBuf, uint32_t messageBufLen, void *pUnpackedBuf, uint32_t unpackedBufLen)
|
||||||
{
|
{
|
||||||
|
UNUSED(pMessageBuf);
|
||||||
|
UNUSED(messageBufLen);
|
||||||
|
UNUSED(pUnpackedBuf);
|
||||||
|
UNUSED(unpackedBufLen);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int pack_nr_srs_normalized_channel_iq_matrix(void *pMessageBuf, void *pPackedBuf, uint32_t packedBufLen)
|
int pack_nr_srs_normalized_channel_iq_matrix(void *pMessageBuf, void *pPackedBuf, uint32_t packedBufLen)
|
||||||
{
|
{
|
||||||
|
UNUSED(pMessageBuf);
|
||||||
|
UNUSED(pPackedBuf);
|
||||||
|
UNUSED(packedBufLen);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
int unpack_nr_srs_normalized_channel_iq_matrix(void *pMessageBuf,
|
int unpack_nr_srs_normalized_channel_iq_matrix(void *pMessageBuf,
|
||||||
@@ -82,24 +83,31 @@ int unpack_nr_srs_normalized_channel_iq_matrix(void *pMessageBuf,
|
|||||||
void *pUnpackedBuf,
|
void *pUnpackedBuf,
|
||||||
uint32_t unpackedBufLen)
|
uint32_t unpackedBufLen)
|
||||||
{
|
{
|
||||||
|
UNUSED(pMessageBuf);
|
||||||
|
UNUSED(messageBufLen);
|
||||||
|
UNUSED(pUnpackedBuf);
|
||||||
|
UNUSED(unpackedBufLen);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
void get_position_coordinates(int Mod_id, position_t *position)
|
|
||||||
{
|
|
||||||
}
|
|
||||||
int32_t get_uldl_offset(int nr_bandP)
|
|
||||||
{
|
|
||||||
return (0);
|
|
||||||
}
|
|
||||||
|
|
||||||
void configure_nr_nfapi_pnf(char *vnf_ip_addr, int vnf_p5_port, char *pnf_ip_addr, int pnf_p7_port, int vnf_p7_port)
|
void configure_nr_nfapi_pnf(char *vnf_ip_addr, int vnf_p5_port, char *pnf_ip_addr, int pnf_p7_port, int vnf_p7_port)
|
||||||
{
|
{
|
||||||
|
UNUSED(vnf_ip_addr);
|
||||||
|
UNUSED(vnf_p5_port);
|
||||||
|
UNUSED(pnf_ip_addr);
|
||||||
|
UNUSED(pnf_p7_port);
|
||||||
|
UNUSED(vnf_p7_port);
|
||||||
}
|
}
|
||||||
void configure_nr_nfapi_vnf(eth_params_t params)
|
void configure_nr_nfapi_vnf(eth_params_t params)
|
||||||
{
|
{
|
||||||
|
UNUSED(params);
|
||||||
}
|
}
|
||||||
int nfapi_nr_p7_message_pack(void *pMessageBuf, void *pPackedBuf, uint32_t packedBufLen, nfapi_p7_codec_config_t *config)
|
int nfapi_nr_p7_message_pack(void *pMessageBuf, void *pPackedBuf, uint32_t packedBufLen, nfapi_p7_codec_config_t *config)
|
||||||
{
|
{
|
||||||
|
UNUSED(pMessageBuf);
|
||||||
|
UNUSED(pPackedBuf);
|
||||||
|
UNUSED(packedBufLen);
|
||||||
|
UNUSED(config);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
bool nfapi_nr_p7_message_unpack(void *pMessageBuf,
|
bool nfapi_nr_p7_message_unpack(void *pMessageBuf,
|
||||||
@@ -108,6 +116,11 @@ bool nfapi_nr_p7_message_unpack(void *pMessageBuf,
|
|||||||
uint32_t unpackedBufLen,
|
uint32_t unpackedBufLen,
|
||||||
nfapi_p7_codec_config_t *config)
|
nfapi_p7_codec_config_t *config)
|
||||||
{
|
{
|
||||||
|
UNUSED(pMessageBuf);
|
||||||
|
UNUSED(messageBufLen);
|
||||||
|
UNUSED(pUnpackedBuf);
|
||||||
|
UNUSED(unpackedBufLen);
|
||||||
|
UNUSED(config);
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
int nfapi_p7_message_header_unpack(void *pMessageBuf,
|
int nfapi_p7_message_header_unpack(void *pMessageBuf,
|
||||||
@@ -116,23 +129,37 @@ int nfapi_p7_message_header_unpack(void *pMessageBuf,
|
|||||||
uint32_t unpackedBufLen,
|
uint32_t unpackedBufLen,
|
||||||
nfapi_p7_codec_config_t *config)
|
nfapi_p7_codec_config_t *config)
|
||||||
{
|
{
|
||||||
|
UNUSED(pMessageBuf);
|
||||||
|
UNUSED(messageBufLen);
|
||||||
|
UNUSED(pUnpackedBuf);
|
||||||
|
UNUSED(unpackedBufLen);
|
||||||
|
UNUSED(config);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
void nr_mac_rrc_sync_ind(const module_id_t module_id, const frame_t frame, const bool in_sync)
|
void nr_mac_rrc_sync_ind(const module_id_t module_id, const frame_t frame, const bool in_sync)
|
||||||
{
|
{
|
||||||
|
UNUSED(module_id);
|
||||||
|
UNUSED(frame);
|
||||||
|
UNUSED(in_sync);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nr_mac_rrc_msg3_ind(const module_id_t mod_id, int rnti, int gnb_id)
|
void nr_mac_rrc_msg3_ind(const module_id_t mod_id, int rnti, int gnb_id)
|
||||||
{
|
{
|
||||||
|
UNUSED(mod_id);
|
||||||
|
UNUSED(gnb_id);
|
||||||
|
UNUSED(rnti);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nr_mac_rrc_ra_ind(const module_id_t mod_id, bool success)
|
void nr_mac_rrc_ra_ind(const module_id_t mod_id, bool success)
|
||||||
{
|
{
|
||||||
|
UNUSED(mod_id);
|
||||||
|
UNUSED(success);
|
||||||
}
|
}
|
||||||
|
|
||||||
void nr_mac_rrc_inactivity_timer_ind(const module_id_t mod_id)
|
void nr_mac_rrc_inactivity_timer_ind(const module_id_t mod_id)
|
||||||
{
|
{
|
||||||
|
UNUSED(mod_id);
|
||||||
}
|
}
|
||||||
|
|
||||||
void rrc_data_ind(const protocol_ctxt_t *const ctxt_pP,
|
void rrc_data_ind(const protocol_ctxt_t *const ctxt_pP,
|
||||||
@@ -140,6 +167,10 @@ void rrc_data_ind(const protocol_ctxt_t *const ctxt_pP,
|
|||||||
const sdu_size_t sdu_sizeP,
|
const sdu_size_t sdu_sizeP,
|
||||||
const uint8_t *const buffer_pP)
|
const uint8_t *const buffer_pP)
|
||||||
{
|
{
|
||||||
|
UNUSED(ctxt_pP);
|
||||||
|
UNUSED(Srb_id);
|
||||||
|
UNUSED(sdu_sizeP);
|
||||||
|
UNUSED(buffer_pP);
|
||||||
}
|
}
|
||||||
|
|
||||||
typedef uint32_t channel_t;
|
typedef uint32_t channel_t;
|
||||||
@@ -156,12 +187,20 @@ int8_t nr_mac_rrc_data_ind_ue(const module_id_t module_id,
|
|||||||
const uint8_t *pduP,
|
const uint8_t *pduP,
|
||||||
const sdu_size_t pdu_len)
|
const sdu_size_t pdu_len)
|
||||||
{
|
{
|
||||||
|
UNUSED(module_id);
|
||||||
|
UNUSED(CC_id);
|
||||||
|
UNUSED(gNB_index);
|
||||||
|
UNUSED(hfn);
|
||||||
|
UNUSED(frame);
|
||||||
|
UNUSED(slot);
|
||||||
|
UNUSED(rnti);
|
||||||
|
UNUSED(arfcn);
|
||||||
|
UNUSED(channel);
|
||||||
|
UNUSED(pduP);
|
||||||
|
UNUSED(pdu_len);
|
||||||
|
UNUSED(cellid);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
void *rrc_nrue(void *notUsed)
|
|
||||||
{
|
|
||||||
return NULL;
|
|
||||||
}
|
|
||||||
|
|
||||||
void nr_mac_rrc_meas_ind_ue(module_id_t module_id,
|
void nr_mac_rrc_meas_ind_ue(module_id_t module_id,
|
||||||
uint32_t gNB_index,
|
uint32_t gNB_index,
|
||||||
@@ -170,4 +209,10 @@ void nr_mac_rrc_meas_ind_ue(module_id_t module_id,
|
|||||||
bool is_neighboring_cell,
|
bool is_neighboring_cell,
|
||||||
int rsrp_dBm)
|
int rsrp_dBm)
|
||||||
{
|
{
|
||||||
|
UNUSED(module_id);
|
||||||
|
UNUSED(Nid_cell);
|
||||||
|
UNUSED(gNB_index);
|
||||||
|
UNUSED(csi_meas);
|
||||||
|
UNUSED(is_neighboring_cell);
|
||||||
|
UNUSED(rsrp_dBm);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user