linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] apm.c redefines savesegment in 2.5
@ 2002-11-29  2:06 Thomas Molina
  0 siblings, 0 replies; only message in thread
From: Thomas Molina @ 2002-11-29  2:06 UTC (permalink / raw)
  To: linux-kernel

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





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2002-11-29  2:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-11-29  2:06 [PATCH] apm.c redefines savesegment in 2.5 Thomas Molina

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