Fix compiler warnings for 32-bit ARM
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest5 of 7 patches 0 repliesNew
5 of 7 patches are in this archive. The cover letter announces 7.
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/7 | mkeficapsule: Correct printf() strings | +0 | 0 replies | |
| 2/7 | efi: Fix compiler warnings | +0 | 0 replies | |
| 3/7 | pci: swap_case: Allow compilation on 32-bit machines | +0 | 0 replies | |
| 4/7 | tpm: Correct warning on 32-bit build | +0 | 0 replies | |
| 6/7 | doc: sandbox: Fix up dependencies | +0 | 0 replies |
Reviews trailers per patch
2 of 5 patches have a Reviewed-by or Acked-by.
| Patch | Heinrich Schuchardt |
|---|---|
| 1/7 | |
| 2/7 | R-b |
| 3/7 | |
| 4/7 | R-b |
| 6/7 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/7] Fix compiler warnings for 32-bit ARM
Quoted 7 lines · Simon Glass
These were noticed when building sandbox on a Raspberry Pi 400, which uses 32-bit linux.
To make this work, I enabled
CONFIG_HOST_32BITin 'make menuconfig'. It would be nice if that were automatic, since we have the logic already inarch/sandbox/config.mk
Quoted 5 lines
There are still many errors of the form:
/usr/bin/ld: warning:arch/sandbox/cpu/start.ouses 2-bytewchar_tyet the
output is to use 4-bytewchar_t; use ofwchar_tvalues across objects may fail
For the compiler we use -fshort-wchar.
https://stackoverflow.com/questions/19489354/how-to-set-2-byte-wchar-t-output/23896853
discusses the warning. It can be suppressed with a linker flag.
The best thing to do would be to replace all L"" constants by u"" constants and eliminate -fshort-wchar from our compiler flags.
This requires C11 which we already use since 2018.
Best regards
Heinrich
Quoted 24 lines
I am not sure how to fix those, but they are not fatal (sandbox still runs).
Simon Glass (7):
mkeficapsule: Correctprintf()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 quittingcmd/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(-)