qcacmn: Do not export static functions

Linux kernel commit 15bfc2348d54 ("modpost: check for static
EXPORT_SYMBOL* functions") adds a check to make sure that static
functions are not exported.

With this in place the following fatal errors are reported:
FATAL: modpost: "__qdf_nbuf_get_ether_type" is a static EXPORT_SYMBOL
FATAL: modpost: "os_if_spectral_free_skb" is a static EXPORT_SYMBOL
FATAL: modpost: "qdf_nbuf_tx_desc_count_update" is a static EXPORT_SYMBOL
FATAL: modpost: "__qdf_nbuf_get_ip_offset" is a static EXPORT_SYMBOL

To fix these errors do not export the static functions.

Change-Id: Ib5caab904401900bafb23dee23b119daa76d4055
CRs-Fixed: 2910980
This commit is contained in:
Jeff Johnson
2021-03-29 15:14:57 -07:00
committed by snandini
parent 9df8be508d
commit 79b61afd8f
2 changed files with 1 additions and 8 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright (c) 2011, 2017-2020 The Linux Foundation. All rights reserved.
* Copyright (c) 2011, 2017-2021 The Linux Foundation. All rights reserved.
*
*
* Permission to use, copy, modify, and/or distribute this software for
@@ -566,8 +566,6 @@ os_if_spectral_free_skb(struct wlan_objmgr_pdev *pdev,
ps->skb[smsg_type] = NULL;
}
qdf_export_symbol(os_if_spectral_free_skb);
void
os_if_spectral_netlink_init(struct wlan_objmgr_pdev *pdev)
{