mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2026-05-23 19:04:45 +03:00
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:
@@ -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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user