linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Adam J. Richter" <adam@yggdrasil.com>
To: acpi@phobos.fachschaften.tu-muenchen.de, linux-kernel@vger.kernel.org
Cc: torvalds@transmeta.com
Subject: [PATCH] linux-2.4.1-pre9/include/linux/acpi.h broke acpid compilation
Date: Sun, 21 Jan 2001 00:23:19 -0800	[thread overview]
Message-ID: <20010121002319.A8447@adam.yggdrasil.com> (raw)

[-- Attachment #1: Type: text/plain, Size: 741 bytes --]

	linux-2.4.1-pre9/include/linux/acpi.h contains declares the
routine acpi_get_rsdp_ptr returning the kernel-only type "u64", without
bracketing the declaration in "#ifdef __KERNEL__...#endif".  Consequently,
a user level program that attempts to include <linux/acpi.h>, such as
acpid, gets a compilation error.  The following patch fix the problem
by stretching an earlier "#ifdef __KERNEL__...#endif" area to cover
the acpi_get_rsdp_ptr declaration.

-- 
Adam J. Richter     __     ______________   4880 Stevens Creek Blvd, Suite 104
adam@yggdrasil.com     \ /                  San Jose, California 95129-1034
+1 408 261-6630         | g g d r a s i l   United States of America
fax +1 408 261-6631      "Free Software For The Rest Of Us."

[-- Attachment #2: acpi.diff --]
[-- Type: text/plain, Size: 360 bytes --]

--- linux-2.4.1-pre9/include/linux/acpi.h	Fri Dec 29 14:07:24 2000
+++ linux/include/linux/acpi.h	Sun Jan 21 00:14:59 2001
@@ -26,9 +26,9 @@
 #ifdef __KERNEL__
 #include <linux/sched.h>
 #include <linux/wait.h>
-#endif /* __KERNEL__ */
 
-u64 acpi_get_rsdp_ptr(void);
+extern u64 acpi_get_rsdp_ptr(void);
+#endif /* __KERNEL__ */
 
 /*
  * System sleep states

             reply	other threads:[~2001-01-21  8:23 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-01-21  8:23 Adam J. Richter [this message]
2001-01-21 16:05 ` [PATCH] linux-2.4.1-pre9/include/linux/acpi.h broke acpid compilation John Fremlin

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=20010121002319.A8447@adam.yggdrasil.com \
    --to=adam@yggdrasil.com \
    --cc=acpi@phobos.fachschaften.tu-muenchen.de \
    --cc=linux-kernel@vger.kernel.org \
    --cc=torvalds@transmeta.com \
    /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).