coreboot/src/soc/intel
Paul Menzel 0594bf87c1 soc/intel/common: irq: Use correct size_t length modifier
Building an image for the Purism Mini v2 with `x86_64-linux-gnu-gcc-11`
fails with the format warning below as the size of size_t differs
between 32-bit and 64-bit.

        CC         ramstage/soc/intel/common/block/irq/irq.o
    src/soc/intel/common/block/irq/irq.c: In function 'assign_fixed_pirqs':
    src/soc/intel/common/block/irq/irq.c:186:90: error: format '%lu' expects argument of type 'long unsigned int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
      186 |                         printk(BIOS_ERR, "ERROR: Slot %u, pirq %u, no pin for function %lu\n",
          |                                                                                        ~~^
          |                                                                                          |
          |                                                                                          long unsigned int
          |                                                                                        %u
      187 |                                constraints->slot, fixed_pirq, i);
          |                                                               ~
          |                                                               |
          |                                                               size_t {aka unsigned int}
        CC         ramstage/soc/intel/common/block/gspi/gspi.o
        CC         ramstage/soc/intel/common/block/graphics/graphics.o
        CC         ramstage/soc/intel/common/block/gpio/gpio.o
        CC         ramstage/soc/intel/common/block/gpio/gpio_dev.o

The variable `i` is of type size_t, so use the corresponding length
modifier `z`.

Fixes: b59980b54e ("soc/intel/common: Add new IRQ module")
Change-Id: I09f4a8d22a2964471344f5dcf971dfa801555f4a
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/59056
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2022-01-04 14:54:33 +00:00
..
alderlake soc/intel/alderlake: Add option to make MRC log silent 2022-01-03 15:07:00 +00:00
apollolake soc/intel/apollolake/acpi: Replace Decrement() with ASL 2.0 syntax 2022-01-01 14:22:39 +00:00
baytrail src: Use 'stdint.h' when appropriate 2022-01-01 14:58:44 +00:00
braswell Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
broadwell sb/intel: Use bool for PCIe coalescing option 2022-01-04 11:48:19 +00:00
cannonlake soc/intel/cannonlake/acpi: Replace Multiply(a,b) with ASL 2.0 syntax 2022-01-01 14:00:12 +00:00
common soc/intel/common: irq: Use correct size_t length modifier 2022-01-04 14:54:33 +00:00
denverton_ns soc/intel/denverton_ns: Use popcnt() helper 2021-12-17 21:41:39 +00:00
elkhartlake soc/intel/{adl,ehl,tgl}: Rename spi_protection_mode to mfg_mode 2022-01-02 12:29:07 +00:00
icelake soc/intel/common/thermal: Refactor thermal block to improve reusability 2021-11-25 07:18:04 +00:00
jasperlake src: Drop duplicated includes 2022-01-01 14:55:51 +00:00
quark Rename ECAM-specific MMCONF Kconfigs 2021-11-10 17:24:16 +00:00
skylake soc/intel/skylake/acpi: Replace Add(a,b) with ASL 2.0 syntax 2021-12-31 09:00:25 +00:00
tigerlake soc/intel/{adl,ehl,tgl}: Rename spi_protection_mode to mfg_mode 2022-01-02 12:29:07 +00:00
xeon_sp commonlib/cbmem_id.h: Fix typo in macro name 2021-11-25 11:13:28 +00:00
Kconfig
Makefile.inc soc/intel/common/cse: Add support for stitching CSE components 2021-10-19 16:09:08 +00:00