linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 2.4.22-pre3] Export 'acpi_disabled' symbol to modules...
@ 2003-07-07  9:56 Stelian Pop
  2003-07-07 11:15 ` Alan Cox
  0 siblings, 1 reply; 2+ messages in thread
From: Stelian Pop @ 2003-07-07  9:56 UTC (permalink / raw)
  To: acpi-devel, Linux Kernel Mailing List; +Cc: Marcelo Tosatti, Alan Cox

Hi,

'acpi_disabled' is not exported by the current 2.4-pre kernel, but
is used by at least the sonypi module.

I have submitted a similar patch for 2.5 some weeks ago (and it got
applied) but for some reason the 2.4 ACPI branch don't have it.

Andy, Marcelo, please apply.

(Alan, a similar change is needed for -ac, but the current patch will
not apply on top of the ac tree. Do you want me to send you a patch
correcting this or you'll do the change by hand ?)

Thanks,

Stelian.

===== arch/i386/kernel/setup.c 1.68 vs edited =====
--- 1.68/arch/i386/kernel/setup.c	Mon Jun 23 08:41:25 2003
+++ edited/arch/i386/kernel/setup.c	Mon Jul  7 09:28:46 2003
@@ -107,6 +107,7 @@
 #include <linux/seq_file.h>
 #include <asm/processor.h>
 #include <linux/console.h>
+#include <linux/module.h>
 #include <asm/mtrr.h>
 #include <asm/uaccess.h>
 #include <asm/system.h>
@@ -175,10 +176,11 @@
 static u32 disabled_x86_caps[NCAPINTS] __initdata = { 0 };
 
 #ifdef CONFIG_ACPI_HT_ONLY
-int acpi_disabled __initdata = 1;
+int acpi_disabled = 1;
 #else
-int acpi_disabled __initdata = 0;
+int acpi_disabled = 0;
 #endif
+EXPORT_SYMBOL(acpi_disabled);
 
 extern int blk_nohighio;
 
===== arch/i386/kernel/Makefile 1.6 vs edited =====
--- 1.6/arch/i386/kernel/Makefile	Fri Jun 13 09:01:12 2003
+++ edited/arch/i386/kernel/Makefile	Mon Jul  7 09:28:57 2003
@@ -14,7 +14,7 @@
 
 O_TARGET := kernel.o
 
-export-objs     := mca.o mtrr.o msr.o cpuid.o microcode.o i386_ksyms.o time.o
+export-objs     := mca.o mtrr.o msr.o cpuid.o microcode.o i386_ksyms.o time.o setup.o
 
 obj-y	:= process.o semaphore.o signal.o entry.o traps.o irq.o vm86.o \
 		ptrace.o i8259.o ioport.o ldt.o setup.o time.o sys_i386.o \
-- 
Stelian Pop <stelian@popies.net>

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: [PATCH 2.4.22-pre3] Export 'acpi_disabled' symbol to modules...
  2003-07-07  9:56 [PATCH 2.4.22-pre3] Export 'acpi_disabled' symbol to modules Stelian Pop
@ 2003-07-07 11:15 ` Alan Cox
  0 siblings, 0 replies; 2+ messages in thread
From: Alan Cox @ 2003-07-07 11:15 UTC (permalink / raw)
  To: Stelian Pop; +Cc: acpi-devel, Linux Kernel Mailing List, Marcelo Tosatti

On Llu, 2003-07-07 at 10:56, Stelian Pop wrote:
> (Alan, a similar change is needed for -ac, but the current patch will
> not apply on top of the ac tree. Do you want me to send you a patch
> correcting this or you'll do the change by hand ?)

No problem - I'll fix it by hand


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-07-07 11:03 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-07-07  9:56 [PATCH 2.4.22-pre3] Export 'acpi_disabled' symbol to modules Stelian Pop
2003-07-07 11:15 ` Alan Cox

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).