Subrata Banik has uploaded this change for review. ( https://review.coreboot.org/c/coreboot/+/81961?usp=email )
Change subject: libpayload: Fix inl() return type mismatch ......................................................................
libpayload: Fix inl() return type mismatch
Change `inl()` return type from `unsigned long` to `unsigned int` to match the function definition and ensure consistency across platforms.
BUG=b:242829490 TEST=Compiled successfully in 32-bit and 64-bit modes.
Change-Id: I681935665c8de9ee472ab72fe1ac2f5dcc0f2534 Signed-off-by: Subrata Banik subratabanik@google.com --- M payloads/libpayload/include/x86/arch/io.h 1 file changed, 1 insertion(+), 1 deletion(-)
git pull ssh://review.coreboot.org:29418/coreboot refs/changes/61/81961/1
diff --git a/payloads/libpayload/include/x86/arch/io.h b/payloads/libpayload/include/x86/arch/io.h index d15e15d..352affd 100644 --- a/payloads/libpayload/include/x86/arch/io.h +++ b/payloads/libpayload/include/x86/arch/io.h @@ -90,7 +90,7 @@
static inline unsigned int inl(int port) { - unsigned long val; + unsigned int val; __asm__ __volatile__("inl %w1, %0" : "=a"(val) : "Nd"(port)); return val; }