From patchwork Wed Jan 20 12:23:04 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 570679 X-Patchwork-Delegate: bmeng.cn@gmail.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id 7C1DE1402C0 for ; Wed, 20 Jan 2016 23:22:54 +1100 (AEDT) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DC6ED4BB7C; Wed, 20 Jan 2016 13:22:51 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id g-IlNaMSrFvw; Wed, 20 Jan 2016 13:22:51 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 40E3C4BB6D; Wed, 20 Jan 2016 13:22:51 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 7410C4BB6D for ; Wed, 20 Jan 2016 13:22:46 +0100 (CET) Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Vdcx2INefnis for ; Wed, 20 Jan 2016 13:22:46 +0100 (CET) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-yk0-f194.google.com (mail-yk0-f194.google.com [209.85.160.194]) by theia.denx.de (Postfix) with ESMTPS id 0CE144BB3D for ; Wed, 20 Jan 2016 13:22:43 +0100 (CET) Received: by mail-yk0-f194.google.com with SMTP id k129so536352yke.3 for ; Wed, 20 Jan 2016 04:22:43 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:subject:date:message-id; bh=3pZ6+UelojY+d1/JGNcYYAwk6Q5g1iDgFjd5jbo1+7k=; b=IrcPyr6Etp87XYSGWtUMljCqPjRxneDnS6ubwN5JBIi5yQbZXOgereWYO5UBqk/vpn TFhmwE31pN/T2eIrBcOS6KIri/gjSwI4bfRbFg3xrg/FkAbXQV99hc0Zxy1lK/HaMD4L qYrlkT4E6A3ypIS8PmYMgnlWdW4Lv/NXxTR8046EyDN94ddEVVObrNGyq1ap8Zlq36xa IERTNGDW0jC9AdYvkJsG2w8xZO4jEmCge2o1TKGoiCHTSIeMrZnjJJaw4Et80TBk/jes el5M+xBvFvXflNGdav/cFGDvUs3MFEX6RTDAwiZYjTagGBupJaY0E/gJ5a/QOXRVzNg9 RrYw== X-Gm-Message-State: ALoCoQk1NC14eTjvOB4jNorX2Gh8/Q15fFVZITqElmQsIoQIVp6R1/HHlYb4SuBXyLxrNLPf574xP0B9chU3LPC5wJ1IWyJQaQ== X-Received: by 10.37.45.6 with SMTP id t6mr10903053ybt.112.1453292562125; Wed, 20 Jan 2016 04:22:42 -0800 (PST) Received: from localhost.localdomain (cpe-75-180-230-22.ec.res.rr.com. [75.180.230.22]) by smtp.gmail.com with ESMTPSA id n4sm25085546ywn.18.2016.01.20.04.22.41 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Wed, 20 Jan 2016 04:22:41 -0800 (PST) From: Tom Rini To: u-boot@lists.denx.de Date: Wed, 20 Jan 2016 07:23:04 -0500 Message-Id: <1453292585-27710-1-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.7.9.5 Subject: [U-Boot] [PATCH 1/2] common/console.c: Remove unused inline functions X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" clang-3.8 reports that these functions are unused, remove them. Signed-off-by: Tom Rini Reviewed-by: Bin Meng --- common/console.c | 48 ------------------------------------------------ 1 file changed, 48 deletions(-) diff --git a/common/console.c b/common/console.c index bc37b6d..b3f5fdc 100644 --- a/common/console.c +++ b/common/console.c @@ -227,11 +227,6 @@ static void console_puts(int file, const char *s) } } -static inline void console_printdevs(int file) -{ - iomux_printdevs(file); -} - static inline void console_doenv(int file, struct stdio_dev *dev) { iomux_doenv(file, dev->name); @@ -265,11 +260,6 @@ static inline void console_puts(int file, const char *s) stdio_devices[file]->puts(stdio_devices[file], s); } -static inline void console_printdevs(int file) -{ - printf("%s\n", stdio_devices[file]->name); -} - static inline void console_doenv(int file, struct stdio_dev *dev) { console_setfile(file, dev); @@ -653,44 +643,6 @@ void clear_ctrlc(void) ctrlc_was_pressed = 0; } -#ifdef CONFIG_MODEM_SUPPORT_DEBUG -char screen[1024]; -char *cursor = screen; -int once = 0; -inline void dbg(const char *fmt, ...) -{ - va_list args; - uint i; - char printbuffer[CONFIG_SYS_PBSIZE]; - - if (!once) { - memset(screen, 0, sizeof(screen)); - once++; - } - - va_start(args, fmt); - - /* For this to work, printbuffer must be larger than - * anything we ever want to print. - */ - i = vsnprintf(printbuffer, sizeof(printbuffer), fmt, args); - va_end(args); - - if ((screen + sizeof(screen) - 1 - cursor) - < strlen(printbuffer) + 1) { - memset(screen, 0, sizeof(screen)); - cursor = screen; - } - sprintf(cursor, printbuffer); - cursor += strlen(printbuffer); - -} -#else -static inline void dbg(const char *fmt, ...) -{ -} -#endif - /** U-Boot INIT FUNCTIONS *************************************************/ struct stdio_dev *search_device(int flags, const char *name)