Samuel Thibault %!s(int64=7) %!d(string=hai) anos
pai
achega
aba653412f
Modificáronse 2 ficheiros con 4 adicións e 3 borrados
  1. 3 3
      src/core/disk_ops/unistd/disk_unistd_global.c
  2. 1 0
      src/datawizard/filters.c

+ 3 - 3
src/core/disk_ops/unistd/disk_unistd_global.c

@@ -59,15 +59,15 @@
 
 #ifndef HAVE_COPY_FILE_RANGE 
 #ifdef __NR_copy_file_range
-static loff_t copy_file_range(int fd_in, loff_t *off_in, int fd_out,
+static ssize_t copy_file_range(int fd_in, loff_t *off_in, int fd_out,
 		loff_t *off_out, size_t len, unsigned int flags)
 {
 	return syscall(__NR_copy_file_range, fd_in, off_in, fd_out,
 			off_out, len, flags);
 }
 #else
-static loff_t copy_file_range(int fd_in, loff_t *off_in, int fd_out,
-		loff_t *off_out, size_t len, unsigned int flags)
+static ssize_t copy_file_range(int fd_in, off_t *off_in, int fd_out,
+		off_t *off_out, size_t len, unsigned int flags)
 {
 	errno = ENOSYS;
 	return -1;

+ 1 - 0
src/datawizard/filters.c

@@ -257,6 +257,7 @@ static void _starpu_data_partition(starpu_data_handle_t initial_handle, starpu_d
 		_starpu_spin_init(&child->header_lock);
 
 		child->sequential_consistency = initial_handle->sequential_consistency;
+		child->initialized = initial_handle->initialized;
 
 		STARPU_PTHREAD_MUTEX_INIT(&child->sequential_consistency_mutex, NULL);
 		child->last_submitted_mode = STARPU_R;