CI/GCC: Add Fedora 44, fix build errors and threadsappend

- Add Fedora 44 to CI tests
- Fix build issues from the newer compiler. These are mostly 'char *'
  to 'const char *' conversions.
- Fix threadsappend.c test waiting for the same thread TID twice.
  This caused the test to hang on F44 (but strangely not other OSs?)

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Alexander Motin <alexander.motin@TrueNAS.com>
Signed-off-by: Tony Hutter <hutter2@llnl.gov>
Closes #18478
This commit is contained in:
Tony Hutter
2026-05-02 09:57:15 -07:00
parent 65b4a5c551
commit 7534fa4df7
16 changed files with 54 additions and 43 deletions
+4 -4
View File
@@ -87,7 +87,7 @@ usage(void)
int
main(int argc, char **argv)
{
pthread_t tid;
pthread_t tid[2];
int ret = 0;
long ncpus = 0;
int i;
@@ -120,7 +120,7 @@ main(int argc, char **argv)
}
for (i = 0; i < 2; i++) {
ret = pthread_create(&tid, NULL, go, (void *)&i);
ret = pthread_create(&tid[i], NULL, go, (void *)&i);
if (ret != 0) {
(void) fprintf(stderr,
"zfs_threadsappend: thr_create(#%d) "
@@ -129,8 +129,8 @@ main(int argc, char **argv)
}
}
while (pthread_join(tid, NULL) == 0)
continue;
for (i = 0; i < 2; i++)
(void) pthread_join(tid[i], NULL);
return (0);
}