From: Thomas Molina <tmolina@copper.net>
To: linux-kernel@vger.kernel.org
Subject: [PATCH] apm.c redefines savesegment in 2.5
Date: Thu, 28 Nov 2002 20:06:49 -0600 (CST) [thread overview]
Message-ID: <Pine.LNX.4.44.0211282003310.878-100000@lap.molina> (raw)
I get the following when compiling 2.5.50:
arch/i386/kernel/apm.c:336:1: warning: "savesegment" redefined
In file included from include/linux/elf.h:5,
from include/linux/module.h:17,
from arch/i386/kernel/apm.c:205:
include/asm/elf.h:63:1: warning: this is the location of the previous
definition
This patch fixes it:
--- arch/i386/kernel/apm.c.orig 2002-11-20 18:13:04.000000000 -0600
+++ arch/i386/kernel/apm.c 2002-11-20 18:16:16.000000000 -0600
@@ -331,12 +331,6 @@
#define DEFAULT_BOUNCE_INTERVAL (3 * HZ)
/*
- * Save a segment register away
- */
-#define savesegment(seg, where) \
- __asm__ __volatile__("movl %%" #seg ",%0" : "=m" (where))
-
-/*
* Maximum number of events stored
*/
#define APM_MAX_EVENTS 20
reply other threads:[~2002-11-29 2:07 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
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=Pine.LNX.4.44.0211282003310.878-100000@lap.molina \
--to=tmolina@copper.net \
--cc=linux-kernel@vger.kernel.org \
/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®