virtual servers compile fix for xilinxfmc (#1352)
All checks were successful
Build on local RHEL9 / build (push) Successful in 1m25s
Build on local RHEL8 / build (push) Successful in 3m31s
Build on RHEL8 / build (push) Successful in 4m36s
Build on RHEL9 / build (push) Successful in 4m36s

This commit is contained in:
2026-01-06 14:38:11 +01:00
committed by GitHub
parent 10879d32da
commit 874ff353e5

View File

@@ -30,7 +30,7 @@ static const char *fmc_files[] = {
int XILINX_FMC_enable_all(char *error_message, int message_size) { int XILINX_FMC_enable_all(char *error_message, int message_size) {
LOG(logINFOBLUE, ("enable FMC power\n")); LOG(logINFOBLUE, ("enable FMC power\n"));
#ifdef VIRTUAL #ifdef VIRTUAL
return; return 0;
#endif #endif
char full_path[64]; char full_path[64];
for (size_t i = 0; i < FMC_NUM_FILES; ++i) { for (size_t i = 0; i < FMC_NUM_FILES; ++i) {
@@ -58,7 +58,7 @@ int XILINX_FMC_enable_all(char *error_message, int message_size) {
int XILINX_FMC_disable_all(char *error_message, int message_size) { int XILINX_FMC_disable_all(char *error_message, int message_size) {
LOG(logINFOBLUE, ("disable FMC power\n")); LOG(logINFOBLUE, ("disable FMC power\n"));
#ifdef VIRTUAL #ifdef VIRTUAL
return; return 0;
#endif #endif
char full_path[64]; char full_path[64];
for (size_t i = 0; i < FMC_NUM_FILES; ++i) { for (size_t i = 0; i < FMC_NUM_FILES; ++i) {