tracing/events: Fix swiotlb tracepoint creation
authorThierry Reding <thierry.reding@gmail.com>
Wed, 23 Oct 2013 11:32:04 +0000 (13:32 +0200)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Thu, 24 Oct 2013 14:37:06 +0000 (10:37 -0400)
Tracepoints are only created when Xen support is enabled, but they are
also referenced within lib/swiotlb.c. So unless Xen support is enabled
the tracepoints will be missing, therefore causing builds to fail. Fix
this by moving the tracepoint creation to lib/swiotlb.c, which works
nicely because the Xen swiotlb support selects the generic swiotlb
support.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
drivers/xen/swiotlb-xen.c
lib/swiotlb.c

index b31081007a810cfcaf81d47d8ea07eae41eb8a00..44af9d8577ded149a0cd95926372505e6bc232e7 100644 (file)
@@ -43,7 +43,6 @@
 #include <xen/xen-ops.h>
 #include <xen/hvc-console.h>
 
-#define CREATE_TRACE_POINTS
 #include <trace/events/swiotlb.h>
 /*
  * Used to do a quick range check in swiotlb_tbl_unmap_single and
index f0d841907da662cce80c1f9ac6e1fece6234357d..55587060e893a8cc4050da40e95a3d036f17b812 100644 (file)
@@ -38,6 +38,7 @@
 #include <linux/bootmem.h>
 #include <linux/iommu-helper.h>
 
+#define CREATE_TRACE_POINTS
 #include <trace/events/swiotlb.h>
 
 #define OFFSET(val,align) ((unsigned long)     \