Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-15.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_PATCH,MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id EF43DC636C8 for ; Sun, 18 Jul 2021 20:14:48 +0000 (UTC) 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 mail.kernel.org (Postfix) with ESMTPS id 0FB26610CB for ; Sun, 18 Jul 2021 20:14:47 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org 0FB26610CB Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=chromium.org Authentication-Results: mail.kernel.org; spf=pass smtp.mailfrom=u-boot-bounces@lists.denx.de Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 5B68480615; Sun, 18 Jul 2021 22:14:45 +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="bOba77iF"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 48EC480615; Sun, 18 Jul 2021 22:14:43 +0200 (CEST) Received: from mail-ot1-x32d.google.com (mail-ot1-x32d.google.com [IPv6:2607:f8b0:4864:20::32d]) (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 5BAB08033E for ; Sun, 18 Jul 2021 22:14:40 +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-ot1-x32d.google.com with SMTP id o17-20020a9d76510000b02903eabfc221a9so16108928otl.0 for ; Sun, 18 Jul 2021 13:14:40 -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:mime-version :content-transfer-encoding; bh=1TYyEMmoB193uXJ/EISAWORWwMWSfBFp6f9qGEIwTLw=; b=bOba77iFzX6IS+NOUlCCI3gTIVDFqGAUnltLELJtakgWG4WpY5Sa93ftglBcfjp2pu PPWvXVUwOVZmzdBSrMR+Pp7tSQD2p2G1ZnvUuQ/Cmvl1ewYbQ+45X31wVEDOa7Ez4bx/ 1zVBUhpAvdsFLQm7oGD7m1ea5o7vRGiZvUTIg= 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:mime-version :content-transfer-encoding; bh=1TYyEMmoB193uXJ/EISAWORWwMWSfBFp6f9qGEIwTLw=; b=HKYjYLeVAKeBAibJc5TSf2qwUlj8UYXOPLFYWTNuxeCPYf6zG9tB1Xdepi3Zzwlu2m lenOtI3MRK8oLfJbzOEStryDzYG28ADnaF8yTVKiXVSvwI1iq26g+yOtALQIEB7L+dUB Ro83Fyv/7Ly+LnmvzKu3gWx6+3YGp10SbWeRE5AgWBx6Td5SNrCgShuzFnciWAQKDXyl Rnz2GUkdPWZ4ygQlOGk7JvJOub61ta0FGqAMkaePpGDzMT7ZyFhcYeabjkaf9j7Ywtca 1KGrt4RPh2+E3cJQswfcbCvv8KJixm4bLlU1FSxYOYUcuEMrQEUKqlF7Iby05SmedgUE ElTw== X-Gm-Message-State: AOAM532Uj282UDANZVEl6z7nxqs3IyWje6dIbdgmiHIPpoLMgZJp9MqL Gd+HWuaWMgoePJ8XCzHw+JZbq8eZTsr3xbuh X-Google-Smtp-Source: ABdhPJw71nkKZOBvWrm03a0HDqhGtro3gb5Tcc9THX4n5t1MAFv/Hybq5Gsl1/zq8R5JFZLSNdBwTQ== X-Received: by 2002:a9d:86d:: with SMTP id 100mr16889019oty.45.1626639278370; Sun, 18 Jul 2021 13:14:38 -0700 (PDT) Received: from kiwi.bld.corp.google.com (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id k13sm3170598otl.50.2021.07.18.13.14.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 18 Jul 2021 13:14:37 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , Alexander Graf , Alper Nebi Yasak , Bin Meng , Evan Benn , Ilias Apalodimas , Joe Perches , =?UTF-8?q?Marek=20Beh=C3=BAn?= , Sean Anderson , Wasim Khan Subject: [PATCH v2 0/5] Fix compiler warnings for 32-bit ARM Date: Sun, 18 Jul 2021 14:14:21 -0600 Message-Id: <20210718201426.759240-1-sjg@chromium.org> X-Mailer: git-send-email 2.32.0.402.g57bb445576-goog MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.34 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.2 at phobos.denx.de X-Virus-Status: Clean These were noticed when building sandbox on a Raspberry Pi 400, which uses 32-bit linux. To make this work, I enabled CONFIG_HOST_32BIT in 'make menuconfig'. It would be nice if that were automatic, since we have the logic already in arch/sandbox/config.mk So this series adds that. It also fixes the unicode warnings of the form: /usr/bin/ld: warning: arch/sandbox/cpu/start.o uses 2-byte wchar_t yet the output is to use 4-byte wchar_t; use of wchar_t values across objects may fail as suggested by Heinrich. Changes in v2: - Add new patch to reduce checkpatch unicode-string spam - Update commit message to indicate that things work now - Add python3-pycryptodome also, for test_fit_ecdsa.py - Drop patches previously applied - Put all the packages in gcc.rst Joe Perches (1): checkpatch: Support wide strings Simon Glass (4): pci: swap_case: Allow compilation on 32-bit machines doc: sandbox: Fix up dependencies efi: Use 16-bit unicode strings sandbox: Detect the host bit size automatically Makefile | 11 +- arch/sandbox/Kconfig | 13 ++- doc/arch/sandbox.rst | 6 +- doc/build/gcc.rst | 6 +- drivers/misc/swap_case.c | 13 ++- include/efi_loader.h | 2 +- lib/efi_loader/efi_bootmgr.c | 12 +- lib/efi_loader/efi_boottime.c | 2 +- lib/efi_loader/efi_capsule.c | 20 ++-- lib/efi_loader/efi_helper.c | 2 +- lib/efi_loader/efi_image_loader.c | 8 +- lib/efi_loader/efi_setup.c | 20 ++-- lib/efi_loader/efi_signature.c | 4 +- lib/efi_loader/efi_string.c | 2 +- lib/efi_loader/efi_var_common.c | 14 +-- lib/efi_loader/efi_variable.c | 6 +- lib/efi_loader/efi_variable_tee.c | 2 +- lib/efi_loader/helloworld.c | 40 +++---- lib/efi_selftest/dtbdump.c | 82 +++++++------- lib/efi_selftest/efi_selftest.c | 2 +- lib/efi_selftest/efi_selftest_block_device.c | 6 +- lib/efi_selftest/efi_selftest_devicepath.c | 2 +- lib/efi_selftest/efi_selftest_exception.c | 2 +- lib/efi_selftest/efi_selftest_fdt.c | 6 +- lib/efi_selftest/efi_selftest_hii.c | 8 +- lib/efi_selftest/efi_selftest_load_file.c | 4 +- lib/efi_selftest/efi_selftest_loadimage.c | 4 +- .../efi_selftest_miniapp_exception.c | 4 +- lib/efi_selftest/efi_selftest_miniapp_exit.c | 8 +- .../efi_selftest_miniapp_return.c | 2 +- lib/efi_selftest/efi_selftest_reset.c | 2 +- lib/efi_selftest/efi_selftest_textoutput.c | 12 +- .../efi_selftest_unicode_collation.c | 38 +++---- lib/efi_selftest/efi_selftest_util.c | 106 +++++++++--------- lib/efi_selftest/efi_selftest_variables.c | 22 ++-- .../efi_selftest_variables_runtime.c | 4 +- lib/efi_selftest/initrddump.c | 60 +++++----- scripts/checkpatch.pl | 7 +- scripts/kconfig/Makefile | 14 ++- 39 files changed, 305 insertions(+), 273 deletions(-) -- 2.32.0.402.g57bb445576-goog