From patchwork Fri Jun 26 06:13:35 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Masahiro Yamada X-Patchwork-Id: 1317390 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=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.a=rsa-sha256 header.s=dec2015msa header.b=sgXsM3nC; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (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 49tRRW33zyz9sRR for ; Fri, 26 Jun 2020 16:14:15 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CC36A81CA8; Fri, 26 Jun 2020 08:14:08 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Authentication-Results: phobos.denx.de; dkim=pass (2048-bit key; unprotected) header.d=nifty.com header.i=@nifty.com header.b="sgXsM3nC"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 023B0818C7; Fri, 26 Jun 2020 08:14:03 +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=-1.9 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,RCVD_IN_MSPIKE_H2,T_SPF_HELO_TEMPERROR,URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.2 Received: from conuserg-10.nifty.com (conuserg-10.nifty.com [210.131.2.77]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by phobos.denx.de (Postfix) with ESMTPS id 50FFA814A4 for ; Fri, 26 Jun 2020 08:13:55 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: phobos.denx.de; spf=fail smtp.mailfrom=masahiroy@kernel.org Received: from oscar.flets-west.jp (softbank126090202047.bbtec.net [126.90.202.47]) (authenticated) by conuserg-10.nifty.com with ESMTP id 05Q6DbTA000659; Fri, 26 Jun 2020 15:13:39 +0900 DKIM-Filter: OpenDKIM Filter v2.10.3 conuserg-10.nifty.com 05Q6DbTA000659 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nifty.com; s=dec2015msa; t=1593152020; bh=dMcePO1UNdqs6cajffsSZxjUe2NejjlI+Qo+WIJvAsw=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=sgXsM3nC3Iyt0pifUhjbu6xrvNj7a4zsW0P8ldjXpY8sCIxlk4PSj/vC8/HB6voDs ShvgC7dfpQWQ3sc7FAymKJinItmS5c6VBIB9CPFwe40eEatviJ3WBAMpFnoPP/D6M8 krhcImXcTv5qY9fRqweInz2b3R7Ov2ZjSZGclpjwJVoM0N9a9Hpf3i17ObkUAZK0qX xwsKkf8CKQTsTJw2kN7eNErjvbKbjQK+7jps0PSx5RfgZJTQUrRBqqMvlL9QuOlSDN PiuaZu1DcJnNkXwCvIF1dvn80+FnOZ7YwiDZW7avp3D8IOlFCicFTBieCvsZ4fauRm 7VYDcf7Ezy5rw== X-Nifty-SrcIP: [126.90.202.47] From: Masahiro Yamada To: u-boot@lists.denx.de Cc: Masahiro Yamada Subject: [PATCH 3/3] asm/u-boot.h: remove bd_t definitions Date: Fri, 26 Jun 2020 15:13:35 +0900 Message-Id: <20200626061335.1611120-3-masahiroy@kernel.org> X-Mailer: git-send-email 2.25.1 In-Reply-To: <20200626061335.1611120-1-masahiroy@kernel.org> References: <20200626061335.1611120-1-masahiroy@kernel.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 All the users of bd_t were converted to struct bd_info. Remove the definitions. Signed-off-by: Masahiro Yamada --- arch/nds32/include/asm/u-boot.h | 5 ++--- arch/riscv/include/asm/u-boot.h | 5 ++--- include/asm-generic/u-boot.h | 4 ++-- 3 files changed, 6 insertions(+), 8 deletions(-) diff --git a/arch/nds32/include/asm/u-boot.h b/arch/nds32/include/asm/u-boot.h index 8c949e7fb7..815cb93030 100644 --- a/arch/nds32/include/asm/u-boot.h +++ b/arch/nds32/include/asm/u-boot.h @@ -21,8 +21,7 @@ #include - -typedef struct bd_info { +struct bd_info { unsigned long bi_arch_number; /* unique id for this board */ unsigned long bi_boot_params; /* where this board expects params */ unsigned long bi_memstart; /* start of DRAM memory */ @@ -37,7 +36,7 @@ typedef struct bd_info { unsigned long start; unsigned long size; } bi_dram[CONFIG_NR_DRAM_BANKS]; -} bd_t; +}; /* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_NDS32 diff --git a/arch/riscv/include/asm/u-boot.h b/arch/riscv/include/asm/u-boot.h index 5ba8e77812..dac20bffda 100644 --- a/arch/riscv/include/asm/u-boot.h +++ b/arch/riscv/include/asm/u-boot.h @@ -20,8 +20,7 @@ #include - -typedef struct bd_info { +struct bd_info { unsigned long bi_boot_params; /* where this board expects params */ unsigned long bi_memstart; /* start of DRAM memory */ unsigned long bi_memsize; /* size of DRAM memory in bytes */ @@ -35,7 +34,7 @@ typedef struct bd_info { unsigned long start; unsigned long size; } bi_dram[CONFIG_NR_DRAM_BANKS]; -} bd_t; +}; /* For image.h:image_check_target_arch() */ #define IH_ARCH_DEFAULT IH_ARCH_RISCV diff --git a/include/asm-generic/u-boot.h b/include/asm-generic/u-boot.h index 6f749736f1..4bf06fb379 100644 --- a/include/asm-generic/u-boot.h +++ b/include/asm-generic/u-boot.h @@ -26,7 +26,7 @@ #include #include -typedef struct bd_info { +struct bd_info { unsigned long bi_memstart; /* start of DRAM memory */ phys_size_t bi_memsize; /* size of DRAM memory in bytes */ unsigned long bi_flashstart; /* start of FLASH memory */ @@ -94,7 +94,7 @@ typedef struct bd_info { phys_size_t size; } bi_dram[CONFIG_NR_DRAM_BANKS]; #endif /* CONFIG_NR_DRAM_BANKS */ -} bd_t; +}; #endif /* __ASSEMBLY__ */