Skip to content

Commit

Permalink
[Epic-Id: ODUHIGH-613][Task-Id: ODUHIGH-622]| NFAPI_BRANCH | Changes …
Browse files Browse the repository at this point in the history
…related to ERROR: Multiple Definition in Ubuntu Server

Change-Id: Ife0cfa4203a3009268c02ada5c3120f545ec67aa
Signed-off-by: svaidhya <[email protected]>
  • Loading branch information
svaidhya committed Aug 9, 2024
1 parent dee087b commit 219154c
Show file tree
Hide file tree
Showing 12 changed files with 15 additions and 20 deletions.
2 changes: 0 additions & 2 deletions src/5gnrmac/mac_cfg_hdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,6 @@
#ifdef NFAPI_ENABLED
#include "nfapi_interface.h"
#include "nfapi_vnf_fsm.h"

extern NfapiVnfDb vnfDb;
#endif

uint8_t ssbPeriodicity[6] = {5, 10, 20, 40, 80, 160};
Expand Down
4 changes: 2 additions & 2 deletions src/5gnrmac/nfapi_common.h
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,8 @@
}

/*Global Variable*/
uint32_t PER_TTI_TIME_USEC;
uint8_t NUM_SLOTS_PER_SUBFRAME;
extern uint32_t PER_TTI_TIME_USEC;
extern uint8_t NUM_SLOTS_PER_SUBFRAME;

/*Common Functions*/
void nfapiFillP5Hdr(Buffer *mBuf);
Expand Down
4 changes: 2 additions & 2 deletions src/5gnrmac/nfapi_p7_clk.c
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@
#include "mac_utils.h"
#include "nfapi_p7_msg_hdl.h"

extern uint32_t PER_TTI_TIME_USEC;
extern uint8_t NUM_SLOTS_PER_SUBFRAME;
uint32_t PER_TTI_TIME_USEC;
uint8_t NUM_SLOTS_PER_SUBFRAME;

/**************************************************************************
* @brief Task Initiation callback function.
Expand Down
2 changes: 0 additions & 2 deletions src/5gnrmac/nfapi_p7_msg_hdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,6 @@
#include "nfapi_common.h"
#include "nfapi_udp_p7.h"

extern NfapiVnfDb vnfDb;

/***********************************************************************
*
* @brief Pack parameters of Precoding and Beamforming
Expand Down
2 changes: 2 additions & 0 deletions src/5gnrmac/nfapi_vnf_fsm.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@
#include "mac_utils.h"
#include "lwr_mac_fsm.h"

NfapiVnfDb vnfDb;

/*******************************************************************
*
* @brief Initalization of VNF Database
Expand Down
2 changes: 1 addition & 1 deletion src/5gnrmac/nfapi_vnf_fsm.h
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ typedef struct nfapiVnfDb
}NfapiVnfDb;

/* Global variables */
NfapiVnfDb vnfDb;
extern NfapiVnfDb vnfDb;

void nFapiVnfInit();
typedef uint8_t (*nFapiVnfFsmHdlr)(nFapi_p5_hdr *, nFapi_msg_header *, void *);
Expand Down
6 changes: 3 additions & 3 deletions src/pnf_stub/pnf_stub.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,9 @@
#include "pnf_stub.h"
#include "pnf_stub_p5_msg_hdl.h"

extern uint32_t PER_TTI_TIME_USEC;
extern uint8_t NUM_SLOTS_PER_SUBFRAME;
extern PnfGlobalCb pnfCb;
uint32_t PER_TTI_TIME_USEC;
uint8_t NUM_SLOTS_PER_SUBFRAME;
PnfGlobalCb pnfCb;

void init_log()
{
Expand Down
6 changes: 3 additions & 3 deletions src/pnf_stub/pnf_stub.h
Original file line number Diff line number Diff line change
Expand Up @@ -111,8 +111,8 @@
#define CONFDC_LEVEL_BAD 1
#define SLOT_DELAY 3

uint32_t PER_TTI_TIME_USEC;
uint8_t NUM_SLOTS_PER_SUBFRAME;
extern uint32_t PER_TTI_TIME_USEC;
extern uint8_t NUM_SLOTS_PER_SUBFRAME;

typedef enum
{
Expand Down Expand Up @@ -183,7 +183,7 @@ typedef struct pnfGlobalCb
//DuDb duInfo[MAX_DU_SUPPORTED]; /*TODO: VNF Database can be added*/
}PnfGlobalCb;

PnfGlobalCb pnfCb;
extern PnfGlobalCb pnfCb;

uint8_t p5MsgHandlerAtPnf(Buffer *mBuf);
void nfapiFillP5Hdr(Buffer *mBuf);
Expand Down
1 change: 0 additions & 1 deletion src/pnf_stub/pnf_stub_p5_msg_hdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,6 @@
#include "pnf_stub_p7_udp.h"
#include "pnf_stub.h"

PnfGlobalCb pnfCb;
/*********************************************************************************
*
* @Function Name: buildAndSendPnfReadyInd
Expand Down
3 changes: 0 additions & 3 deletions src/pnf_stub/pnf_stub_p7_msg_hdl.c
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,6 @@
#include "pnf_stub_p7_udp.h"
#include "pnf_stub.h"

extern PnfGlobalCb pnfCb;
extern uint8_t NUM_SLOTS_PER_SUBFRAME;

/*********************************************************************************
* @Brief: Filling of Ul Node Sync
*
Expand Down
1 change: 1 addition & 0 deletions src/pnf_stub/pnf_stub_p7_udp.c
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@

uint8_t sockType;
uint8_t protType;
PnfP7UdpGlobalCb pnfP7Cb;

/**************************************************************************
* @brief Task Initiation callback function.
Expand Down
2 changes: 1 addition & 1 deletion src/pnf_stub/pnf_stub_p7_udp.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ typedef struct pnfP7UdpGlobalCb
uint16_t gCntMsg;
}PnfP7UdpGlobalCb;

PnfP7UdpGlobalCb pnfP7Cb;
extern PnfP7UdpGlobalCb pnfP7Cb;

uint8_t pnfP7UdpActvInit();
uint8_t pnfP7UdpCfgReq();
Expand Down

0 comments on commit 219154c

Please sign in to comment.