add flag for unused function arguments in common folder CMakeLists

(not enforced because of fmtlog external dependency)
This commit is contained in:
francescomani
2026-03-16 18:30:56 +01:00
parent 2483b68ee4
commit 683d855d97
51 changed files with 203 additions and 162 deletions

View File

@@ -259,7 +259,7 @@ static void *L1_thread_tx(void *param) {
PHY_VARS_eNB *eNB = eNB_proc->eNB;
char thread_name[100];
sprintf(thread_name,"TXnp4_%d\n",&eNB->proc.L1_proc == proc ? 0 : 1);
thread_top_init(thread_name,1,470000,500000,500000);
thread_top_init(thread_name);
int ret;
//wait_sync("tx_thread");
@@ -342,7 +342,7 @@ static void *L1_thread( void *param ) {
}
}
#else
thread_top_init(thread_name,1,470000,500000,500000);
thread_top_init(thread_name);
#endif
LOG_I(PHY,"thread rxtx created id=%ld\n", syscall(__NR_gettid));
@@ -699,7 +699,7 @@ static void *eNB_thread_prach( void *param ) {
L1_proc_t *proc = &eNB->proc;
// set default return value
eNB_thread_prach_status = 0;
thread_top_init("eNB_thread_prach",1,500000,1000000,20000000);
thread_top_init("eNB_thread_prach");
//wait_sync("eNB_thread_prach");
@@ -732,7 +732,7 @@ static void *eNB_thread_prach_br( void *param ) {
L1_proc_t *proc = &eNB->proc;
// set default return value
eNB_thread_prach_status = 0;
thread_top_init("eNB_thread_prach_br",1,500000,1000000,20000000);
thread_top_init("eNB_thread_prach_br");
while (!oai_exit) {
if (wait_on_condition(&proc->mutex_prach_br,&proc->cond_prach_br,&proc->instance_cnt_prach_br,"eNB_prach_thread_br") < 0) break;

View File

@@ -778,7 +778,7 @@ static void *ru_thread_asynch_rxtx( void *param ) {
RU_t *ru = (RU_t *)param;
RU_proc_t *proc = &ru->proc;
int subframe=0, frame=0;
thread_top_init("ru_thread_asynch_rxtx",1,870000,1000000,1000000);
thread_top_init("ru_thread_asynch_rxtx");
// wait for top-level synchronization and do one acquisition to get timestamp for setting frame/subframe
wait_sync("ru_thread_asynch_rxtx");
// wait for top-level synchronization and do one acquisition to get timestamp for setting frame/subframe
@@ -869,7 +869,7 @@ void *ru_thread_prach( void *param ) {
RU_proc_t *proc = (RU_proc_t *)&ru->proc;
// set default return value
ru_thread_prach_status = 0;
thread_top_init("ru_thread_prach",1,500000,1000000,20000000);
thread_top_init("ru_thread_prach");
//wait_sync("ru_thread_prach");
while (*ru->ru_mask>0 && ru->function!=eNodeB_3GPP) {
@@ -919,7 +919,7 @@ void *ru_thread_prach_br( void *param ) {
RU_proc_t *proc = (RU_proc_t *)&ru->proc;
// set default return value
ru_thread_prach_status = 0;
thread_top_init("ru_thread_prach_br",1,500000,1000000,20000000);
thread_top_init("ru_thread_prach_br");
//wait_sync("ru_thread_prach_br");
while (!oai_exit) {
@@ -1411,7 +1411,7 @@ static void *ru_thread_tx( void *param ) {
L1_rxtx_proc_t *L1_proc;
cpu_set_t cpuset;
CPU_ZERO(&cpuset);
thread_top_init("ru_thread_tx",1,400000,500000,500000);
thread_top_init("ru_thread_tx");
//CPU_SET(5, &cpuset);
//pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset);
//wait_sync("ru_thread_tx");
@@ -1518,7 +1518,7 @@ static void *ru_thread( void *param ) {
dlsch_ue_select_tbl_in_use = 1;
#endif
// set default return value
thread_top_init("ru_thread",1,400000,500000,500000);
thread_top_init("ru_thread");
//CPU_SET(1, &cpuset);
//pthread_setaffinity_np(pthread_self(), sizeof(cpu_set_t), &cpuset);
pthread_setname_np( pthread_self(),"ru thread");
@@ -1799,7 +1799,7 @@ static void *ru_thread_synch(void *arg) {
int64_t peak_val, avg;
static int ru_thread_synch_status = 0;
int cnt=0;
thread_top_init("ru_thread_synch",0,5000000,10000000,10000000);
thread_top_init("ru_thread_synch");
wait_sync("ru_thread_synch");
// initialize variables for PSS detection
ru_sync_time_init(ru); //lte_sync_time_init(ru->frame_parms);
@@ -1873,7 +1873,7 @@ void *pre_scd_thread( void *param ) {
frame = 0;
subframe = 4;
thread_top_init("pre_scd_thread",0,870000,1000000,1000000);
thread_top_init("pre_scd_thread");
while (!oai_exit) {
if(oai_exit) {
@@ -1933,7 +1933,7 @@ static void *eNB_thread_phy_tx( void *param ) {
// set default return value
eNB_thread_phy_tx_status = 0;
int ret;
thread_top_init("eNB_thread_phy_tx",1,500000L,1000000L,20000000L);
thread_top_init("eNB_thread_phy_tx");
while (!oai_exit) {
if (oai_exit) break;
@@ -1988,7 +1988,7 @@ static void *rf_tx( void *param ) {
RU_proc_t *proc = &ru->proc;
// set default return value
rf_tx_status = 0;
thread_top_init("rf_tx",1,500000L,1000000L,20000000L);
thread_top_init("rf_tx");
while (!oai_exit) {
if (oai_exit) break;

View File

@@ -881,7 +881,7 @@ static void *UE_phy_stub_standalone_pnf_task(void *arg) {
}
}
#else
thread_top_init("UE_phy_stub_thread_rxn_txnp4", 1, 870000L, 1000000L, 1000000L);
thread_top_init("UE_phy_stub_thread_rxn_txnp4");
#endif
// for multipule UE's L2-emulator
//module_id_t Mod_id = 0;
@@ -1235,7 +1235,7 @@ static void *UE_phy_stub_standalone_pnf_task(void *arg) {
static void *UE_phy_stub_single_thread_rxn_txnp4(void *arg) {
#if 0 // TODO: doesn't currently compile, obviated by multi-ue proxy
thread_top_init("UE_phy_stub_thread_rxn_txnp4",1,870000L,1000000L,1000000L);
thread_top_init("UE_phy_stub_thread_rxn_txnp4");
// for multipule UE's L2-emulator
//module_id_t Mod_id = 0;
//int init_ra_UE = -1; // This counter is used to initiate the RA of each UE in different SFrames
@@ -2227,7 +2227,7 @@ int setup_ue_buffers(PHY_VARS_UE **phy_vars_ue,
//02/02/2018
static void *timer_thread( void *param ) {
thread_top_init("timer_thread",1,870000L,1000000L,1000000L);
thread_top_init("timer_thread");
timer_subframe =9;
timer_frame =1023;
//phy_stub_ticking = (SF_ticking*)malloc(sizeof(SF_ticking));