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: 8028091 Return-Path: X-Original-To: patchwork-linux-omap@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 2184B9F6FA for ; Wed, 13 Jan 2016 21:00:22 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 58C7D2051A for ; Wed, 13 Jan 2016 21:00:21 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 75A2B204FF for ; Wed, 13 Jan 2016 21:00:20 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751074AbcAMVAE (ORCPT ); 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-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, 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 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-omap" 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;