Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/64877 )
Change subject: soc/intel/cmn/cse: Fix return type for `devfn` ......................................................................
soc/intel/cmn/cse: Fix return type for `devfn`
This patch fixes the return type for `devfn` variable inside heci_set_to_d0i3(). `PCI_DEVFN` macro returns `unsigned int` instead of `pci_devfn_t`.
TEST=Able to build and boot to ChromeOS without any failure.
Signed-off-by: Subrata Banik subratabanik@google.com Change-Id: Ib3a575aa7d71cbe6932e823917b57c5558387433 --- M src/soc/intel/common/block/cse/cse.c 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/77/64877/1
diff --git a/src/soc/intel/common/block/cse/cse.c b/src/soc/intel/common/block/cse/cse.c index e01b1cf..1c7e218 100644 --- a/src/soc/intel/common/block/cse/cse.c +++ b/src/soc/intel/common/block/cse/cse.c @@ -1012,7 +1012,7 @@ void heci_set_to_d0i3(void) { for (int i = 0; i < CONFIG_MAX_HECI_DEVICES; i++) { - pci_devfn_t devfn = PCI_DEVFN(PCH_DEV_SLOT_CSE, i); + unsigned int devfn = PCI_DEVFN(PCH_DEV_SLOT_CSE, i); if (!is_cse_devfn_visible(devfn)) continue;