* bug? fpswa_interface needs to be exported
@ 2004-04-13 7:36 Martin Pool
2004-04-13 22:49 ` David Mosberger
2004-04-16 4:04 ` Martin Pool
0 siblings, 2 replies; 3+ messages in thread
From: Martin Pool @ 2004-04-13 7:36 UTC (permalink / raw)
To: linux-ia64
Hi,
In 2.6.4/5, efivars can be built as a module, but it depends on
'fpswa_interface' which is not exported by fpswa.c. I think you need
a EXPORT_SYMBOL for that variable.
Debian's 2.6.4-mckinley-smp kernel has this built as a module but it
cannot be loaded:
efivars: Unknown symbol fpswa_interface
Cheers,
--
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bug? fpswa_interface needs to be exported
2004-04-13 7:36 bug? fpswa_interface needs to be exported Martin Pool
@ 2004-04-13 22:49 ` David Mosberger
2004-04-16 4:04 ` Martin Pool
1 sibling, 0 replies; 3+ messages in thread
From: David Mosberger @ 2004-04-13 22:49 UTC (permalink / raw)
To: linux-ia64
>>>>> On Tue, 13 Apr 2004 17:36:43 +1000, Martin Pool <mbp@sourcefrog.net> said:
Martin> Hi, In 2.6.4/5, efivars can be built as a module, but it
Martin> depends on 'fpswa_interface' which is not exported by
Martin> fpswa.c. I think you need a EXPORT_SYMBOL for that
Martin> variable.
Martin> Debian's 2.6.4-mckinley-smp kernel has this built as a
Martin> module but it cannot be loaded:
Martin> efivars: Unknown symbol fpswa_interface
Want to send a (tested) patch?
--david
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: bug? fpswa_interface needs to be exported
2004-04-13 7:36 bug? fpswa_interface needs to be exported Martin Pool
2004-04-13 22:49 ` David Mosberger
@ 2004-04-16 4:04 ` Martin Pool
1 sibling, 0 replies; 3+ messages in thread
From: Martin Pool @ 2004-04-16 4:04 UTC (permalink / raw)
To: linux-ia64
On 13 Apr 2004, David Mosberger <davidm@napali.hpl.hp.com> wrote:
> >>>>> On Tue, 13 Apr 2004 17:36:43 +1000, Martin Pool <mbp@sourcefrog.net> said:
>
> Martin> Hi, In 2.6.4/5, efivars can be built as a module, but it
> Martin> depends on 'fpswa_interface' which is not exported by
> Martin> fpswa.c. I think you need a EXPORT_SYMBOL for that
> Martin> variable.
>
> Martin> Debian's 2.6.4-mckinley-smp kernel has this built as a
> Martin> module but it cannot be loaded:
>
> Martin> efivars: Unknown symbol fpswa_interface
>
> Want to send a (tested) patch?
This will fix it:
--- linus--release--2.6.5--version-0/arch/ia64/kernel/traps.c 2004-04-15 12:42:32.000000000 +1000
+++ ./arch/ia64/kernel/traps.c 2004-04-15 16:18:55.000000000 +1000
@@ -13,6 +13,7 @@
#include <linux/sched.h>
#include <linux/tty.h>
#include <linux/vt_kern.h> /* For unblank_screen() */
+#include <linux/module.h> /* for EXPORT_SYMBOL */
#include <asm/fpswa.h>
#include <asm/hardirq.h>
@@ -47,6 +48,7 @@
extern spinlock_t timerlist_lock;
fpswa_interface_t *fpswa_interface;
+EXPORT_SYMBOL(fpswa_interface);
void __init
trap_init (void)
There was also a bug in modpost that suppressed the warning that
should have come out at compile time. Rusty has fixed it in Linus's
tree.
--
Martin
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2004-04-16 4:04 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2004-04-13 7:36 bug? fpswa_interface needs to be exported Martin Pool
2004-04-13 22:49 ` David Mosberger
2004-04-16 4:04 ` Martin Pool
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox