From patchwork Sun Feb 7 21:27:00 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 1437264 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=lists.denx.de (client-ip=2a01:238:438b:c500:173d:9f52:ddab:ee01; helo=phobos.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=chromium.org header.i=@chromium.org header.a=rsa-sha256 header.s=google header.b=BspOzWXW; dkim-atps=neutral Received: from phobos.denx.de (phobos.denx.de [IPv6:2a01:238:438b:c500:173d:9f52:ddab:ee01]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 4DYj195Snlz9sVv for ; Mon, 8 Feb 2021 08:27:34 +1100 (AEDT) Received: from h2850616.stratoserver.net (localhost [IPv6:::1]) by phobos.denx.de (Postfix) with ESMTP id CFBDF827C7; Sun, 7 Feb 2021 22:27:17 +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="BspOzWXW"; dkim-atps=neutral Received: by phobos.denx.de (Postfix, from userid 109) id 21221827C5; Sun, 7 Feb 2021 22:27:15 +0100 (CET) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on phobos.denx.de X-Spam-Level: X-Spam-Status: No, score=-2.4 required=5.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from mail-io1-xd2e.google.com (mail-io1-xd2e.google.com [IPv6:2607:f8b0:4864:20::d2e]) (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 EEC5C82730 for ; Sun, 7 Feb 2021 22:27:11 +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-xd2e.google.com with SMTP id s24so13028666iob.6 for ; Sun, 07 Feb 2021 13:27:11 -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=jewcblQnzYPdPHfWLJ6ylynWahQMFT4roZ+jBnCruwE=; b=BspOzWXWVtuWb3yTEHSVvp6fAxw2FsUThmnDeFb5UJANQvQfVku1mFnJLYQcPGfqH5 1E5sqy6Ffzvw/X6FkJpih8hta9cxPjhKej7Ja4m13w4NFBMQ0dUAO0qZ86AKGLChG35G bBvlTCcFjrvuiSk8sn6i1PsouP5Q031AC/ceE= 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=jewcblQnzYPdPHfWLJ6ylynWahQMFT4roZ+jBnCruwE=; b=BSmqU3zGSHdLyDLlVRgVvFPqXatsPBT97G944xY2EHJJrzeVqJ7T/9k/8eCHKtoJVf 8Da4mD9TCH2+TRu4lBurtcNNlwkDc9Z+ONXEtsCIEEHw/M4UcMq9VxAADbT8GqUHjIVZ ggZSkbEv8BaSMnW1VMEIL/+93CgM0Mq5ODuFGIAkXQq1XjZLz00edPJB7U95iq6JkeH6 +tL2R237qYFkXbS5suic9Xht92Uc7+7xW1p8GPz5htmFoC3fup8p29a5Js6KoJ7C+s4e Lv5TZd0ISm3M2qimjwZR3KnRfviM5gu+y/DSrYGIWtr8GEa1O+UYvGBHSdLKd5A7Yytq kstg== X-Gm-Message-State: AOAM530j4+w/P9k2F+lV1xqm4e4q+Y/5KRYW1emvQip7FU6NrIbrNsw3 jFPmjIxfMzpswoMhQy0dgnPTpRaaNbcwdij2 X-Google-Smtp-Source: ABdhPJy/hQ90TwQck2nwPSaV5aUqG7yni4Z6lxK9wK8/jYLX9HOO7Y5T6D9IYCf8Nat6boH4hqBhMg== X-Received: by 2002:a5e:8902:: with SMTP id k2mr13197323ioj.21.1612733230111; Sun, 07 Feb 2021 13:27:10 -0800 (PST) Received: from localhost.localdomain (c-67-190-101-114.hsd1.co.comcast.net. [67.190.101.114]) by smtp.gmail.com with ESMTPSA id y11sm7641555ilv.64.2021.02.07.13.27.08 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 07 Feb 2021 13:27:09 -0800 (PST) From: Simon Glass To: U-Boot Mailing List Cc: Tom Rini , Heinrich Schuchardt , Simon Glass , AKASHI Takahiro , Alexander Graf , Sughosh Ganu Subject: [PATCH 0/7] Fix compiler warnings for 32-bit ARM Date: Sun, 7 Feb 2021 14:27:00 -0700 Message-Id: <20210207212707.3958570-1-sjg@chromium.org> X-Mailer: git-send-email 2.30.0.478.g8a0d178c01-goog MIME-Version: 1.0 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.102.3 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 There are still many errors 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 I am not sure how to fix those, but they are not fatal (sandbox still runs). Simon Glass (7): mkeficapsule: Correct printf() strings efi: Fix compiler warnings pci: swap_case: Allow compilation on 32-bit machines tpm: Correct warning on 32-bit build test: acpi: Fix warnings on 32-bit build doc: sandbox: Fix up dependencies doc: sandbox: Update instructions on quitting cmd/efidebug.c | 2 +- doc/arch/sandbox.rst | 11 ++++++----- drivers/misc/swap_case.c | 13 +++++++++++-- drivers/tpm/tpm2_tis_sandbox.c | 2 +- lib/efi_loader/efi_capsule.c | 4 ++-- lib/efi_loader/efi_firmware.c | 4 ++-- test/dm/acpi.c | 12 ++++++------ tools/mkeficapsule.c | 14 +++++++------- 8 files changed, 36 insertions(+), 26 deletions(-)