From patchwork Tue Nov 20 08:56:58 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Sachin Kamat X-Patchwork-Id: 12974 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id 330BD23FC8 for ; Tue, 20 Nov 2012 09:03:10 +0000 (UTC) Received: from mail-ia0-f180.google.com (mail-ia0-f180.google.com [209.85.210.180]) by fiordland.canonical.com (Postfix) with ESMTP id A36DCA18F92 for ; Tue, 20 Nov 2012 09:03:09 +0000 (UTC) Received: by mail-ia0-f180.google.com with SMTP id t4so1567421iag.11 for ; Tue, 20 Nov 2012 01:03:09 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-forwarded-to:x-forwarded-for:delivered-to:received-spf:from:to:cc :subject:date:message-id:x-mailer:x-gm-message-state; bh=9s0KwqyCt64cfdOWmR4p/aUp/gT72Vlfyk1PsMP2mXg=; b=Us2qNu6vlY+IdOvamLOw8Opbh5Dud0wNmUZBJqHAmKQjDR+bs8kdLP2VJgULm0BQdJ MmLL5ZA64AQ1F+VJobbOu5QCWa0L6hrtMG0uMKCuIwdz97PMcS+4TNCCx7kuzx94UPMU 5BiJHSvx8X8GnbuIgdl6x66jMtKwjw7aKeDe/3t/3NOzLHu7ul/oSFItPlgBwX+z/K8F gMIfj6aLSUa/mm+8f2NgxDugmibmjzBBbBehiQ9eOKyaNtkbN75YYg5HGLDSXAP6xjhD Oq0jakYxTLfkA47fgUFn+ToJ7gWJ/xZ/DIYDDXf+/6th2pyUFzKditf8Lhz2pM1ermTl duww== Received: by 10.50.213.69 with SMTP id nq5mr9190656igc.70.1353402189011; Tue, 20 Nov 2012 01:03:09 -0800 (PST) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.50.67.148 with SMTP id n20csp289184igt; Tue, 20 Nov 2012 01:03:08 -0800 (PST) Received: by 10.66.87.130 with SMTP id ay2mr6172790pab.58.1353402188286; Tue, 20 Nov 2012 01:03:08 -0800 (PST) Received: from mail-pa0-f53.google.com (mail-pa0-f53.google.com [209.85.220.53]) by mx.google.com with ESMTPS id xj3si17403156pbc.322.2012.11.20.01.03.07 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 01:03:08 -0800 (PST) Received-SPF: neutral (google.com: 209.85.220.53 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) client-ip=209.85.220.53; Authentication-Results: mx.google.com; spf=neutral (google.com: 209.85.220.53 is neither permitted nor denied by best guess record for domain of sachin.kamat@linaro.org) smtp.mail=sachin.kamat@linaro.org Received: by mail-pa0-f53.google.com with SMTP id hz1so585302pad.12 for ; Tue, 20 Nov 2012 01:03:07 -0800 (PST) Received: by 10.68.189.233 with SMTP id gl9mr46271620pbc.166.1353402187677; Tue, 20 Nov 2012 01:03:07 -0800 (PST) Received: from localhost.localdomain ([115.113.119.130]) by mx.google.com with ESMTPS id k9sm7745388paz.22.2012.11.20.01.03.04 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 20 Nov 2012 01:03:07 -0800 (PST) From: Sachin Kamat To: devel@driverdev.osuosl.org Cc: rgujare@ozmodevices.com, ckelly@ozmodevices.com, gregkh@linuxfoundation.org, sachin.kamat@linaro.org, patches@linaro.org Subject: [PATCH 1/1] staging: ozwpan: Include oz_events_clear() conditionally Date: Tue, 20 Nov 2012 14:26:58 +0530 Message-Id: <1353401818-13967-1-git-send-email-sachin.kamat@linaro.org> X-Mailer: git-send-email 1.7.4.1 X-Gm-Message-State: ALoCoQmpLy/Lfqvo5dOl8OHoi+mT6lO57omtDI6hPn1pDnUuXnSNTwMgjJg0HWEl9l9ePjw1RlL6 oz_events_clear() is referenced only when CONFIG_DEBUG_FS is defined. Move the definition too under this flag. Signed-off-by: Sachin Kamat Acked-by: Rupesh Gujare --- drivers/staging/ozwpan/ozevent.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/drivers/staging/ozwpan/ozevent.c b/drivers/staging/ozwpan/ozevent.c index a48498b..50578ba 100644 --- a/drivers/staging/ozwpan/ozevent.c +++ b/drivers/staging/ozwpan/ozevent.c @@ -79,6 +79,7 @@ void oz_event_log2(u8 evt, u8 ctx1, u16 ctx2, void *ctx3, unsigned ctx4) /*------------------------------------------------------------------------------ * Context: process */ +#ifdef CONFIG_DEBUG_FS static void oz_events_clear(struct oz_evtdev *dev) { unsigned long irqstate; @@ -88,7 +89,6 @@ static void oz_events_clear(struct oz_evtdev *dev) dev->missed_events = 0; spin_unlock_irqrestore(&dev->lock, irqstate); } -#ifdef CONFIG_DEBUG_FS /*------------------------------------------------------------------------------ * Context: process */