From patchwork Tue Mar 23 00:32:06 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Kara X-Patchwork-Id: 87552 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o2N0aZvS015353 for ; Tue, 23 Mar 2010 00:36:35 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755054Ab0CWAch (ORCPT ); Mon, 22 Mar 2010 20:32:37 -0400 Received: from cantor.suse.de ([195.135.220.2]:45246 "EHLO mx1.suse.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755600Ab0CWAcO (ORCPT ); Mon, 22 Mar 2010 20:32:14 -0400 Received: from relay1.suse.de (charybdis-ext.suse.de [195.135.221.2]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.suse.de (Postfix) with ESMTP id 0B5D18D893; Tue, 23 Mar 2010 01:32:13 +0100 (CET) Received: by quack.suse.cz (Postfix, from userid 10005) id 307622B1780; Tue, 23 Mar 2010 01:32:27 +0100 (CET) From: Jan Kara To: LKML Cc: Jan Kara , linux-wireless@vger.kernel.org Subject: [PATCH 04/18] mac80211: Generate trace points only if api tracer enabled Date: Tue, 23 Mar 2010 01:32:06 +0100 Message-Id: <1269304340-25372-5-git-send-email-jack@suse.cz> X-Mailer: git-send-email 1.6.4.2 In-Reply-To: <1269304340-25372-1-git-send-email-jack@suse.cz> References: <1269304340-25372-1-git-send-email-jack@suse.cz> Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Tue, 23 Mar 2010 00:36:35 +0000 (UTC) diff --git a/net/mac80211/driver-trace.h b/net/mac80211/driver-trace.h index 41baf73..0e6c059 100644 --- a/net/mac80211/driver-trace.h +++ b/net/mac80211/driver-trace.h @@ -1,11 +1,13 @@ #if !defined(__MAC80211_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ) #define __MAC80211_DRIVER_TRACE +#undef TRACE_CONFIG +#define TRACE_CONFIG CONFIG_MAC80211_DRIVER_API_TRACER #include #include #include "ieee80211_i.h" -#if !defined(CONFIG_MAC80211_DRIVER_API_TRACER) || defined(__CHECKER__) +#if defined(__CHECKER__) #undef TRACE_EVENT #define TRACE_EVENT(name, proto, ...) \ static inline void trace_ ## name(proto) {}