From patchwork Mon Sep 9 15:50:45 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Bartosz Markowski X-Patchwork-Id: 2862101 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 7318A9F499 for ; Mon, 9 Sep 2013 15:51:13 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id B64D7203E3 for ; Mon, 9 Sep 2013 15:51:08 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id C26C5202F6 for ; Mon, 9 Sep 2013 15:51:06 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754010Ab3IIPvE (ORCPT ); Mon, 9 Sep 2013 11:51:04 -0400 Received: from ebb05.tieto.com ([131.207.168.36]:49332 "EHLO ebb05.tieto.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754033Ab3IIPvD (ORCPT ); Mon, 9 Sep 2013 11:51:03 -0400 X-AuditID: 83cfa824-b7f348e000004c45-21-522dee64a28c Received: from FIVLA-EXHUB02.eu.tieto.com ( [131.207.136.42]) by ebb05.tieto.com (SMTP Mailer) with SMTP id 6E.F9.19525.46EED225; Mon, 9 Sep 2013 18:51:00 +0300 (EEST) Received: from uw000975.eu.tieto.com (10.28.19.100) by inbound.tieto.com (131.207.136.49) with Microsoft SMTP Server id 8.3.298.1; Mon, 9 Sep 2013 18:50:59 +0300 From: Bartosz Markowski To: CC: , Bartosz Markowski Subject: [PATCH] ath10k: define ath10k_debug_start/_stop as static inline Date: Mon, 9 Sep 2013 17:50:45 +0200 Message-ID: <1378741845-30080-1-git-send-email-bartosz.markowski@tieto.com> X-Mailer: git-send-email 1.7.10 MIME-Version: 1.0 X-Brightmail-Tracker: H4sIAAAAAAAAA+NgFjrIIsWRmVeSWpSXmKPExsXSfL5DSzflnW6Qwc4ubYtHl44xWzyZ/J3F 4s2KO+wOzB6fZ95l89i8pN7j8ya5AOYoLpuU1JzMstQifbsErozfiy4yFyxhr5j9wbeBsYet i5GTQ0LARKL1SDcThC0mceHeeqA4F4eQwCpGiV0r57NCOEsZJc4+P8cIUsUmYCpxf8MKVhBb REBB4tekj2CTmAXCJV5t/cUCYgsLeEoceXECLM4ioCJxu6eVHcTmFfCW+N0wB2qbvMTT+31s EHFBiZMzn7BAzJGQOPjiBTOILSSgITFn50uWCYx8s5CUzUJStoCRaRUjf2pSkoGpXklmakm+ XnJ+7iZGcEitUNnBePaB1CFGAQ5GJR7en4d1g4RYE8uKK3MPMUpyMCmJ8ra8AgrxJeWnVGYk FmfEF5XmpBYfYpTgYFYS4RUFKedNSaysSi3Kh0lJc7AoifOmJGgECQmkJ5akZqemFqQWwWRl ODiUJHgV3gI1ChalpqdWpGXmlCCkmTg4QYbzAA3nAqnhLS5IzC3OTIfIn2JUlBLnffsGKCEA ksgozYPrhcX8K0ZxoFeEeQVB2nmA6QKu+xXQYCagwSJZYINLEhFSUg2M3tk9F59nalVZnw6b 4WbpwPJ7eeC59q4O2daCHzL6x3Z81ru3/Md0y6AtsQpHdYxl/yx8tlTL4W7LOV6OuCkvHvdq 8vRpWxxcNImROdRaYeOb4se1D7fwHVgxK2H9v9lvzm4q6FzW65eodXHviXOibv8cFVZpibPJ 25xeelPbaNXRgFjn7UZpSizFGYmGWsxFxYkAXQVyW9QCAAA= Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Otherwise if CONFIG_ATH10K_DEBUGFS won't be set we will end up with multiple definitions and compilation failure in each place the header is included. Signed-off-by: Bartosz Markowski --- drivers/net/wireless/ath/ath10k/debug.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/net/wireless/ath/ath10k/debug.h b/drivers/net/wireless/ath/ath10k/debug.h index 9c442a8..376a56b 100644 --- a/drivers/net/wireless/ath/ath10k/debug.h +++ b/drivers/net/wireless/ath/ath10k/debug.h @@ -52,12 +52,12 @@ void ath10k_debug_read_target_stats(struct ath10k *ar, struct wmi_stats_event *ev); #else -int ath10k_debug_start(struct ath10k *ar) +static inline int ath10k_debug_start(struct ath10k *ar) { return 0; } -void ath10k_debug_stop(struct ath10k *ar) +static inline void ath10k_debug_stop(struct ath10k *ar) { }