From: Marc Dionne Date: Mon, 20 Apr 2015 13:37:40 +0000 (-0300) Subject: Linux 4.1: No need for do_sync_read X-Git-Tag: upstream/1.8.0_pre1^2~324 X-Git-Url: https://git.michaelhowe.org/gitweb/?a=commitdiff_plain;h=fcfa5ae2468d878db962a93d6013fcd3042e6c13;p=packages%2Fo%2Fopenafs.git Linux 4.1: No need for do_sync_read Make the test here a bit more specific. do_sync_read no longer exists, but we don't use it for new kernels. Trying to define it here in terms of generic_file_read is not helpful as that doesn't exist anymore. Change-Id: Iffb059716165436c3439e66db15002cdec5dfc16 Reviewed-on: http://gerrit.openafs.org/11848 Tested-by: BuildBot Reviewed-by: Chas Williams <3chas3@gmail.com> Reviewed-by: Benjamin Kaduk Reviewed-by: Jeffrey Altman --- diff --git a/src/afs/LINUX/osi_compat.h b/src/afs/LINUX/osi_compat.h index fe8ed047f..e8816d56d 100644 --- a/src/afs/LINUX/osi_compat.h +++ b/src/afs/LINUX/osi_compat.h @@ -47,7 +47,7 @@ typedef struct path afs_linux_path_t; # endif #endif -#ifndef HAVE_LINUX_DO_SYNC_READ +#if !defined(HAVE_LINUX_DO_SYNC_READ) && !defined(STRUCT_FILE_OPERATIONS_HAS_READ_ITER) static inline int do_sync_read(struct file *fp, char *buf, size_t count, loff_t *offp) { return generic_file_read(fp, buf, count, offp);