From 14284068d732ceeb25a980917986e6bafb89dce2 Mon Sep 17 00:00:00 2001 From: Neha Bisht Date: Thu, 12 Mar 2020 17:11:10 +0530 Subject: [PATCH] qcacmn: remove dependency of public files from wlan_objmgr_psoc_obj.h Remove dependency of wlan_objmgr_debug and target_if_pub headerfiles from wlan_objmgr_psoc_obj.h Change-Id: I40ebbf0e313c44a7b8aa7561fdbe30519b467723 --- umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h | 9 ++++----- umac/cmn_services/obj_mgr/src/wlan_objmgr_debug.c | 3 ++- umac/cmn_services/obj_mgr/src/wlan_objmgr_global_obj.c | 3 ++- umac/cmn_services/obj_mgr/src/wlan_objmgr_pdev_obj.c | 1 + umac/cmn_services/obj_mgr/src/wlan_objmgr_peer_obj.c | 1 + umac/cmn_services/obj_mgr/src/wlan_objmgr_psoc_obj.c | 1 + umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c | 1 + 7 files changed, 12 insertions(+), 7 deletions(-) diff --git a/umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h b/umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h index c2c60313d699..5d1d3f3934e1 100644 --- a/umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h +++ b/umac/cmn_services/obj_mgr/inc/wlan_objmgr_psoc_obj.h @@ -23,9 +23,7 @@ #define _WLAN_OBJMGR_PSOC_OBJ_H_ #include "wlan_objmgr_cmn.h" -#include "wlan_objmgr_debug.h" #include "wlan_lmac_if_def.h" -#include #define REG_DMN_CH144 0x0001 #define REG_DMN_ENTREPRISE 0x0002 @@ -363,7 +361,7 @@ struct wlan_objmgr_psoc { void *soc_comp_priv_obj[WLAN_UMAC_MAX_COMPONENTS]; QDF_STATUS obj_status[WLAN_UMAC_MAX_COMPONENTS]; WLAN_OBJ_STATE obj_state; - target_psoc_info_t *tgt_if_handle; + struct target_psoc_info *tgt_if_handle; void *dp_handle; qdf_spinlock_t psoc_lock; }; @@ -1409,7 +1407,7 @@ static inline uint8_t wlan_psoc_get_pdev_count(struct wlan_objmgr_psoc *psoc) */ static inline void wlan_psoc_set_tgt_if_handle(struct wlan_objmgr_psoc *psoc, - target_psoc_info_t *tgt_if_handle) + struct target_psoc_info *tgt_if_handle) { if (!psoc) return; @@ -1426,7 +1424,8 @@ void wlan_psoc_set_tgt_if_handle(struct wlan_objmgr_psoc *psoc, * Return: target interface handle */ static inline -target_psoc_info_t *wlan_psoc_get_tgt_if_handle(struct wlan_objmgr_psoc *psoc) +struct target_psoc_info *wlan_psoc_get_tgt_if_handle( + struct wlan_objmgr_psoc *psoc) { if (!psoc) return NULL; diff --git a/umac/cmn_services/obj_mgr/src/wlan_objmgr_debug.c b/umac/cmn_services/obj_mgr/src/wlan_objmgr_debug.c index e62a57072b62..8aff084538ab 100644 --- a/umac/cmn_services/obj_mgr/src/wlan_objmgr_debug.c +++ b/umac/cmn_services/obj_mgr/src/wlan_objmgr_debug.c @@ -1,6 +1,6 @@ /* * - * Copyright (c) 2018-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2018-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -24,6 +24,7 @@ #include #include #include +#include #include "wlan_objmgr_global_obj_i.h" #include #include diff --git a/umac/cmn_services/obj_mgr/src/wlan_objmgr_global_obj.c b/umac/cmn_services/obj_mgr/src/wlan_objmgr_global_obj.c index f307d213bba6..0cf52e9a6c50 100644 --- a/umac/cmn_services/obj_mgr/src/wlan_objmgr_global_obj.c +++ b/umac/cmn_services/obj_mgr/src/wlan_objmgr_global_obj.c @@ -1,5 +1,5 @@ /* - * Copyright (c) 2016-2019 The Linux Foundation. All rights reserved. + * Copyright (c) 2016-2020 The Linux Foundation. All rights reserved. * * Permission to use, copy, modify, and/or distribute this software for * any purpose with or without fee is hereby granted, provided that the @@ -21,6 +21,7 @@ #include "wlan_objmgr_global_obj_i.h" #include +#include "wlan_objmgr_debug.h" #include "wlan_objmgr_psoc_obj.h" #include "qdf_mem.h" #include diff --git a/umac/cmn_services/obj_mgr/src/wlan_objmgr_pdev_obj.c b/umac/cmn_services/obj_mgr/src/wlan_objmgr_pdev_obj.c index 13e13da51357..933d76ef8a77 100644 --- a/umac/cmn_services/obj_mgr/src/wlan_objmgr_pdev_obj.c +++ b/umac/cmn_services/obj_mgr/src/wlan_objmgr_pdev_obj.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include "wlan_objmgr_global_obj_i.h" diff --git a/umac/cmn_services/obj_mgr/src/wlan_objmgr_peer_obj.c b/umac/cmn_services/obj_mgr/src/wlan_objmgr_peer_obj.c index 09c35418e3fb..354e1615a0b6 100644 --- a/umac/cmn_services/obj_mgr/src/wlan_objmgr_peer_obj.c +++ b/umac/cmn_services/obj_mgr/src/wlan_objmgr_peer_obj.c @@ -24,6 +24,7 @@ #include #include #include +#include #include #include #include "wlan_objmgr_global_obj_i.h" diff --git a/umac/cmn_services/obj_mgr/src/wlan_objmgr_psoc_obj.c b/umac/cmn_services/obj_mgr/src/wlan_objmgr_psoc_obj.c index 1afc42ab38e0..410cec95bab2 100644 --- a/umac/cmn_services/obj_mgr/src/wlan_objmgr_psoc_obj.c +++ b/umac/cmn_services/obj_mgr/src/wlan_objmgr_psoc_obj.c @@ -25,6 +25,7 @@ #include #include #include +#include #include #include #include diff --git a/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c b/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c index 7dffd6d06546..1b9913e682b1 100644 --- a/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c +++ b/umac/cmn_services/obj_mgr/src/wlan_objmgr_vdev_obj.c @@ -23,6 +23,7 @@ #include #include #include +#include #include #include #include "wlan_objmgr_global_obj_i.h"