From patchwork Sun Aug 20 15:20:00 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Marek Vasut X-Patchwork-Id: 803752 X-Patchwork-Delegate: sr@denx.de Return-Path: 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=) Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="aMLecp+4"; dkim-atps=neutral Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xb0tQ1JWVz9sMN for ; Mon, 21 Aug 2017 01:22:22 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id D826CC220A0; Sun, 20 Aug 2017 15:22:17 +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=FREEMAIL_FROM, RCVD_IN_DNSWL_NONE, 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 ABA09C22028; Sun, 20 Aug 2017 15:22:15 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 8510BC2209E; Sun, 20 Aug 2017 15:20:48 +0000 (UTC) Received: from mail-wr0-f193.google.com (mail-wr0-f193.google.com [209.85.128.193]) by lists.denx.de (Postfix) with ESMTPS id 7F747C2206F for ; Sun, 20 Aug 2017 15:20:48 +0000 (UTC) Received: by mail-wr0-f193.google.com with SMTP id k10so1009931wre.5 for ; Sun, 20 Aug 2017 08:20:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=ypq0cK+J5/Pm1VLDzVOP6dCiTI14naDaCUxB+Hbe0NU=; b=aMLecp+4AYo45lrDunDVqBT2AiN16ux9jBdMlCLoucrOFWiBXaK/G+cpqxOqQoUlhT +dEdyTgVPgwYDmXzB4qsjwzSXsrsWt2cqvmH0RmydEJts0/nQ4ItVNcErsFYLQlLBQOI sM0ZxvlQXvKWuj97Ixf/pmrW4MeA817jZ0C6RNEYXcBESBjML3jfBnPnRPddk/a708ge vumnlJLVGEizIPXKQCnWOSwJQzHKujGhSE7cOzJqYs1V8+lH2wZceCUXeESogavQ+hsM otkD+oNHrFGDMx4X213XhTBAeYCIe3xiUmvtSu/7B5wnZTvQo0NfNwRCL9bppgHJ+lCH uhew== 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; bh=ypq0cK+J5/Pm1VLDzVOP6dCiTI14naDaCUxB+Hbe0NU=; b=MiJp847fUEl5Gfgu77qcwmbjZQ0hJvZyUeS5HiaH5wpzH44PTFe/h/07W1V90adpWZ fIicIoupztifWYUS/rtUNQbHPpqKSCRZmUDwcwuudLggY1kcvxZHMfjUc9e7VYb62qOm JYYDt/a4St3d363loLnttF42gl8jEyPpi7AxoxGO9t+KAvATN2ghbFce7gCFI1EPUYzE vnUkqGdRBv+93WJs+OUEe9bnnELdNIAFDCZxxTngPLrdlToEcccfm2UWdExZbYvot1i2 b+q1lTjZFOXPz1NX2N9DDgksok5rPuyqMk9IRrgsCkx/KHTU4Tv+deFIXxjcw5AVddPU ZP+w== X-Gm-Message-State: AHYfb5iLpGFT/MYzSImyVDtokIIQRNTvAyJ6YfwNHc8DPr0q4QoRiRBp H4ymYIlyX04Z7ZETqNc= X-Received: by 10.28.156.129 with SMTP id f123mr5376036wme.177.1503242447801; Sun, 20 Aug 2017 08:20:47 -0700 (PDT) Received: from kurokawa.lan (ip-86-49-107-50.net.upcbroadband.cz. [86.49.107.50]) by smtp.gmail.com with ESMTPSA id a70sm5214572wma.32.2017.08.20.08.20.46 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 20 Aug 2017 08:20:47 -0700 (PDT) From: Marek Vasut X-Google-Original-From: Marek Vasut To: u-boot@lists.denx.de Date: Sun, 20 Aug 2017 17:20:00 +0200 Message-Id: <20170820152000.15906-1-marek.vasut+renesas@gmail.com> X-Mailer: git-send-email 2.11.0 Cc: Stefan Roese , Marek Vasut Subject: [U-Boot] [PATCH] mtd: cfi: staticize functions 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" Staticize a few functions and variables which are no longer exposed. Signed-off-by: Marek Vasut Cc: Stefan Roese --- drivers/mtd/cfi_flash.c | 8 ++++---- include/flash.h | 5 ----- include/mtd/cfi_flash.h | 2 -- 3 files changed, 4 insertions(+), 11 deletions(-) diff --git a/drivers/mtd/cfi_flash.c b/drivers/mtd/cfi_flash.c index 8b5a653d22..df04a425e2 100644 --- a/drivers/mtd/cfi_flash.c +++ b/drivers/mtd/cfi_flash.c @@ -176,7 +176,7 @@ __maybe_weak u64 flash_read64(void *addr) /*----------------------------------------------------------------------- */ #if defined(CONFIG_ENV_IS_IN_FLASH) || defined(CONFIG_ENV_ADDR_REDUND) || (CONFIG_SYS_MONITOR_BASE >= CONFIG_SYS_FLASH_BASE) -flash_info_t *flash_get_info(ulong base) +static flash_info_t *flash_get_info(ulong base) { int i; flash_info_t *info; @@ -353,8 +353,8 @@ static ulong flash_read_long (flash_info_t * info, flash_sect_t sect, /* * Write a proper sized command to the correct address */ -void flash_write_cmd (flash_info_t * info, flash_sect_t sect, - uint offset, u32 cmd) +static void flash_write_cmd(flash_info_t *info, flash_sect_t sect, + uint offset, u32 cmd) { void *addr; @@ -2296,7 +2296,7 @@ static void cfi_flash_set_config_reg(u32 base, u16 val) /*----------------------------------------------------------------------- */ -void flash_protect_default(void) +static void flash_protect_default(void) { #if defined(CONFIG_SYS_FLASH_AUTOPROTECT_LIST) int i; diff --git a/include/flash.h b/include/flash.h index 8b67b8747a..0eedb1efa8 100644 --- a/include/flash.h +++ b/include/flash.h @@ -85,7 +85,6 @@ typedef unsigned long flash_sect_t; /* Prototypes */ extern unsigned long flash_init (void); -extern void flash_protect_default(void); extern void flash_print_info (flash_info_t *); extern int flash_erase (flash_info_t *, int, int); extern int flash_sect_erase (ulong addr_first, ulong addr_last); @@ -118,10 +117,6 @@ extern int jedec_flash_match(flash_info_t *info, ulong base); #define CFI_CMDSET_AMD_LEGACY 0xFFF0 #endif -#if defined(CONFIG_SYS_FLASH_CFI) -extern flash_info_t *flash_get_info(ulong base); -#endif - /*----------------------------------------------------------------------- * return codes from flash_write(): */ diff --git a/include/mtd/cfi_flash.h b/include/mtd/cfi_flash.h index 52572b9b02..eade2b3614 100644 --- a/include/mtd/cfi_flash.h +++ b/include/mtd/cfi_flash.h @@ -165,8 +165,6 @@ extern int cfi_flash_num_flash_banks; #define CFI_MAX_FLASH_BANKS CONFIG_SYS_MAX_FLASH_BANKS #endif -void flash_write_cmd(flash_info_t * info, flash_sect_t sect, - uint offset, u32 cmd); phys_addr_t cfi_flash_bank_addr(int i); unsigned long cfi_flash_bank_size(int i); void flash_cmd_reset(flash_info_t *info);