From patchwork Wed May 10 19:20:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Tom Rini X-Patchwork-Id: 760791 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3wNQyl0Jv4z9s86 for ; Thu, 11 May 2017 05:19:10 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id BC823C21E02; Wed, 10 May 2017 19:18:56 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id AD0CCC21C5F; Wed, 10 May 2017 19:18:40 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8D60DC21C5F; Wed, 10 May 2017 19:18:37 +0000 (UTC) Received: from mail-yw0-f195.google.com (mail-yw0-f195.google.com [209.85.161.195]) by lists.denx.de (Postfix) with ESMTPS id 119CDC21BE5 for ; Wed, 10 May 2017 19:18:37 +0000 (UTC) Received: by mail-yw0-f195.google.com with SMTP id 17so378305ywk.1 for ; Wed, 10 May 2017 12:18:37 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references; bh=Bq7M5YjSLmYb7/gOsF6tfIL27gS+acr3QbIKshBVM3A=; b=ahYUJj48Gr5ymLV1bFTVaW3IGQnNJE/8Cdun9i0ZCL4LOz1d9mG5c8r0DTRtcQG1gr /rigFFOP5KOO8CpSlVmSLV5aThCmsExaFVYobJ2G3yo0gXE3MMZGAsuE7kpZGFT9zEFQ DV+GoOkI+7+HKLpqXQ1n5tLJpyXQbiPN1TR/AnbCzo5wu0KD3pSdrtzrWnUu02gDRoGN nPfhKP8UlBzFx3HrjuUEZ39N5hz599UxwOp/PIS/rhvZq12U+bhFuji8B5HXRWT1oGt7 YSrlLs8mAQx5haVyAAlO2odyGBtDL29dR+ty7ydn4XrLyjKplU7hztBfrlfSnEAbzn0q TrMw== X-Gm-Message-State: AODbwcDhNpJpJfAnbHKCk3i4pToxDIPzOemORhIeQAmlYdL0apBOIwAr 3uFXbgL8BOAUJGEp X-Received: by 10.129.181.83 with SMTP id c19mr6244535ywk.304.1494443915970; Wed, 10 May 2017 12:18:35 -0700 (PDT) Received: from localhost.localdomain (cpe-75-180-228-133.ec.res.rr.com. [75.180.228.133]) by smtp.gmail.com with ESMTPSA id v77sm2011306ywc.6.2017.05.10.12.18.34 for (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Wed, 10 May 2017 12:18:34 -0700 (PDT) From: Tom Rini To: u-boot@lists.denx.de Date: Wed, 10 May 2017 15:20:12 -0400 Message-Id: <1494444018-2748-2-git-send-email-trini@konsulko.com> X-Mailer: git-send-email 1.9.1 In-Reply-To: <1494444018-2748-1-git-send-email-trini@konsulko.com> References: <1494444018-2748-1-git-send-email-trini@konsulko.com> Subject: [U-Boot] [PATCH 2/8] cmd/bdinfo.c: Fix unused function warning X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" On most architectures we do not call print_std_bdinfo() so mark it with __maybe_unused. Reported by clang-3.8. Signed-off-by: Tom Rini --- cmd/bdinfo.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index ff3cce05f989..41ab8e8089fa 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -157,7 +157,7 @@ static inline void print_baudrate(void) #endif } -static inline void print_std_bdinfo(const bd_t *bd) +static inline void __maybe_unused print_std_bdinfo(const bd_t *bd) { print_bi_boot_params(bd); print_bi_mem(bd);