ipl: adjust firmware entry type
PATCH 1/1 ipl: adjust firmware entry type
The `firmware_entry' function typedef used to call the firmware in firmware_call() is defined with no argument.
This causes the compilation to fail with gcc 15:
pdc_misc.c:119:14: error: too many arguments to function ‘(int (*)(void))(unsigned int)fn’; expected 0, have 14
Add all the 14 function arguments to the type definition to fix the build with gcc 15.
Signed-off-by Vincent Stehlé <[email protected]>
---
Hi,
I could verify that this still compiles fine with gcc 14 and 13.
Best regards,
Vincent.
ipl/pdc_misc.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-)
ipl/pdc_misc.c +4 -1
@@ -95,7 +95,10 @@ firmware_call(unsigned long long fn, ...) }else { -typedef int (*firmware_entry )(); +typedef int (*firmware_entry )(unsigned long ,unsigned long , +unsigned long ,unsigned long ,unsigned long ,unsigned long , +unsigned long ,unsigned long ,unsigned long ,unsigned long , +unsigned long ,unsigned long ,unsigned long ,unsigned long );unsigned long arg0, arg1, arg2, arg3, arg4, arg5, arg6, arg7, arg8, arg9, arg10, arg11, arg12, arg13;
Signature · 1 line
2.47.2
I forgot to mention: this patch is for the palo bootloader.