From: Pavel Roskin <proski@gnu.org>
To: Mijzelf <Mijzelf@live.com>
Cc: linux-wireless@vger.kernel.org
Subject: Re: Uknown symbols in rfkill_backport.ko on 2.6.25.17 on mips
Date: Thu, 26 Jul 2012 17:25:55 -0400 [thread overview]
Message-ID: <20120726172555.246a668c@mj> (raw)
In-Reply-To: <loom.20120725T195215-756@post.gmane.org>
On Wed, 25 Jul 2012 18:10:38 +0000 (UTC)
Mijzelf <Mijzelf@live.com> wrote:
> Thanks. I was able to compile the input module, and this issue is
> solved.
>
> Now a new one pops up:
> /tmpfs/root # modprobe ath9k
> modprobe: can't load module mac80211
> (updates/net/mac80211/mac80211.ko): unknown symbol in module, or
> unknown parameter /tmpfs/root # dmesg
> mac80211: Unknown symbol _flush_cache
>
> I grepped the source tree, and the word 'flush_cache' only exists in
> the objects of mac80211.ko. So I suppose it's some macro expansion.
> But I also grepped all include files in my kernel tree, and
> flush_cache only appeared 4 times:
>
> ./drivers/scsi/ips.h: IPS_FC_CMD flush_cache;
> ./drivers/video/i810/i810_main.h:static inline void flush_cache(void)
> ./drivers/video/i810/i810_main.h:#define flush_cache() do { } while(0)
> ./arch/powerpc/boot/ops.h:extern void flush_cache(void *, unsigned
> long);
>
> It seems to me no one of these can cause a symbol _flush_cache in a
> module.
I agree.
> Because the symbol is in the object files, I suppose it cannot added
> by some library either. (Are there any libraries linked against
> kernel modules?)
No. Everything used by the modules should be provided by symbols
exported by the kernel.
> Where does this come from?
My guess is that either it's a result of some clever macro expansion
(so that the source doesn't have "flush_cache") or gcc inserts that call
(perhaps hoping that libgcc has it) but the kernel doesn't satisfy it.
First of all, make sure that you are making a clean build and there are
no object files left from older builds.
Then find the object file that calls _flush_cache. Recompile the
corresponding source file with "-save-temps". Look for "flush_cache"
in the *.i and the *.s file. Try to find out where it comes from.
--
Regards,
Pavel Roskin
next prev parent reply other threads:[~2012-07-26 21:26 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-07-22 19:11 Uknown symbols in rfkill_backport.ko on 2.6.25.17 on mips Mijzelf
2012-07-24 21:56 ` Pavel Roskin
2012-07-25 18:10 ` Mijzelf
2012-07-26 21:25 ` Pavel Roskin [this message]
2012-07-29 12:31 ` Mijzelf
2012-08-01 22:09 ` Pavel Roskin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20120726172555.246a668c@mj \
--to=proski@gnu.org \
--cc=Mijzelf@live.com \
--cc=linux-wireless@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).