From b7c1b4d761b314be41dca829c1a1e2b8d6956cc7 Mon Sep 17 00:00:00 2001 From: Guido Casati Date: Fri, 27 Sep 2024 13:32:05 +0200 Subject: [PATCH] Refactor includes in NR_MAC_gNB/main.c * used open source IWYU tool + manual review --- openair2/LAYER2/NR_MAC_gNB/main.c | 43 ++++++++++++++++++++++++++----- 1 file changed, 36 insertions(+), 7 deletions(-) diff --git a/openair2/LAYER2/NR_MAC_gNB/main.c b/openair2/LAYER2/NR_MAC_gNB/main.c index add3b6589a..f8e6d120de 100644 --- a/openair2/LAYER2/NR_MAC_gNB/main.c +++ b/openair2/LAYER2/NR_MAC_gNB/main.c @@ -30,18 +30,47 @@ */ +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include +#include "NR_DRB-ToAddMod.h" +#include "NR_DRB-ToAddModList.h" +#include "NR_MAC_COMMON/nr_mac.h" +#include "NR_MAC_COMMON/nr_mac_common.h" #include "NR_MAC_gNB/mac_proto.h" -#include "NR_MAC_COMMON/nr_mac_extern.h" +#include "NR_MAC_gNB/mac_rrc_ul.h" +#include "NR_MAC_gNB/nr_mac_gNB.h" +#include "NR_PHY_INTERFACE/NR_IF_Module.h" +#include "NR_RLC-BearerConfig.h" +#include "NR_RadioBearerConfig.h" +#include "NR_ServingCellConfig.h" +#include "NR_ServingCellConfigCommon.h" +#include "NR_TAG.h" +#include "PHY/defs_common.h" +#include "RRC/NR/MESSAGES/asn1_msg.h" +#include "RRC/NR/nr_rrc_config.h" #include "assertions.h" +#include "common/ngran_types.h" +#include "common/ran_context.h" +#include "common/utils/T/T.h" +#include "executables/softmodem-common.h" +#include "linear_alloc.h" +#include "nr_pdcp/nr_pdcp_entity.h" #include "nr_pdcp/nr_pdcp_oai_api.h" - -#include "common/utils/LOG/log.h" #include "nr_rlc/nr_rlc_oai_api.h" #include "openair2/F1AP/f1ap_ids.h" - -#include "common/ran_context.h" -#include "executables/softmodem-common.h" -#include "openair2/RRC/NR/MESSAGES/asn1_msg.h" +#include "rlc.h" +#include "seq_arr.h" +#include "system.h" +#include "time_meas.h" +#include "utils.h" extern RAN_CONTEXT_t RC;