All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] kvm tools: prevent the redefined error
@ 2011-12-17 12:17 Wanlong Gao
  0 siblings, 0 replies; only message in thread
From: Wanlong Gao @ 2011-12-17 12:17 UTC (permalink / raw)
  To: kvm; +Cc: penberg, Wanlong Gao

In file included from ../../include/linux/stddef.h:4:0,
                 from ../../include/linux/list.h:5,
                 from include/kvm/framebuffer.h:5,
                 from builtin-run.c:8:
include/linux/compiler.h:8:0: error: "__attribute_const__" redefined [-Werror]
/usr/include/sys/cdefs.h:226:0: note: this is the location of the previous definition
cc1: all warnings being treated as errors

make: *** [builtin-run.o] Error 1

Signed-off-by: Wanlong Gao <gaowanlong@cn.fujitsu.com>
---
 tools/kvm/include/linux/compiler.h |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)

diff --git a/tools/kvm/include/linux/compiler.h b/tools/kvm/include/linux/compiler.h
index bd360c2..b9c5346 100644
--- a/tools/kvm/include/linux/compiler.h
+++ b/tools/kvm/include/linux/compiler.h
@@ -5,7 +5,10 @@
 #define __always_inline	inline
 #endif
 #define __user
+
+#ifndef __attribute_const__
 #define __attribute_const__
+#endif
 
 #define __used		__attribute__((__unused__))
 #define __iomem
-- 
1.7.8


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

only message in thread, other threads:[~2011-12-17 12:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2011-12-17 12:17 [PATCH] kvm tools: prevent the redefined error Wanlong Gao

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.