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 B29A4C433EF for ; Sat, 22 Jan 2022 01:27:48 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 785C3830B9; Sat, 22 Jan 2022 02:27:46 +0100 (CET) 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="Z6woF3e7"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 22529832E6; Sat, 22 Jan 2022 02:27:45 +0100 (CET) Received: from mail-il1-x133.google.com (mail-il1-x133.google.com [IPv6:2607:f8b0:4864:20::133]) (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 2BE9B81B53 for ; Sat, 22 Jan 2022 02:27:42 +0100 (CET) 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-il1-x133.google.com with SMTP id e8so9050165ilm.13 for ; Fri, 21 Jan 2022 17:27:42 -0800 (PST) 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=dHjTH/qY4BqKtG7pHiMRlBcY8w5LLlQHfbOEzN6LXWE=; b=Z6woF3e7tQfmJQ8tE3lHnwbs2B2X/5Tab0yMEhrNuc6sm0hrBouRn+dB9mPlY2KvsR jce2WXQGOsnfqyu6F0OHTsp87DBy4/IqQfuqGuK54SInH7wRB0XHpQRSPkYc0PnO/74X lwBn/3rdM0Q0T/FxVj1pVHp7lmPU4vRk1SPQw= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:from:to:cc:subject:date:message-id:mime-version :content-transfer-encoding; bh=dHjTH/qY4BqKtG7pHiMRlBcY8w5LLlQHfbOEzN6LXWE=; b=d8n13JjSKhQBOXAaJRFRxyoYjHos3drypEuQSlpR1wNsDCmAxxMaS4aIN3Qc/IyukY 9fbOrr6J+KYND9n9WF7DpGBQHyEOX+OyVns5m8Bg9Q3r6RItoHP0bqwmWjk7kdEHtOku DwhZaEsmI/knl6FRr1vWIdNLG8rlL8kd2FUBdJLm/mOoyu52FnMwUrXu6vQXwxQA9Os3 Q+nWdYNUL7c8ZeKgqQaULiLmpEtLv07vsxythvd6pGajkPS7iv7ZqbEyCNmfXLNeVNYW hHV4jKIGPgW2JkaagylD9oOJJhdjUtGOrlZoB0OAas9NxpH9agVkl00HekvvGHTOpyqF oTVw== X-Gm-Message-State: AOAM5330rw3JhMJzK291IFjTD+mURWRJG9gJ80Cf4jUSXN02S5WpmNZC Ecv8CT2RhVX1Lxzr0uxyCJCuOlUydM7gdQ== X-Google-Smtp-Source: ABdhPJzmgyUredU047zX5Lq5/Pq9h6QVANy3j0jbAKJ7OdEEbaNNcCSxZNyvpu1cxWjrIf4k0nFn8w== X-Received: by 2002:a92:ab10:: with SMTP id v16mr3653621ilh.293.1642814860783; Fri, 21 Jan 2022 17:27:40 -0800 (PST) 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 k17sm2153586ioj.1.2022.01.21.17.27.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 21 Jan 2022 17:27:40 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , Alexander Graf Subject: [PATCH v4 0/4] Fix compiler warnings for 32-bit ARM Date: Fri, 21 Jan 2022 18:27:32 -0700 Message-Id: <20220122012736.2725994-1-sjg@chromium.org> X-Mailer: git-send-email 2.35.0.rc0.227.g00780c9af4-goog 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.5 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 v4: - Rebase to master - Use $(HOSTCC) instead of gcc - Add proper Kconfig help Changes in v3: - Mention the link to the new upstream patch - Change some things EFI things missed (or new since) last time - Use 'bitness' instead of 'bit' - Add a new patch to change non-EFI occurences Changes in v2: - Add new patch to reduce checkpatch unicode-string spam - Drop patches previously applied - Put all the packages in gcc.rst Joe Perches (1): checkpatch: Support wide strings Simon Glass (3): efi: Use 16-bit unicode strings sandbox: Detect the host bit size automatically treewide: Use 16-bit unicode strings Makefile | 11 +- arch/sandbox/Kconfig | 33 +++++- cmd/efidebug.c | 28 ++--- include/efi_loader.h | 2 +- include/efi_selftest.h | 4 +- lib/efi_loader/efi_bootmgr.c | 12 +- lib/efi_loader/efi_boottime.c | 2 +- lib/efi_loader/efi_capsule.c | 22 ++-- lib/efi_loader/efi_helper.c | 2 +- lib/efi_loader/efi_image_loader.c | 8 +- lib/efi_loader/efi_setup.c | 14 +-- lib/efi_loader/efi_string.c | 2 +- lib/efi_loader/efi_tcg2.c | 4 +- lib/efi_loader/efi_var_common.c | 12 +- 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 +++++----- lib/lzma/Types.h | 4 +- lib/vsprintf.c | 2 +- scripts/checkpatch.pl | 7 +- scripts/kconfig/Makefile | 14 ++- test/print_ut.c | 2 +- test/unicode_ut.c | 22 ++-- 42 files changed, 337 insertions(+), 292 deletions(-) -- 2.35.0.rc0.227.g00780c9af4-goog