All of lore.kernel.org
 help / color / mirror / Atom feed
* [uml-devel] [patch] uml: fix cmpxchg warnings in -mm
@ 2007-04-27 16:18 ` Miklos Szeredi
  0 siblings, 0 replies; 8+ messages in thread
From: Miklos Szeredi @ 2007-04-27 16:18 UTC (permalink / raw)
  To: jdike; +Cc: linux-kernel, user-mode-linux-devel


From: Miklos Szeredi <mszeredi@suse.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@suse.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;

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
User-mode-linux-devel mailing list
User-mode-linux-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/user-mode-linux-devel

^ permalink raw reply	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2007-04-27 17:38 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-04-27 16:18 [uml-devel] [patch] uml: fix cmpxchg warnings in -mm Miklos Szeredi
2007-04-27 16:18 ` Miklos Szeredi
2007-04-27 16:19 ` [uml-devel] [patch] uml: remove #warnings Miklos Szeredi
2007-04-27 16:19   ` Miklos Szeredi
2007-04-27 17:27 ` [uml-devel] [patch] uml: fix cmpxchg warnings in -mm Sam Ravnborg
2007-04-27 17:27   ` Sam Ravnborg
2007-04-27 17:35   ` [uml-devel] " Jeff Dike
2007-04-27 17:35     ` Jeff Dike

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.