From patchwork Sat Oct 3 19:45:35 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: Ezequiel Garcia X-Patchwork-Id: 7322381 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork2.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork2.web.kernel.org (Postfix) with ESMTP id 7B464BEEA4 for ; Sat, 3 Oct 2015 19:49:50 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id A215220685 for ; Sat, 3 Oct 2015 19:49:49 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 88DA220680 for ; Sat, 3 Oct 2015 19:49:48 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751034AbbJCTtr (ORCPT ); Sat, 3 Oct 2015 15:49:47 -0400 Received: from mail-qg0-f49.google.com ([209.85.192.49]:33246 "EHLO mail-qg0-f49.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751070AbbJCTtq (ORCPT ); Sat, 3 Oct 2015 15:49:46 -0400 Received: by qgev79 with SMTP id v79so120562195qge.0 for ; Sat, 03 Oct 2015 12:49:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-type:content-transfer-encoding; bh=JAjMX3+Ep3ackMllRNlnV9P/C4ON1a/VxWZ54BGaETA=; b=AocR4IRSU+p5OobPjaHxBOJVGqb+5mMUpQzHfFvepwQIT2shyQ7R9ZTEDyLfJFpqGz ONWa4qZQmur4d7WmnTPkPkzZos9nMm81cP8qcYM6EfibmMp0N5nvIeUB/FldoDOug+DY EGye+3l3vm85SIZ3+7Ugmrae667YQaTF7W1jEbIOBPgdL0vlDk0nGw0OzXzMLUbY+So5 iWApo9NOodegRlgyhXbg4I4fGAZOhPEOC02fgIKT2LzdnaieE9kM0rlzeostqGMspMz0 X+WoCNtAO9S+BMwvDOL0NupwRoqT9cJalUXVJ/tSR4SP+Z2AYSBX8TD9O3M5vSyJC9y4 FZZw== X-Gm-Message-State: ALoCoQmY2188nrtMrD2/z3V22d1yOrMXZpTmnYXdCwj3q9HZQnL24Q0lLM6I7/YZSDzyQTN7VqBi X-Received: by 10.140.232.73 with SMTP id d70mr29903001qhc.72.1443901786024; Sat, 03 Oct 2015 12:49:46 -0700 (PDT) Received: from localhost.localdomain ([190.2.108.156]) by smtp.gmail.com with ESMTPSA id a41sm6663221qka.15.2015.10.03.12.49.43 (version=TLSv1.2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 03 Oct 2015 12:49:44 -0700 (PDT) From: Ezequiel Garcia To: Greg Kroah-Hartman , jslaby@suse.com Cc: , linux-serial@vger.kernel.org, Ezequiel Garcia , =?UTF-8?q?Guido=20Mart=C3=ADnez?= Subject: [PATCH] serial: omap: remove warnings about unused functions Date: Sat, 3 Oct 2015 16:45:35 -0300 Message-Id: <1443901535-21316-1-git-send-email-ezequiel@vanguardiasur.com.ar> X-Mailer: git-send-email 2.5.2 MIME-Version: 1.0 Sender: linux-omap-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-omap@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham 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 They're used by only if CONFIG_PM is enabled, so enclose them with proper ifdefs. Removes these warnings: drivers/tty/serial/omap-serial.c:202:12: warning: 'serial_omap_get_context_loss_count' defined but not used [-Wunused-function] drivers/tty/serial/omap-serial.c:213:13: warning: 'serial_omap_enable_wakeup' defined but not used [-Wunused-function] Signed-off-by: Guido Martínez Signed-off-by: Ezequiel Garcia --- drivers/tty/serial/omap-serial.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index 7a2172b5e93c..9d4c84f7485f 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -199,6 +199,7 @@ static inline void serial_omap_clear_fifos(struct uart_omap_port *up) serial_out(up, UART_FCR, 0); } +#ifdef CONFIG_PM static int serial_omap_get_context_loss_count(struct uart_omap_port *up) { struct omap_uart_port_info *pdata = dev_get_platdata(up->dev); @@ -219,6 +220,7 @@ static void serial_omap_enable_wakeup(struct uart_omap_port *up, bool enable) pdata->enable_wakeup(up->dev, enable); } +#endif /* CONFIG_PM */ /* * Calculate the absolute difference between the desired and actual baud