[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 3/3] xen: build common/preempt.c only with CONFIG_DEBUG
There is nothing left in common/preempt.c in non-debug builds. Signed-off-by: Juergen Gross <jgross@xxxxxxxx> --- xen/common/Makefile | 2 +- xen/common/preempt.c | 2 -- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/xen/common/Makefile b/xen/common/Makefile index 33d03b862f..d6576a3fc3 100644 --- a/xen/common/Makefile +++ b/xen/common/Makefile @@ -30,7 +30,7 @@ obj-y += notifier.o obj-y += page_alloc.o obj-$(CONFIG_HAS_PDX) += pdx.o obj-$(CONFIG_PERF_COUNTERS) += perfc.o -obj-y += preempt.o +obj-$(CONFIG_DEBUG) += preempt.o obj-y += random.o obj-y += rangeset.o obj-y += radix-tree.o diff --git a/xen/common/preempt.c b/xen/common/preempt.c index 3077c51d52..8bb099e8e8 100644 --- a/xen/common/preempt.c +++ b/xen/common/preempt.c @@ -23,7 +23,6 @@ #include <xen/irq.h> #include <asm/system.h> -#ifndef NDEBUG DEFINE_PER_CPU(unsigned int, __preempt_count); void ASSERT_NOT_IN_ATOMIC(void) @@ -32,4 +31,3 @@ void ASSERT_NOT_IN_ATOMIC(void) ASSERT(!in_irq()); ASSERT(local_irq_is_enabled()); } -#endif -- 2.16.4 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxxx https://lists.xenproject.org/mailman/listinfo/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |