From patchwork Wed May 15 12:31:55 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Raymond Mao X-Patchwork-Id: 1935576 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=linaro.org header.i=@linaro.org header.a=rsa-sha256 header.s=google header.b=TaAvdHYD; dkim-atps=neutral Authentication-Results: legolas.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=patchwork.ozlabs.org) 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 ECDSA (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4VfXgJ3gn5z1ymw for ; Wed, 15 May 2024 22:32:44 +1000 (AEST) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 0001D880A5; Wed, 15 May 2024 14:32:37 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.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=linaro.org header.i=@linaro.org header.b="TaAvdHYD"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 3D4BC880D2; Wed, 15 May 2024 14:32:36 +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.1 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-wr1-x42f.google.com (mail-wr1-x42f.google.com [IPv6:2a00:1450:4864:20::42f]) (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 385EB88013 for ; Wed, 15 May 2024 14:32:34 +0200 (CEST) Authentication-Results: phobos.denx.de; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: phobos.denx.de; spf=pass smtp.mailfrom=raymond.mao@linaro.org Received: by mail-wr1-x42f.google.com with SMTP id ffacd0b85a97d-34d8f6cfe5bso5306912f8f.3 for ; Wed, 15 May 2024 05:32:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1715776353; x=1716381153; darn=lists.denx.de; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc:subject:date:message-id:reply-to; bh=IwL3uAIQIH65yIVGk63of2C/GXaqpV7gvAyRi6DoR3A=; b=TaAvdHYDHqsqA2XXiTt64ZiaV/dbO7Ndf/vF5CTwOlUq0yNW/j6lDr/2nDTBWuUHcN lu44yuqC1w0ndDMTOrnKcsfsHDDuYuWxrZVS5x+598hpu3TgGPZ5zO+Sm0BAqaGTOaHA r24zYOuqSRN26+nfufYghOKym6t4NUJGSYvbTHXRcTZKpTjQilDHEQN5bl4WmhBmLhZM CVGa+lhVSmc+zgno1D/yaF79sTkjKtyfTe7cBGHovn/ZW5C5nl/y/nvFBsJBJ8z7M2HA p2adnnr2TtoCD8nrXg8VJJdmwBjwhU7KbL8gPAEVbRKwtJvQH87ksIxu8GCLt4PmRVHq wxcg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1715776353; x=1716381153; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=IwL3uAIQIH65yIVGk63of2C/GXaqpV7gvAyRi6DoR3A=; b=F6MNRhcQFk1hlsldhtuosllnXOPSD7N/J686C5KBjrPe00phAIVKlHZDzM/iw4RaW7 ihsX0hP7jjYodXvXbPVhWYdoDXo98ixwes1oy49asJRIM+jXWqd0hVeyJmVBiiUMnDhx O/n+2SBvykfEjJFl28eZt2ggIyvwLLqC5FvVxKaxpi89UA5BDexDWACt3sN+xYG5JC7D HPoTN8k8B5TO0vjeMgWB6EIm0bzAva5U1i8xldxzRmJWLXtOccaY5hVkmhqN1J2FoJHl XpJnsKS5sD61CX04LIHuVSstxTOliJU/ITE4EqsQTohlEH3as/qzgsAgM06lRDA/1jjw 2jwA== X-Gm-Message-State: AOJu0Yw0Vek86THsshM3axY0/2/FrfG+/k0k2NulI9YUGwjq9dgS30qq 6eDzZpA3A9VzeM5FmPrPxpBGLioO6R0QajO6OfrX6uwqxLCf//oWTs1WJXFsXYfQU2q/8GqFmTr B X-Google-Smtp-Source: AGHT+IF7ezRxEoFfjmjM0cGLL3dM+ihURgsJ79RWV5gQQgv5pHpMg2eXWXZg6bpL/RuKN1eqe+RatQ== X-Received: by 2002:a5d:4e10:0:b0:34a:ed29:8d1d with SMTP id ffacd0b85a97d-3504aa62eefmr12182826f8f.64.1715776353034; Wed, 15 May 2024 05:32:33 -0700 (PDT) Received: from ubuntu.localdomain ([149.14.240.163]) by smtp.gmail.com with ESMTPSA id ffacd0b85a97d-3502baad042sm16406896f8f.80.2024.05.15.05.32.31 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 15 May 2024 05:32:32 -0700 (PDT) From: Raymond Mao To: u-boot@lists.denx.de Cc: Raymond Mao , Alexey Brodkin , Eugeniy Paltsev , Tom Rini , Walter Schweizer , Tony Dinh , Phil Sutter , Mario Six , Heinrich Schuchardt , Ilias Apalodimas , Simon Glass , Roger Quadros , Jonathan Humphreys , Nishanth Menon , Igor Opaniuk , Marek Vasut , Bin Meng , Caleb Connolly , Eddie James , Masahisa Kojima , Jassi Brar , Michal Simek , Masami Hiramatsu , AKASHI Takahiro , Etienne Carriere , uboot-snps-arc@synopsys.com Subject: [PATCH v2 0/4] Clean-up patch set for MbedTLS integration Date: Wed, 15 May 2024 05:31:55 -0700 Message-Id: <20240515123213.1701691-1-raymond.mao@linaro.org> X-Mailer: git-send-email 2.25.1 MIME-Version: 1.0 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.8 at phobos.denx.de X-Virus-Status: Clean This patch set is picked from the previously posted serie: "[RFC] Integrate MbedTLS v3.6 LTS with U-Boot" They are not directly related to MbedTLS integration, but the prerequisite for a few clean-up, refactoring and minor fixes. For V2, the linker script patch is dropped and added one patch to move the snprintf to stdio.h Raymond Mao (4): image: remove redundant hash includes efi_loader: remove redundant hash includes md5: Use typedef for MD5 context include: Move snprintf to stdio.h arch/arc/lib/cpu.c | 2 +- board/Synology/common/legacy.c | 1 + board/ti/common/fdt_ops.c | 2 +- boot/image-fit.c | 4 ---- boot/image.c | 2 -- cmd/part.c | 2 +- common/button_cmd.c | 2 +- drivers/cpu/mpc83xx_cpu.c | 2 +- drivers/crypto/hash/hash_sw.c | 8 ++++---- include/stdio.h | 1 + include/u-boot/md5.h | 10 +++++----- include/vsprintf.h | 17 ----------------- lib/display_options.c | 1 + lib/efi_loader/efi_signature.c | 1 - lib/efi_loader/efi_tcg2.c | 3 --- lib/fwu_updates/fwu_mtd.c | 2 +- lib/hexdump.c | 2 +- lib/md5.c | 10 +++++----- lib/vsprintf.c | 1 + test/dm/scmi.c | 2 +- test/print_ut.c | 1 + 21 files changed, 27 insertions(+), 49 deletions(-)