[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <E1HhT90-0001dW-00@dorka.pomaz.szeredi.hu>
Date: Fri, 27 Apr 2007 18:18:02 +0200
From: Miklos Szeredi <miklos@...redi.hu>
To: jdike@...toit.com
CC: linux-kernel@...r.kernel.org,
user-mode-linux-devel@...ts.sourceforge.net
Subject: [patch] uml: fix cmpxchg warnings in -mm
From: Miklos Szeredi <mszeredi@...e.cz>
I get lot's of these on i386:
In file included from include/asm/atomic.h:10,
from include/linux/file.h:9,
from mm/fadvise.c:12:
include/asm/arch/atomic.h: In function ‘atomic_add_unless’:
include/asm/arch/atomic.h:240: warning: implicit declaration of function ‘cmpxchg’
[...]
The problem seems to be that <asm-i386/atomic.h> assumes that
<asm/processor.h> pulls in <asm/system.h>.
Signed-off-by: Miklos Szeredi <mszeredi@...e.cz>
---
Index: linux/include/asm-um/processor-i386.h
===================================================================
--- linux.orig/include/asm-um/processor-i386.h 2007-04-26 15:16:47.000000000 +0200
+++ linux/include/asm-um/processor-i386.h 2007-04-27 17:58:25.000000000 +0200
@@ -9,6 +9,7 @@
#include "linux/string.h"
#include "asm/host_ldt.h"
#include "asm/segment.h"
+#include "asm/system.h"
extern int host_has_xmm;
extern int host_has_cmov;
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists