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 18E5FC433EF for ; Sun, 23 Jan 2022 19:55:28 +0000 (UTC) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id 26CD58350D; Sun, 23 Jan 2022 20:55:26 +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="DmDqtC/0"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 79F0F83384; Sun, 23 Jan 2022 20:55:23 +0100 (CET) Received: from mail-io1-xd35.google.com (mail-io1-xd35.google.com [IPv6:2607:f8b0:4864:20::d35]) (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 33CD0830A0 for ; Sun, 23 Jan 2022 20:55:20 +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-io1-xd35.google.com with SMTP id n17so1226196iod.4 for ; Sun, 23 Jan 2022 11:55:20 -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=/E0nR7BNsWeZYpOcSB1EQH490n8svLswVAqF9T3nnvY=; b=DmDqtC/06plLpb2A0l1HAEg/J25fPQFwE1vcKT+kmcwd/jO41a1vY5u7f7RRs/GS1s 1lqMcfwQHXg5AZ3t2Ho3kAT25eIXT5pnM0dKH9OnNsZYwPtISl+qqr546Fm4UJtqFMdu J6cNwiMCXPwtHNPSo6T3bGFYa6FG17BWIsF7c= 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=/E0nR7BNsWeZYpOcSB1EQH490n8svLswVAqF9T3nnvY=; b=WUWlhKT2cPmuB1mh365vHlQ7/+dpl9HR2nmpgD4/m3/sSLSSff3YPCpSuZNSOz3FsN PUV0O60YucA/e+8edGzc9VF0myyU2iG4W518kmf3Nz+fvrXnyYdOLVAPCOLObp+ktWDC NEL9sVlMo2cD/qmPCTrvvDfYW+PfoXDWJYiP+KXyDxtrwlwzBxbVAyjCGCShyN7eTUUq q2aHo/dkUD8DRVOC/qicFEha+elqK3X2c5D7ti1zcVSzoPuFQrYbdVip7TVv7dHAJMiR o62ElttJv6xC57rBRSzqTezx6C7W0jfqRJHLPagwSoWwrPhh7a1d7zPqdv8sBcl2Eu8J 5JIg== X-Gm-Message-State: AOAM532+/YOTJ0Vq+JneFSWCLP5HGOHG/wqkoneMBOjfm2gGOwmtW0j0 HS6FGFnpcZ1c+MrOkmmcsABOMIbx52v8Iw== X-Google-Smtp-Source: ABdhPJzjbBB5vd+OFOkxshgJ1msCnvr+b7npGJpX16XCR4GrgKuSC4WseTpggHkDzmXSrf2qftAS0A== X-Received: by 2002:a05:6638:4089:: with SMTP id m9mr5812612jam.43.1642967718496; Sun, 23 Jan 2022 11:55:18 -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 z6sm6152147ilz.64.2022.01.23.11.55.17 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 23 Jan 2022 11:55:18 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , Alexander Graf Subject: [PATCH v5 0/4] Fix compiler warnings for 32-bit ARM Date: Sun, 23 Jan 2022 12:55:10 -0700 Message-Id: <20220123195514.3152022-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 v5: - Resync with upstream instead Changes in v4: - Rebase to master - Use $(HOSTCC) instead of gcc - Add proper Kconfig help Changes in v3: - 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: - Drop patches previously applied - Put all the packages in gcc.rst Simon Glass (4): scripts/checkpatch.pl: Resync with v5.16 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 +- doc/develop/checkpatch.rst | 590 ++++++++++++++++-- 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 | 145 +++-- scripts/kconfig/Makefile | 14 +- scripts/spdxcheck.py | 2 +- test/print_ut.c | 2 +- test/unicode_ut.c | 22 +- 44 files changed, 974 insertions(+), 385 deletions(-) -- 2.35.0.rc0.227.g00780c9af4-goog