mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Stelian Pop <stelian@popies.net>
To: acpi-devel@lists.sourceforge.net,
	Linux Kernel Mailing List <linux-kernel@vger.kernel.org>
Cc: Marcelo Tosatti <marcelo@conectiva.com.br>,
	Alan Cox <alan@lxorguk.ukuu.org.uk>
Subject: [PATCH 2.4.22-pre3] Export 'acpi_disabled' symbol to modules...
Date: Mon, 7 Jul 2003 11:56:12 +0200	[thread overview]
Message-ID: <20030707095612.GA1507@deep-space-9.dsnet> (raw)

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>

             reply	other threads:[~2003-07-07  9:41 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-07  9:56 Stelian Pop [this message]
2003-07-07 11:15 ` Alan Cox

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=20030707095612.GA1507@deep-space-9.dsnet \
    --to=stelian@popies.net \
    --cc=acpi-devel@lists.sourceforge.net \
    --cc=alan@lxorguk.ukuu.org.uk \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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

all inboxes | Powered by JetHome®