All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix __XEN_INTERFACE_VERSION__ old config breakage
@ 2006-04-04 22:45 Magnus Damm
  2006-04-06 14:11 ` Keir Fraser
  2006-04-07  0:33 ` Christian Limpach
  0 siblings, 2 replies; 9+ messages in thread
From: Magnus Damm @ 2006-04-04 22:45 UTC (permalink / raw)
  To: xen-devel; +Cc: christian.limpach, Magnus Damm

Fix __XEN_INTERFACE_VERSION__ old config breakage

For old kernel configurations that lack CONFIG_XEN_INTERFACE_VERSION,
__XEN_INTERFACE_VERSION__ will currently be defined but set to nothing. 

If a xen-enabled kernel is built separately from the xen-unstable dist,
the following error occurs with xen-unstable-9415:

#
# using defaults found in .config
#
  SPLIT   include/linux/autoconf.h -> include/config/*
  CC      arch/i386/kernel/asm-offsets.s
In file included from include/xen/interface/xen.h:439,
                 from include/asm/mach-xen/asm/page.h:20,
                 from include/asm/thread_info.h:14,
                 from include/linux/thread_info.h:21,
                 from include/linux/preempt.h:10,
                 from include/linux/spinlock.h:50,
                 from include/linux/capability.h:45,
                 from include/linux/sched.h:7,
                 from arch/i386/kernel/asm-offsets.c:7:
include/xen/interface/xen-compat.h:22:31: #if with no expression
include/xen/interface/xen-compat.h:26:31: #if with no expression
make[1]: *** [arch/i386/kernel/asm-offsets.s] Error 1
make: *** [prepare0] Error 2
$

The patch below fixes the problem and makes the logic in xen-compat.h work
correctly - __XEN_INTERFACE_VERSION__ now becomes unset if the config option
is missing.

Signed-Off-By: Magnus Damm <magnus@valinux.co.jp>

--- linux-2.6-xen-sparse/arch/i386/Makefile
+++ linux-2.6-xen-sparse/arch/i386/Makefile	2006-03-31 16:36:09.000000000 +0900
@@ -45,8 +45,10 @@ CFLAGS				+= $(shell if [ $(call cc-vers
 
 CFLAGS += $(cflags-y)
 
+ifneq   "$(CONFIG_XEN_INTERFACE_VERSION)" ""
 cppflags-$(CONFIG_XEN) += \
 	-D__XEN_INTERFACE_VERSION__=$(CONFIG_XEN_INTERFACE_VERSION)
+endif
 
 CPPFLAGS += $(cppflags-y)

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

end of thread, other threads:[~2006-04-07  9:34 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-04-04 22:45 [PATCH] Fix __XEN_INTERFACE_VERSION__ old config breakage Magnus Damm
2006-04-06 14:11 ` Keir Fraser
2006-04-07  0:33 ` Christian Limpach
2006-04-07  4:17   ` Magnus Damm
2006-04-07  7:33     ` Keir Fraser
2006-04-07  7:48       ` Magnus Damm
2006-04-07  8:54         ` Keir Fraser
2006-04-07  9:10           ` Magnus Damm
2006-04-07  9:34             ` Keir Fraser

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.