From patchwork Sun May 10 20:16:42 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1287330 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=85.214.62.61; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=Wi3sQE8Z; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49KwSb3vlYz9sNH for ; Mon, 11 May 2020 06:21:19 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 986AB81585; Sun, 10 May 2020 22:18:09 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="Wi3sQE8Z"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 314CE812FB; Sun, 10 May 2020 22:17:32 +0200 (CEST) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,SPF_HELO_NONE,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-il1-x143.google.com (mail-il1-x143.google.com [IPv6:2607:f8b0:4864:20::143]) (using TLSv1.3 with cipher TLS_AES_128_GCM_SHA256 (128/128 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id E7985801A9 for ; Sun, 10 May 2020 22:17:28 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=chromium.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=sjg@chromium.org Received: by mail-il1-x143.google.com with SMTP id x2so6494145ilp.13 for ; Sun, 10 May 2020 13:17:28 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=HPlPs5vio29tDsHj50SoF5tda9+lhfYZXm1VhGPIKaY=; b=Wi3sQE8Z9nbiXruMnSsFtU+o5TOMAk1SDizOz7y5v4brdAIt82OV+NO6On2hUm9Q8C wRCfgMsd4gQUa92dFGQ0rqdKcPfeljmIA14iW0oI8sVk9xt2N7rGVb11BxRnbesS1/8m C0hV3GN/jIB/qtv8B3mieLKycvCV6Mn6nA//Y= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=HPlPs5vio29tDsHj50SoF5tda9+lhfYZXm1VhGPIKaY=; b=IEgW9TVMHgj3RC1EB7BytsroNvqwS9szCi6ESZEunURQ3FwvHVx0Cn1UQ+amJP10lK tsBwr3fIpU8RFpz+4xEis21DlVGvlhw82hBtgmz+04f8lmQWZQd9784h7qgTIABpVkD/ DR49zJcY8GC7J4H+D4OgmWKoI3tok8H1SgHOxQ5P090ReXggGnCXfTK8f6kJfdUjrpNU BWvf2Trc8o9XGAh6zphemFBTYzSsv2qyFUy0TBevwZCOHmfetlnTPoZRtP5GTl5DeTge Ldw/Ae1Q56DVBCaQbFCHAbpIS6lm8Kqnf+VH/Xtotfo0ldy9LPtRJuejoC7gQ4tKflA5 F5LQ== X-Gm-Message-State: AGi0PubQyE19pKtvRN+GqHzWNqpDlVEs1+K3j7G3OPXWjlPkYRolGe7C 54j0JFtIRTFx7qZtnwl2bzYCjA/Npt0= X-Google-Smtp-Source: APiQypLVsCkrDblAcCShV0DiXHaDHG39ezJvIGWFRosNC0qHO2mhHNLYTQUMFpk4TDt4kwLFHCtvCg== X-Received: by 2002:a92:d98c:: with SMTP id r12mr13455231iln.224.1589141847710; Sun, 10 May 2020 13:17:27 -0700 (PDT) Received: from localhost.localdomain (c-73-14-175-90.hsd1.co.comcast.net. [73.14.175.90]) by smtp.gmail.com with ESMTPSA id s22sm3662176iow.40.2020.05.10.13.17.27 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 10 May 2020 13:17:27 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Bin Meng , Stefan Roese , Tom Rini , Daniel Schwierzeck , Simon Glass Subject: [PATCH v2 19/39] bdinfo: Drop unused __maybe_unused Date: Sun, 10 May 2020 14:16:42 -0600 Message-Id: <20200510201702.196031-11-sjg@chromium.org> X-Mailer: git-send-email 2.26.2.645.ge9eca65c58-goog In-Reply-To: <20200510201702.196031-1-sjg@chromium.org> References: <20200510201702.196031-1-sjg@chromium.org> MIME-Version: 1.0 X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.30rc1 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" X-Virus-Scanned: clamav-milter 0.102.2 at phobos.denx.de X-Virus-Status: Clean Some of these are not needed now. Drop them to avoid cluttering the code. Signed-off-by: Simon Glass Reviewed-by: Bin Meng --- Changes in v2: - Drop __maybe_unused on print_lnum() too cmd/bdinfo.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/cmd/bdinfo.c b/cmd/bdinfo.c index 13b4f2ebba..d41547ec6e 100644 --- a/cmd/bdinfo.c +++ b/cmd/bdinfo.c @@ -15,12 +15,11 @@ DECLARE_GLOBAL_DATA_PTR; -__maybe_unused void print_cpu_word_size(void) +void print_cpu_word_size(void) { printf("%-12s= %u-bit\n", "Build", (uint)sizeof(void *) * 8); } -__maybe_unused static void print_num(const char *name, ulong value) { printf("%-12s= 0x%0*lx\n", name, 2 * (int)sizeof(value), value); @@ -61,13 +60,11 @@ static void print_eths(void) } #endif -__maybe_unused static void print_lnum(const char *name, unsigned long long value) { printf("%-12s= 0x%.8llX\n", name, value); } -__maybe_unused static void print_mhz(const char *name, unsigned long hz) { char buf[32]; @@ -160,7 +157,7 @@ static inline void print_baudrate(void) #endif } -static inline void __maybe_unused print_std_bdinfo(const bd_t *bd) +static inline void print_std_bdinfo(const bd_t *bd) { print_bi_boot_params(bd); print_bi_mem(bd);