From 56a2bf8921c5f5a7cd9da1a17303b242cf4a3100 Mon Sep 17 00:00:00 2001 From: Manikandan Mohan Date: Thu, 1 Mar 2018 16:20:54 -0800 Subject: [PATCH] qcacmn: Fix export symbol for multi drivers compilation Update target_if module files to use qdf_export_symbol to facilitate multiple driver module compilation support. Change-Id: I83b2d79a96909a2661a89a1129e17c291e9a2e03 CRs-fixed: 2197751 --- target_if/spectral/target_if_spectral.c | 5 +++-- target_if/spectral/target_if_spectral_phyerr.c | 3 ++- target_if/spectral/target_if_spectral_sim.c | 13 +++++++------ 3 files changed, 12 insertions(+), 9 deletions(-) diff --git a/target_if/spectral/target_if_spectral.c b/target_if/spectral/target_if_spectral.c index 35119a03aade..3987d784dea1 100644 --- a/target_if/spectral/target_if_spectral.c +++ b/target_if/spectral/target_if_spectral.c @@ -33,6 +33,7 @@ #include #include #include +#include /** * @spectral_ops - Spectral function table, holds the Spectral functions that * depend on whether the architecture is Direct Attach or Offload. This is used @@ -2839,7 +2840,7 @@ target_if_sptrl_register_tx_ops(struct wlan_lmac_if_tx_ops *tx_ops) tx_ops->sptrl_tx_ops.sptrlto_deregister_netlink_cb = target_if_deregister_netlink_cb; } -EXPORT_SYMBOL(target_if_sptrl_register_tx_ops); +qdf_export_symbol(target_if_sptrl_register_tx_ops); void target_if_spectral_send_intf_found_msg(struct wlan_objmgr_pdev *pdev, @@ -2864,4 +2865,4 @@ target_if_spectral_send_intf_found_msg(struct wlan_objmgr_pdev *pdev, spectral->spectral_sent_msg++; } } -EXPORT_SYMBOL(target_if_spectral_send_intf_found_msg); +qdf_export_symbol(target_if_spectral_send_intf_found_msg); diff --git a/target_if/spectral/target_if_spectral_phyerr.c b/target_if/spectral/target_if_spectral_phyerr.c index d13af8aba22d..0c509649c4eb 100644 --- a/target_if/spectral/target_if_spectral_phyerr.c +++ b/target_if/spectral/target_if_spectral_phyerr.c @@ -19,6 +19,7 @@ #include #include +#include #include #include #include @@ -1582,7 +1583,7 @@ int target_if_spectral_process_phyerr_gen3( return ret; } -EXPORT_SYMBOL(target_if_spectral_process_phyerr_gen3); +qdf_export_symbol(target_if_spectral_process_phyerr_gen3); /* END of spectral GEN III HW specific functions */ #endif /* WLAN_SPECTRAL_ENABLE */ diff --git a/target_if/spectral/target_if_spectral_sim.c b/target_if/spectral/target_if_spectral_sim.c index 8c51868dbd49..d35cc2ad7767 100644 --- a/target_if/spectral/target_if_spectral_sim.c +++ b/target_if/spectral/target_if_spectral_sim.c @@ -27,6 +27,7 @@ #include "qdf_types.h" #include "ieee80211_var.h" #include +#include /* Helper functions */ @@ -725,7 +726,7 @@ target_if_spectral_sops_sim_is_active(void *arg) return simctx->is_active; } -EXPORT_SYMBOL(target_if_spectral_sops_sim_is_active); +qdf_export_symbol(target_if_spectral_sops_sim_is_active); uint32_t target_if_spectral_sops_sim_is_enabled(void *arg) @@ -741,7 +742,7 @@ target_if_spectral_sops_sim_is_enabled(void *arg) return simctx->is_enabled; } -EXPORT_SYMBOL(target_if_spectral_sops_sim_is_enabled); +qdf_export_symbol(target_if_spectral_sops_sim_is_enabled); uint32_t target_if_spectral_sops_sim_start_scan(void *arg) @@ -789,7 +790,7 @@ target_if_spectral_sops_sim_start_scan(void *arg) return 1; } -EXPORT_SYMBOL(target_if_spectral_sops_sim_start_scan); +qdf_export_symbol(target_if_spectral_sops_sim_start_scan); uint32_t target_if_spectral_sops_sim_stop_scan(void *arg) @@ -814,7 +815,7 @@ target_if_spectral_sops_sim_stop_scan(void *arg) return 1; } -EXPORT_SYMBOL(target_if_spectral_sops_sim_stop_scan); +qdf_export_symbol(target_if_spectral_sops_sim_stop_scan); #ifdef SPECTRAL_SIM_DUMP_PARAM_DATA static void @@ -962,7 +963,7 @@ target_if_spectral_sops_sim_configure_params( return 1; } -EXPORT_SYMBOL(target_if_spectral_sops_sim_configure_params); +qdf_export_symbol(target_if_spectral_sops_sim_configure_params); uint32_t target_if_spectral_sops_sim_get_params( @@ -988,6 +989,6 @@ target_if_spectral_sops_sim_get_params( return 1; } -EXPORT_SYMBOL(target_if_spectral_sops_sim_get_params); +qdf_export_symbol(target_if_spectral_sops_sim_get_params); #endif /* QCA_SUPPORT_SPECTRAL_SIMULATION */