From patchwork Wed Jan 13 20:59:23 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arnd Bergmann X-Patchwork-Id: 101174 Delivered-To: patch@linaro.org Received: by 10.112.130.2 with SMTP id oa2csp3602632lbb; Wed, 13 Jan 2016 13:00:05 -0800 (PST) X-Received: by 10.66.180.48 with SMTP id dl16mr387144pac.39.1452718805483; Wed, 13 Jan 2016 13:00:05 -0800 (PST) Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id kw9si4214242pab.63.2016.01.13.13.00.05; Wed, 13 Jan 2016 13:00:05 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-serial-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-serial-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1750791AbcAMVAE (ORCPT + 1 other); Wed, 13 Jan 2016 16:00:04 -0500 Received: from mout.kundenserver.de ([212.227.126.135]:57061 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750760AbcAMVAB (ORCPT ); Wed, 13 Jan 2016 16:00:01 -0500 Received: from wuerfel.localnet ([134.3.118.24]) by mrelayeu.kundenserver.de (mreue003) with ESMTPSA (Nemesis) id 0MRQIm-1am5Cg1EHQ-00SdvS; Wed, 13 Jan 2016 21:59:26 +0100 From: Arnd Bergmann To: linux-serial@vger.kernel.org Cc: gregkh@linuxfoundation.org, Jiri Slaby , linux-kernel@vger.kernel.org, Denys Vlasenko , Peter Hurley , linux-arm-kernel@lists.infradead.org, linux-omap@vger.kernel.org Subject: [PATCH] serial/omap: mark wait_for_xmitr as __maybe_unused Date: Wed, 13 Jan 2016 21:59:23 +0100 Message-ID: <4282250.XA5neaP6kR@wuerfel> User-Agent: KMail/4.11.5 (Linux/3.16.0-10-generic; KDE/4.11.5; x86_64; ; ) MIME-Version: 1.0 X-Provags-ID: V03:K0:VQ/G/jRy/9CWJGLDLyB1e9I1mlA95Q+PIZ97s+VS5QZNnqWBa1t 90Iu6bmhohID6HpCyh032a5MFoS6SCEyOyg8+6+FeRrvVIoxK5r1u/Mw2zrCe29MFdCoaGE y0YhPitr73JlYNT6XImCMUF7NG/dTw04Z7NuAuW+AYg4MRd0kqhj2emfocc+uyVhRqbw4Kb Ok97EYd6aT7nycuuJ1zrg== X-UI-Out-Filterresults: notjunk:1; V01:K0:nI5mnVQRxFA=:7C3IDx/QNLQ1HFqhLDABps fH0MRE02AGtZfHUlHg3L/XvF1PY6x3k/ZL2kqCR0cIY1Q50ot/OfEFf/qe6DbYXdmKe5B+Xg6 hQmS711DBTFPl4F1KTn0OgDJJ5+tADauuS/QS+F/iR0ixHYTCse323FtPu8CjsKHxvxHUtyCi h6WHFY0tUgfmsXjoBP+ZLJVuqMKksrUjMlay9jzfDlYZ1DSluANKa86gT0OqkPmvPI0IeiFaz XU7LiTMS+VqN5BN6OdBLsAqC1ahVh2le8G83AxYYQxjliTHHkn19d1r5WU/tSicdEQ7FKJTih DVll+6XG6Qy/PwLfUy2JR90POsDCQv71BTTirPQ6+3aU3GmEdiZchaMlWPRe1jUUpaiUzUZ76 a5kPldU3h+9Cg/tDcA7jaI/apYWZAkclRhSXpMFvAgct3ohEC38FHXsEpswJgjk0+7yll6/Bs HtwsIgVTyydtHl+nhN+qyd1v0DRf+wATOT2cON9judohsb4A5p0zSPLJOxi6K38c/VZTrbh9G zKYkUfbEc2ySaMNRWrM/KhIlPtUpA3JHhqdSzdTppEgJohuKJeQojYYcXba1W6ufNWw325pvs puB8tBbySuTYjWR21aa9o8VOfvebvJKPFGHQ9t2DgJuUySvESY90NuNOlr7k8yCdYklxDLo7l t+5aBEjh6jvHI2e9T7KxG151b8az2Fli7NkDAUmmvJfCbnMMNDJxO8JF8cgB2YzXQ7ot4C4MJ PylPtd9Q/NEYYhKR Sender: linux-serial-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-serial@vger.kernel.org The wait_for_xmitr() function is only used if CONFIG_CONSOLE_POLL or CONFIG_SERIAL_OMAP_CONSOLE are set, but when both are disabled, the compiler warns about it being unused: drivers/tty/serial/omap-serial.c:1168:13: warning: 'wait_for_xmitr' defined but not used [-Wunused-func We could add more #ifdefs to work around it, but adding __maybe_unused seems nicer. Signed-off-by: Arnd Bergmann Fixes: 2172076d2399 ("serial/omap-serial: Deinline wait_for_xmitr, save 165 bytes") -- To unsubscribe from this list: send the line "unsubscribe linux-serial" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/tty/serial/omap-serial.c b/drivers/tty/serial/omap-serial.c index b645f9228ed7..1434c7febc99 100644 --- a/drivers/tty/serial/omap-serial.c +++ b/drivers/tty/serial/omap-serial.c @@ -1165,7 +1165,7 @@ serial_omap_type(struct uart_port *port) #define BOTH_EMPTY (UART_LSR_TEMT | UART_LSR_THRE) -static void wait_for_xmitr(struct uart_omap_port *up) +static void __maybe_unused wait_for_xmitr(struct uart_omap_port *up) { unsigned int status, tmout = 10000;