Missing Symbol in mac80211.ko

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Developers,

While trying to upgrade from backports v3.11.8 to v3.13.2 I ran into
this warning:

WARNING: "atomic64_set"
[/home/dschultze/dump/ltib-trunk/rpm/BUILD/backports-3.13.2-1/net/mac80211/mac80211.ko]
undefined!

I have verified that the kernel (v2.6.31, arm) does indeed have a
definition for this function but for some reason mac80211.ko cannot
see it. I was able to use the following patch as a hack to provide an
implementation for mac80211.ko.

diff -Nur backports-3.13.2-1-orig/net/mac80211/key.c
backports-3.13.2-1/net/mac80211/key.c
--- backports-3.13.2-1-orig/net/mac80211/key.c 2014-02-14
10:40:12.699276697 -0800
+++ backports-3.13.2-1/net/mac80211/key.c 2014-02-14 13:27:30.068628373 -0800
@@ -686,6 +686,16 @@
 }
 EXPORT_SYMBOL_GPL(ieee80211_gtk_rekey_notify);

+void atomic64_set(atomic64_t *v, long long i)
+{
+        unsigned long flags;
+//        spinlock_t *lock = lock_addr(v);
+
+//        spin_lock_irqsave(lock, flags);
+        v->counter = i;
+//        spin_unlock_irqrestore(lock, flags);
+}
+
 void ieee80211_get_key_tx_seq(struct ieee80211_key_conf *keyconf,
       struct ieee80211_key_seq *seq)
 {

I know that using this hack isn't the best way to go but I'm not sure
how to resolve the issue: why can't backports use the function and
exported symbol from the kernel?

Thank you,
Daniel Schultze
--
To unsubscribe from this list: send the line "unsubscribe backports" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html




[Index of Archives]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [ECOS]     [Asterisk Internet PBX]     [Linux API]

  Powered by Linux