From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753616Ab3JWLel (ORCPT ); Wed, 23 Oct 2013 07:34:41 -0400 Received: from mail-bk0-f54.google.com ([209.85.214.54]:48078 "EHLO mail-bk0-f54.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753570Ab3JWLei (ORCPT ); Wed, 23 Oct 2013 07:34:38 -0400 From: Thierry Reding To: Konrad Rzeszutek Wilk Cc: Jim Davis , Zoltan Kiss , linux-next@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] tracing/events: Fix swiotlb tracepoint creation Date: Wed, 23 Oct 2013 13:32:04 +0200 Message-Id: <1382527924-12892-1-git-send-email-treding@nvidia.com> X-Mailer: git-send-email 1.8.4 In-Reply-To: <20131022180625.GD20496@phenom.dumpdata.com> References: <20131022180625.GD20496@phenom.dumpdata.com> Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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 --- drivers/xen/swiotlb-xen.c | 1 - lib/swiotlb.c | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/xen/swiotlb-xen.c b/drivers/xen/swiotlb-xen.c index b310810..44af9d8 100644 --- a/drivers/xen/swiotlb-xen.c +++ b/drivers/xen/swiotlb-xen.c @@ -43,7 +43,6 @@ #include #include -#define CREATE_TRACE_POINTS #include /* * Used to do a quick range check in swiotlb_tbl_unmap_single and diff --git a/lib/swiotlb.c b/lib/swiotlb.c index f0d8419..5558706 100644 --- a/lib/swiotlb.c +++ b/lib/swiotlb.c @@ -38,6 +38,7 @@ #include #include +#define CREATE_TRACE_POINTS #include #define OFFSET(val,align) ((unsigned long) \ -- 1.8.4