Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from phobos.denx.de (phobos.denx.de [85.214.62.61]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.lore.kernel.org (Postfix) with ESMTPS id D0E0CECAAD8 for ; Wed, 31 Aug 2022 03:09:20 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 30DDB849C0; Wed, 31 Aug 2022 05:09:17 +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="KYg4C2in"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id B09D2849F1; Wed, 31 Aug 2022 05:09:10 +0200 (CEST) Received: from mail-oa1-x2e.google.com (mail-oa1-x2e.google.com [IPv6:2001:4860:4864:20::2e]) (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 A8B79849AC for ; Wed, 31 Aug 2022 05:09:02 +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-oa1-x2e.google.com with SMTP id 586e51a60fabf-11eab59db71so17471399fac.11 for ; Tue, 30 Aug 2022 20:09:02 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=chromium.org; s=google; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date; bh=vmzgc9nX+Gigp+vO9vWc4lJcUq4GjHqQPgfCe2va1R4=; b=KYg4C2ingbwNpLtPYbnZkGd3yJ4aiUwRk1Agpwc94hvZmTCqv6QNjk95eq9PXtBsCn Us+h3jthdugsy09S3S+edvA4/qbl1RC+lKCRQasOyAvqH4VSR294MB9PNcbO/jdmr3kF Q0V+xHgRfdNVzespif1LCWphahqvVhdW4Nxqg= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date; bh=vmzgc9nX+Gigp+vO9vWc4lJcUq4GjHqQPgfCe2va1R4=; b=IlgPSBw0+asnvU6JsRM+oK9+uO68YTZkwRQF3TpVIlYgzSNz0E7R8UUKMNBshXdSkl +U/y7W5l50Ba5NIfu43ijV+raQxpvxP71oNdd5PPBYAAJX6TzRa478tzyg1MT2W0oP0X y4XG+yZkLvnSx7DVNKaM/BVc6aSTdK3b9U5WzkJLpvSC9osB9ufo8XHevO3q4NFq8wmt /YsLvyhGYLyfmzox+Kl/lIVnVUTBqogG3PBNd1M8EJbK0KxmDRxigRJzAN6MCMTL1roZ 5mzh+hdoL1l1OmRdoZ9/w6chFqSdZKC0jSbRgSiPMNIt/8VvNZFu5s8AfkZXq/F6jur9 hkdg== X-Gm-Message-State: ACgBeo0v80KDS15r9zJrLdPp96vgLMPRhpnB46e7PbmqUzLRWSwmihi8 AMjJLg7iTp9994h2otVBGOPDA6e4lQRWBA== X-Google-Smtp-Source: AA6agR40AIhmFk599fJ86bYIffNBsqmh/YAlUvHaMmdsK1pdoW/UTgLGu6T9ZQE4E6GjgF4xR38Wbg== X-Received: by 2002:a05:6870:8892:b0:10e:464:b1c4 with SMTP id m18-20020a056870889200b0010e0464b1c4mr507664oam.99.1661915340878; Tue, 30 Aug 2022 20:09:00 -0700 (PDT) Received: from sjg1.roam.corp.google.com (c-67-190-102-125.hsd1.co.comcast.net. [67.190.102.125]) by smtp.gmail.com with ESMTPSA id fp39-20020a05687065a700b00116d5103487sm9282605oab.31.2022.08.30.20.08.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 30 Aug 2022 20:09:00 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Michal Simek , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Kishon Vijay Abraham I , Tom Rini , Simon Glass , Alexandru Gagniuc , Andre Przywara , Artem Lapkin , Heinrich Schuchardt , Jan Kiszka , Philippe Reynes , Sean Anderson Subject: [PATCH 03/21] treewide: Drop image_info_t typedef Date: Tue, 30 Aug 2022 21:07:59 -0600 Message-Id: <20220831030817.27804-4-sjg@chromium.org> X-Mailer: git-send-email 2.37.2.672.g94769d06f0-goog In-Reply-To: <20220831030817.27804-1-sjg@chromium.org> References: <20220831030817.27804-1-sjg@chromium.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.39 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.103.6 at phobos.denx.de X-Virus-Status: Clean This is not needed and we should avoid typedefs. Use the struct instead. Signed-off-by: Simon Glass --- boot/bootm.c | 2 +- include/image.h | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/boot/bootm.c b/boot/bootm.c index 73f7552fe4c..93bdbb0455c 100644 --- a/boot/bootm.c +++ b/boot/bootm.c @@ -399,7 +399,7 @@ static int handle_decomp_error(int comp_type, size_t uncomp_size, #ifndef USE_HOSTCC static int bootm_load_os(struct bootm_headers *images, int boot_progress) { - image_info_t os = images->os; + struct image_info os = images->os; ulong load = os.load; ulong load_end; ulong blob_start = os.start; diff --git a/include/image.h b/include/image.h index a725892cbed..e1a65cce7ba 100644 --- a/include/image.h +++ b/include/image.h @@ -278,13 +278,13 @@ typedef struct image_header { uint8_t ih_name[IH_NMLEN]; /* Image Name */ } image_header_t; -typedef struct image_info { +struct image_info { ulong start, end; /* start/end of blob */ ulong image_start, image_len; /* start of image within blob, len of image */ ulong load; /* load addr for the image */ uint8_t comp, type, os; /* compression, type of image, os type */ uint8_t arch; /* CPU architecture */ -} image_info_t; +}; /* * Legacy and FIT format headers used by do_bootm() and do_bootm_() @@ -324,7 +324,7 @@ struct bootm_headers { int fit_noffset_setup;/* x86 setup subimage node offset */ #ifndef USE_HOSTCC - image_info_t os; /* os image info */ + struct image_info os; /* os image info */ ulong ep; /* entry point of OS */ ulong rd_start, rd_end;/* ramdisk start/end */ -- 2.37.2.672.g94769d06f0-goog