Message ID | 20190930144112.175618-36-sjg@chromium.org |
---|---|
State | Changes Requested |
Delegated to: | Tom Rini |
Headers | show
Return-Path: <u-boot-bounces@lists.denx.de> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=<UNKNOWN>) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.b="BkZdK7Zn"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 46hlzK71hvz9s7T for <incoming@patchwork.ozlabs.org>; Tue, 1 Oct 2019 01:03:57 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 89405C21E4E; Mon, 30 Sep 2019 14:53:43 +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_MSPIKE_H2, T_DKIM_INVALID 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 ADF2CC21F24; Mon, 30 Sep 2019 14:42:26 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id E4734C21E53; Mon, 30 Sep 2019 14:42:02 +0000 (UTC) Received: from mail-io1-f66.google.com (mail-io1-f66.google.com [209.85.166.66]) by lists.denx.de (Postfix) with ESMTPS id DB97AC21E7D for <u-boot@lists.denx.de>; Mon, 30 Sep 2019 14:41:47 +0000 (UTC) Received: by mail-io1-f66.google.com with SMTP id n197so38888900iod.9 for <u-boot@lists.denx.de>; Mon, 30 Sep 2019 07:41:47 -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=dYoaHKyJJZtcoXPdEITg8146ny+kCTEpodVYbKflyIw=; b=BkZdK7Zndx0oALgpJP4V5avTrQpwMO05xbh1A+NA+kNh94KhBEVH3y7oF3xBufiKu6 E3nmejZhEsb+Zfr1fTvLWkh16PtOWsBdZksDupCVXrizAcmptw1pReUDcIcDjOeDnCt3 dFfvgDDc6c8gNAFx+HYKI8GspfYUhu/yFtpR0= 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=dYoaHKyJJZtcoXPdEITg8146ny+kCTEpodVYbKflyIw=; b=J8G7aabcwwMrSr+Zhd/u9iW7K5dZrtH9TEEOPXXq5NwjY6HKv8wgN/WNOnE3X2YbeM bp3yLboKUsFVI2ihSoulmm3Pza1Y40erKJV+H3eMoz2PwJisyMTQ//TlZ+9KIsrNFk1x Ia1cYdllQ3tSKhJOwDmmpjnj60TTX70LQ5KUwnCgMEXn/od8PL/ofIVDNYkkwPqdiCVS 9CTt47tv/038JQjxKNzKRU5bXddwYz6K2aDu7qFjXSD6BQUhYLoCVR0P8IxLwTuTatRg MYRBAOdaVxiw6uAGbWtii9BmqlQ46VXN5ynuRMEi0YrD1mCQUZFLHOJd/SbTkf6R0W92 LkHg== X-Gm-Message-State: APjAAAXBEFSw1P1Efry1wT0Tc9VdgMoebiRVqnuKJt5oFJuvDD3Ja+M0 ovqMBuB9OPIoyOfoX/Wh+EfIbx0vsO8= X-Google-Smtp-Source: APXvYqxX9lrd0mb9RAeK5+5TFXOFCypLJK59MvPgoT2OlmL4j0n0ipe7Vut+3m3om5RIkBFGTRGSOw== X-Received: by 2002:a6b:6f0e:: with SMTP id k14mr17651707ioc.255.1569854506731; Mon, 30 Sep 2019 07:41:46 -0700 (PDT) Received: from kiwi.bld.corp.google.com ([2620:15c:183:0:8223:87c:a681:66aa]) by smtp.gmail.com with ESMTPSA id c4sm5892885ioa.70.2019.09.30.07.41.45 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 30 Sep 2019 07:41:46 -0700 (PDT) From: Simon Glass <sjg@chromium.org> To: U-Boot Mailing List <u-boot@lists.denx.de> Date: Mon, 30 Sep 2019 08:41:06 -0600 Message-Id: <20190930144112.175618-36-sjg@chromium.org> X-Mailer: git-send-email 2.23.0.444.g18eeb5a265-goog In-Reply-To: <20190930144112.175618-1-sjg@chromium.org> References: <20190930144112.175618-1-sjg@chromium.org> MIME-Version: 1.0 Cc: Tom Rini <trini@konsulko.com> Subject: [U-Boot] [PATCH 35/41] common: Drop board_show_dram() X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 Precedence: list List-Id: U-Boot discussion <u-boot.lists.denx.de> List-Unsubscribe: <https://lists.denx.de/options/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=unsubscribe> List-Archive: <http://lists.denx.de/pipermail/u-boot/> List-Post: <mailto:u-boot@lists.denx.de> List-Help: <mailto:u-boot-request@lists.denx.de?subject=help> List-Subscribe: <https://lists.denx.de/listinfo/u-boot>, <mailto:u-boot-request@lists.denx.de?subject=subscribe> Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: base64 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" <u-boot-bounces@lists.denx.de> |
Series |
common: Further reduce common.h
|
expand
|
diff --git a/cmd/mem.c b/cmd/mem.c index c6b8038fc9d..545534b1fc7 100644 --- a/cmd/mem.c +++ b/cmd/mem.c @@ -1212,16 +1212,11 @@ U_BOOT_CMD( #endif #ifdef CONFIG_CMD_MEMINFO -__weak void board_show_dram(phys_size_t size) -{ - puts("DRAM: "); - print_size(size, "\n"); -} - static int do_mem_info(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) { - board_show_dram(gd->ram_size); + puts("DRAM: "); + print_size(gd->ram_size, "\n"); return 0; } diff --git a/include/common.h b/include/common.h index 5bd778a4f46..16d4b0612f8 100644 --- a/include/common.h +++ b/include/common.h @@ -73,15 +73,6 @@ extern u8 __dtb_dt_begin[]; /* embedded device tree blob */ extern u8 __dtb_dt_spl_begin[]; /* embedded device tree blob for SPL/TPL */ int mdm_init(void); -/** - * Show the DRAM size in a board-specific way - * - * This is used by boards to display DRAM information in their own way. - * - * @param size Size of DRAM (which should be displayed along with other info) - */ -void board_show_dram(phys_size_t size); - /** * Get the uppermost pointer that is valid to access *
This function is not defined by any boards so the feature is not used. Drop it. Signed-off-by: Simon Glass <sjg@chromium.org> --- cmd/mem.c | 9 ++------- include/common.h | 9 --------- 2 files changed, 2 insertions(+), 16 deletions(-)