coreboot-kgpe-d16/src
Paul Menzel 0afecdf95a sb/intel/common/rcba_pirq: Use correct size_t length modifier
Building an image for the Lenovo T60 with `x86_64-linux-gnu-gcc-11`
fails with the format warning below.

        CC         ramstage/southbridge/intel/common/rcba_pirq.o
    src/southbridge/intel/common/rcba_pirq.c: In function 'intel_acpi_gen_def_acpi_pirq':
    src/southbridge/intel/common/rcba_pirq.c:86:69: error: format '%ld' expects argument of type 'long int', but argument 5 has type 'size_t' {aka 'unsigned int'} [-Werror=format=]
       86 |                 printk(BIOS_SPEW, "ACPI_PIRQ_GEN: %s: pin=%d pirq=%ld\n",
          |                                                                   ~~^
          |                                                                     |
          |                                                                     long int
          |                                                                   %d
       87 |                        dev_path(dev), int_pin - PCI_INT_A,
       88 |                        pirq_idx(pin_irq_map[map_count].pic_pirq));
          |                        ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          |                        |
          |                        size_t {aka unsigned int}

The return value of `pirq_idx()` is of type `size_t`, so use the
appropriate length modifier `z`.

Change-Id: I7af24cee536b81e4825b77942bcac75afeb9f476
Found-by: gcc (Debian 11.2.0-13) 11.2.0
Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/60194
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Tim Wawrzynczak <twawrzynczak@chromium.org>
2021-12-23 14:33:50 +00:00
..
acpi acpi,Makefile: Add preload_acpi_dsdt 2021-11-29 20:35:33 +00:00
arch arch/x86: Init firmware pointer for EC SMSC KBC1098/KBC1126 at build time 2021-12-21 18:13:45 +00:00
commonlib commonlib: Add new TS for CSE firmware Sync 2021-12-20 17:51:27 +00:00
console src/acpi to src/lib: Fix spelling errors 2021-10-05 18:06:39 +00:00
cpu cpu/x86/mp_init.c: Make it work for !CONFIG_SMP 2021-12-10 15:57:34 +00:00
device device: Make pciexp_get_ltr_max_latencies a public function 2021-12-22 18:14:47 +00:00
drivers drivers/intel/pmc_mux/conn: Change usb{23}_port_number fields to device pointers 2021-12-23 14:33:28 +00:00
ec arch/x86: Init firmware pointer for EC SMSC KBC1098/KBC1126 at build time 2021-12-21 18:13:45 +00:00
include device: Make pciexp_get_ltr_max_latencies a public function 2021-12-22 18:14:47 +00:00
lib lib/Makefile.inc: Remove effect-free line 2021-12-23 12:14:17 +00:00
mainboard drivers/intel/pmc_mux/conn: Change usb{23}_port_number fields to device pointers 2021-12-23 14:33:28 +00:00
northbridge nb/intel/ironlake: Use `NUM_CHANNELS` macro 2021-12-23 14:31:53 +00:00
security Revert "security/vboot: Add NVRAM counter for TPM 2.0" 2021-12-16 20:58:30 +00:00
soc soc/intel/alderlake: remove SOC_INTEL_COMMON_BLOCK_SMM_LOCK_GPIO_PADS 2021-12-22 15:40:25 +00:00
southbridge sb/intel/common/rcba_pirq: Use correct size_t length modifier 2021-12-23 14:33:50 +00:00
superio superio/smsc/sch5545: Disable PS/2 lines isolation during init 2021-11-27 14:23:08 +00:00
vendorcode Revert "vendorcode/intel/fsp: Add Alder Lake FSP headers for FSP v2471_02" 2021-12-21 05:49:40 +00:00
Kconfig Kconfig: Show console DEBUG_FUNC if OVERRIDE_LOGLEVEL is set 2021-11-13 00:20:11 +00:00