Skip to contentSkip to conversation

staging: Do not export static functions

PATCH New Amitoj Kaur Chawla 1 participant 3 messages Oct 24, 2015 Staging

lore
Share & tools
lore
#0 lore raw

cover staging: Do not export static functions

This patchset removes the export symbol for static functions.

The semantic patch used to find this is:

// <smpl>
@r@
type T;
identifier f;
@@

static T f (...) { ... }

@@
identifier r.f;
declarer name EXPORT_SYMBOL;
@@

-EXPORT_SYMBOL(f);
// </smpl>

Amitoj Kaur Chawla (2):
staging: lustre: ldlm: Do not export static function
staging: rtl8192u: ieee80211: Do not export static function

 drivers/staging/lustre/lustre/ldlm/ldlm_pool.c         | 1 -
 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 1 -
 2 files changed, 2 deletions(-)
Signature · 1 line
1.9.1
#1 lore raw

PATCH 1/2 staging: lustre: ldlm: Do not export static function

Remove the export symbol for static function.

The semantic patch used to find this is:

// <smpl>
@r@
type T;
identifier f;
@@

static T f (...) { ... }

@@
identifier r.f;
declarer name EXPORT_SYMBOL;
@@

-EXPORT_SYMBOL(f);
// </smpl>

---
 drivers/staging/lustre/lustre/ldlm/ldlm_pool.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/lustre/lustre/ldlm/ldlm_pool.c +0 -1
index a4ee591..b73cf6d 100644
@@ -1005,7 +1005,6 @@ static int ldlm_pools_recalc(ldlm_side_t client)
 	}
 	return time;
 }
-EXPORT_SYMBOL(ldlm_pools_recalc);
 
 static int ldlm_pools_thread_main(void *arg)
 {
Signature · 1 line
1.9.1
#2 lore raw

PATCH 2/2 staging: rtl8192u: ieee80211: Do not export static function

In reply to Amitoj Kaur Chawla

Remove the export symbol for static function.

The semantic patch used to find this is:

// <smpl>
@r@
type T;
identifier f;
@@

static T f (...) { ... }

@@
identifier r.f;
declarer name EXPORT_SYMBOL;
@@

-EXPORT_SYMBOL(f);
// </smpl>

---
 drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c | 1 -
 1 file changed, 1 deletion(-)
drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c +0 -1
index f2d09fe..30e11bb 100644
@@ -417,7 +417,6 @@ static void ieee80211_send_probe_requests(struct ieee80211_device *ieee)
 		ieee80211_send_probe(ieee);
 	}
 }
-EXPORT_SYMBOL(ieee80211_send_probe_requests);
 
 /* this performs syncro scan blocking the caller until all channels
  * in the allowed channel map has been checked.
Signature · 1 line
1.9.1