lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Date:	Mon, 16 Oct 2006 22:10:10 +0200
From:	Sam Ravnborg <sam@...nborg.org>
To:	Scott Baker <smbaker@...il.com>
Cc:	linux-kernel@...r.kernel.org
Subject: Re: exported module symbols and warnings

On Mon, Oct 16, 2006 at 11:35:13AM -0700, Scott Baker wrote:
> Hello,
> 
> I'm developing a pair of kernel modules. One module needs to export a
> symbol that will be used by the second module. I'm doing this by using
> EXPORT_SYMBOL(MySymbol) in the first module and declaring the symbol
> as extern in the second module. It works fine.
> 
> However, there are a couple of warnings that I'm trying to clean up.
> The first is when building the second module (the one that uses the
> symbol). It is: "*** Warning: "MySymbol" [filename] undefined!"
> 
> The second warning occurs when insmod'ing the second module. It is:
> "no version for "MySymbol" found: kernel tainted."
> 
> Can someone point me in the right direction? The modules are behaving
> fine, but the warning messages are a bit unsightly.
Try to read Documentation/kbuild/modules.txt - here you will read that
the trick is to use a common kbuild file for both modules.

And that should fix your "no version" error too since you will
then know the version info during build time.

	Sam
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ