File raspberrypi-userland-gcc15.patch of Package raspberrypi-userland
From c53d360d4f91e507174a6aa9ca045afd48a818e9 Mon Sep 17 00:00:00 2001
From: Oleg Girko <ol@infoserver.lv>
Date: Wed, 16 Apr 2025 22:04:57 +0000
Subject: [PATCH] Fix function pointer argument lists.
Empty argument list means no arguments in modern C, not any arguments.
This is needed to fix compilation with GCC 15.
Signed-off-by: Oleg Girko <ol@infoserver.lv>
---
interface/vchiq_arm/vchiq_lib.c | 2 +-
interface/vmcs_host/vc_vchi_gpuserv.h | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/interface/vchiq_arm/vchiq_lib.c b/interface/vchiq_arm/vchiq_lib.c
index 133d5ca..42f5917 100755
--- a/interface/vchiq_arm/vchiq_lib.c
+++ b/interface/vchiq_arm/vchiq_lib.c
@@ -537,7 +537,7 @@ vchiq_bulk_receive_handle(VCHIQ_SERVICE_HANDLE_T handle,
int size,
void *userdata,
VCHIQ_BULK_MODE_T mode,
- int (*copy_pagelist)())
+ int (*copy_pagelist)(char *, const struct pagelist_struct *))
{
VCHIQ_SERVICE_T *service = find_service_by_handle(handle);
VCHIQ_QUEUE_BULK_TRANSFER_T args;
diff --git a/interface/vmcs_host/vc_vchi_gpuserv.h b/interface/vmcs_host/vc_vchi_gpuserv.h
index fc0bfee..140b908 100755
--- a/interface/vmcs_host/vc_vchi_gpuserv.h
+++ b/interface/vmcs_host/vc_vchi_gpuserv.h
@@ -58,7 +58,7 @@ struct sync_job_s {
struct gpu_callback_s {
// callback to call when complete (can be NULL)
- void (*func)();
+ void (*func)(void *);
void *cookie;
};
--
2.49.0