File prov-opx-fix-compilation-error.patch of Package libfabric
commit deb165e41d50025efd17ecfa811b100b1a69cbb7
Author: Nicolas Morey <nmorey@suse.com>
Date: Mon Sep 8 15:58:07 2025 +0200
prov/opx: fix compilation error
Compilation error with GCC15 (due to std=gnu23 as default):
prov/opx/src/opx_debug.c:411:6: error: conflicting types for 'opx_debug_ep_list_free'; have 'void(void *)'
411 | void opx_debug_ep_list_free(void *opx_ep)
| ^~~~~~~~~~~~~~~~~~~~~~
In file included from prov/opx/src/opx_debug.c:40:
./prov/opx/include/rdma/opx/opx_debug.h:47:6: note: previous declaration of 'opx_debug_ep_list_free' with type 'void(void)'
47 | void opx_debug_ep_list_free();
| ^~~~~~~~~~~~~~~~~~~~~~
This is because 4c73112f0acb declares opx_debug_ep_list_free without any parameters which in
C23 defaults as (void) instead of user-known arguments in previous C standard.
Add proper argument definition to fix the issue.
Fixes: 4c73112f0acb ("prov/opx: Add debug dump of endpoint upon receiving SIGUSR2")
Signed-off-by: Nicolas Morey <nmorey@suse.com>
diff --git prov/opx/include/rdma/opx/opx_debug.h prov/opx/include/rdma/opx/opx_debug.h
index 236be1a6fb61..96d251ebdc46 100644
--- prov/opx/include/rdma/opx/opx_debug.h
+++ prov/opx/include/rdma/opx/opx_debug.h
@@ -44,7 +44,7 @@ struct opx_debug_ep_entry {
};
void opx_debug_ep_list_append(void *opx_ep);
-void opx_debug_ep_list_free();
+void opx_debug_ep_list_free(void *opx_ep);
void opx_debug_install_handler();
#endif